Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 8. Upgrading Service Telemetry Framework to version 1.5
To upgrade Service Telemetry Framework (STF) 1.4 to STF 1.5, you must complete the following steps:
- Replace AMQ Certificate Manager with Certificate Manager.
-
Remove the
ClusterServiceVersion
andSubscription
objects for Smart Gateway Operator and Service Telemetry Operator in theservice-telemetry
namespace on your Red Hat OpenShift Container Platform environment. - Upgrade Red Hat OpenShift Container Platform from 4.8 to 4.10.
- Re-enable the operators that you removed.
- Update the AMQ Interconnect CA Certificate on Red Hat OpenStack Platform (RHOSP).
Prerequisites
-
You have backed up your data. There is an outage during the Red Hat OpenShift Container Platform upgrade. You cannot reconfigure the
ServiceTelemetry
andSmartGateway
objects during the Operators replacement. - You have prepared your environment for upgrade from Red Hat OpenShift Container Platform 4.8 to the supported version, 4.10.
- The Red Hat OpenShift Container Platform cluster is fully-connected. STF does not support disconnected or restricted-network clusters.
8.1. Removing the Service Telemetry Framework 1.4 Operators Copier lienLien copié sur presse-papiers!
Remove the Service Telemetry Framework (STF) 1.4 Operators and the AMQ Certificate Manager Operator from the Red Hat OpenShift Container Platform 4.8.
Procedure
- Remove the Service Telemetry Operator.
- Remove the Smart Gateway Operator.
- Remove the AMQ Certificate Manager Operator.
- Remove the Grafana Operator.
8.1.1. Removing the Service Telemetry Operator Copier lienLien copié sur presse-papiers!
As part of upgrading your Service Telemetry Framework (STF) installation, you must remove the Service Telemetry Operator in the service-telemetry
namespace on your Red Hat OpenShift Container Platform environment.
Procedure
Change to the
service-telemetry
project:oc project service-telemetry
$ oc project service-telemetry
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the Service Telemetry Operator Subscription:
oc delete sub --selector=operators.coreos.com/service-telemetry-operator.service-telemetry
$ oc delete sub --selector=operators.coreos.com/service-telemetry-operator.service-telemetry subscription.operators.coreos.com "service-telemetry-operator" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the Service Telemetry Operator
ClusterServiceVersion
:oc delete csv --selector=operators.coreos.com/service-telemetry-operator.service-telemetry
$ oc delete csv --selector=operators.coreos.com/service-telemetry-operator.service-telemetry clusterserviceversion.operators.coreos.com "service-telemetry-operator.v1.4.1669718959" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the Service Telemetry Operator deployment is not running:
oc get deploy --selector=operators.coreos.com/service-telemetry-operator.service-telemetry
$ oc get deploy --selector=operators.coreos.com/service-telemetry-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the Service Telemetry Operator subscription is absent:
oc get sub --selector=operators.coreos.com/service-telemetry-operator.service-telemetry
$ oc get sub --selector=operators.coreos.com/service-telemetry-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the Service Telemetry Operator ClusterServiceVersion is absent:
oc get csv --selector=operators.coreos.com/service-telemetry-operator.service-telemetry
$ oc get csv --selector=operators.coreos.com/service-telemetry-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
8.1.2. Removing the Smart Gateway Operator Copier lienLien copié sur presse-papiers!
As part of upgrading your Service Telemetry Framework (STF) installation, you must remove the Smart Gateway Operator in the service-telemetry
namespace on your Red Hat OpenShift Container Platform environment.
Procedure
Change to the
service-telemetry
project:oc project service-telemetry
$ oc project service-telemetry
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the Smart Gateway Operator Subscription:
oc delete sub --selector=operators.coreos.com/smart-gateway-operator.service-telemetry
$ oc delete sub --selector=operators.coreos.com/smart-gateway-operator.service-telemetry subscription.operators.coreos.com "smart-gateway-operator-stable-1.4-redhat-operators-openshift-marketplace" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the Smart Gateway Operator
ClusterServiceVersion
:oc delete csv --selector=operators.coreos.com/smart-gateway-operator.service-telemetry
$ oc delete csv --selector=operators.coreos.com/smart-gateway-operator.service-telemetry clusterserviceversion.operators.coreos.com "smart-gateway-operator.v4.0.1669718962" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the Smart Gateway Operator deployment is not running:
oc get deploy --selector=operators.coreos.com/smart-gateway-operator.service-telemetry
$ oc get deploy --selector=operators.coreos.com/smart-gateway-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the Smart Gateway Operator subscription is absent:
oc get sub --selector=operators.coreos.com/smart-gateway-operator.service-telemetry
$ oc get sub --selector=operators.coreos.com/smart-gateway-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the Smart Gateway Operator ClusterServiceVersion is absent:
oc get csv --selector=operators.coreos.com/smart-gateway-operator.service-telemetry
$ oc get csv --selector=operators.coreos.com/smart-gateway-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
8.1.3. Removing the AMQ Certificate Manager Operator Copier lienLien copié sur presse-papiers!
Procedure
Remove the AMQ Certificate Manager Operator Subscription:
oc delete sub --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators
$ oc delete sub --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators subscription.operators.coreos.com "amq7-cert-manager-operator" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the AMQ Certificate Manager Operator
ClusterServiceVersion
:oc delete csv --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators
$ oc delete csv --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators clusterserviceversion.operators.coreos.com "amq7-cert-manager.v1.0.11" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the AMQ Certificate Manager Operator deployment is not running:
oc get deploy --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators
$ oc get deploy --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators No resources found in openshift-operators namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the AMQ Certificate Manager Operator subscription is absent:
oc get sub --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.service-telemetry
$ oc get sub --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.service-telemetry No resources found in openshift-operators namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the AMQ Certificate Manager Operator Cluster Service Version is absent:
oc get csv --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators
$ oc get csv --namespace openshift-operators --selector=operators.coreos.com/amq7-cert-manager-operator.openshift-operators No resources found in openshift-operators namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
8.1.4. Removing the Grafana Operator Copier lienLien copié sur presse-papiers!
Procedure
Remove the Grafana Operator Subscription:
oc delete sub --selector=operators.coreos.com/grafana-operator.service-telemetry
$ oc delete sub --selector=operators.coreos.com/grafana-operator.service-telemetry subscription.operators.coreos.com "grafana-operator" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the Grafana Operator
ClusterServiceVersion
:oc delete csv --selector=operators.coreos.com/grafana-operator.service-telemetry
$ oc delete csv --selector=operators.coreos.com/grafana-operator.service-telemetry clusterserviceversion.operators.coreos.com "grafana-operator.v3.10.3" deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify the Grafana Operator deployment is not running:
oc get deploy --selector=operators.coreos.com/grafana-operator.service-telemetry
$ oc get deploy --selector=operators.coreos.com/grafana-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the Grafana Operator subscription is absent:
oc get sub --selector=operators.coreos.com/grafana-operator.service-telemetry
$ oc get sub --selector=operators.coreos.com/grafana-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the Grafana Operator Cluster Service Version is absent:
oc get csv --selector=operators.coreos.com/grafana-operator.service-telemetry
$ oc get csv --selector=operators.coreos.com/grafana-operator.service-telemetry No resources found in service-telemetry namespace.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
8.2. Upgrading Red Hat OpenShift Container Platform to 4.10 Copier lienLien copié sur presse-papiers!
Service Telemetry Framework (STF) 1.5 is only compatible with Red Hat OpenShift Container Platform 4.10. For more information about upgrading your Red Hat OpenShift Container Platform from 4.8 to 4.10, see Updating clusters overview.
Prerequisites
- You removed the STF 1.4 Operators.
- You removed the AMQ Certificate Manager Operator and Grafana Operator. You must remove the Operators before you upgrade Red Hat OpenShift Container Platform because the Operator APIs are incompatible with 4.10. For more information about preparing your Red Hat OpenShift Container Platform for upgrade from 4.8 to 4.10, see Understanding OpenShift Container Platform updates.
Verify the suitability of your Red Hat OpenShift Container Platform upgrade:
oc adm upgrade
$ oc adm upgrade
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You cannot upgrade the cluster if you encounter the following error message:
Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: service-telemetry/grafana-operator.v3.10.3 is incompatible with OpenShift minor versions greater than 4.8,openshift-operators/amq7-cert-manager.v1.0.11 is incompatible with OpenShift minor versions greater than 4.8
Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: service-telemetry/grafana-operator.v3.10.3 is incompatible with OpenShift minor versions greater than 4.8,openshift-operators/amq7-cert-manager.v1.0.11 is incompatible with OpenShift minor versions greater than 4.8
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
8.3. Installing the Service Telemetry Framework 1.5 Operators Copier lienLien copié sur presse-papiers!
Install the Service Telemetry Framework (STF) 1.5 Operators and the Certificate Manager for OpenShift Operator on your Red Hat OpenShift Container Platform environment. See Section 1.1, “Support for Service Telemetry Framework” for more information about STF support status and life cycle.
After a successful STF 1.5 install, you must retrieve and apply the AMQ Interconnect CA certificate to the Red Hat OpenStack Platform environment, or the transport layer and telemetry data becomes unavailable.
For more information about updating the AMQ Interconnect CA certificate, see Section 8.4, “Updating the AMQ Interconnect CA Certificate on Red Hat OpenStack Platform”.
Prerequisites
- You have upgraded your Red Hat OpenShift Container Platform environment to 4.10. For more information about upgrading Red Hat OpenShift Container Platform, see Section 8.2, “Upgrading Red Hat OpenShift Container Platform to 4.10”.
- Your Red Hat OpenShift Container Platform environment network is fully-connected.
Procedure
Change to the
service-telemetry
project:oc project service-telemetry
$ oc project service-telemetry
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create a
namespace
for thecert-manager
Operator:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create an
OperatorGroup
for the cert-manager Operator:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Subscribe to the
cert-manager
Operator with theredhat-operators
CatalogSource:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Validate your
ClusterServiceVersion
. Ensure that the phase ofcert-manager
Operator isSucceeded
:oc get csv --namespace openshift-cert-manager-operator --selector=operators.coreos.com/openshift-cert-manager-operator.openshift-cert-manager-operator
$ oc get csv --namespace openshift-cert-manager-operator --selector=operators.coreos.com/openshift-cert-manager-operator.openshift-cert-manager-operator NAME DISPLAY VERSION REPLACES PHASE openshift-cert-manager.v1.7.1 cert-manager Operator for Red Hat OpenShift 1.7.1-1 Succeeded
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Optional: Resubscribe to the Grafana Operator. For more information, see: test Section 5.1.1, “Configuring Grafana to host the dashboard”.
Create the Service Telemetry Operator subscription to manage the STF instances:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Validate the Service Telemetry Operator and the dependent operators:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the Service Telemetry Operator has successfully reconciled.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
8.4. Updating the AMQ Interconnect CA Certificate on Red Hat OpenStack Platform Copier lienLien copié sur presse-papiers!
After you upgrade to Service Telemetry Framework (STF) v1.5, the CA certificate for AMQ Interconnect regenerates. In STF v1.4 the CA certificate for AMQ Interconnect is valid for three months and must be updated periodically in Red Hat OpenStack Platform (RHOSP). In STF v1.5, the generated certificates are valid for the lifetime of the RHOSP lifecycle, 70080 hours by default.
Prerequisites
- You have successfully installed STF v1.5 and updated the CA certificate for AMQ Interconnect.
Procedure
- For more information about how to update the CA certificate in your RHOSP environment, see Chapter 6, Renewing the AMQ Interconnect certificate