This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Upgrading metering
Metering is a deprecated feature. Deprecated functionality is still included in OpenShift Container Platform and continues to be supported; however, it will be removed in a future release of this product and is not recommended for new deployments.
For the most recent list of major functionality that has been deprecated or removed within OpenShift Container Platform, refer to the Deprecated and removed features section of the OpenShift Container Platform release notes.
You can upgrade metering to 4.8 by updating the Metering Operator subscription.
3.1. Prerequisites Link kopierenLink in die Zwischenablage kopiert!
- The cluster is updated to 4.8.
The Metering Operator is installed from OperatorHub.
NoteYou must upgrade the Metering Operator to 4.8 manually. Metering does not upgrade automatically if you selected the "Automatic" Approval Strategy in a previous installation.
- The MeteringConfig custom resource is configured.
- The metering stack is installed.
- Ensure that metering status is healthy by checking that all pods are ready.
Potential data loss can occur if you modify your metering storage configuration after installing or upgrading metering.
Procedure
-
Click Operators
Installed Operators from the web console. -
Select the
openshift-metering
project. - Click Metering Operator.
-
Click Subscription
Channel. In the Change Subscription Update Channel window, select 4.8 and click Save.
NoteWait several seconds to allow the subscription to update before proceeding to the next step.
Click Operators
Installed Operators. The Metering Operator is shown as 4.8. For example:
Metering 4.8.0-202107012112.p0 provided by Red Hat, Inc
Metering 4.8.0-202107012112.p0 provided by Red Hat, Inc
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
You can verify the metering upgrade by performing any of the following checks:
Check the Metering Operator cluster service version (CSV) for the new metering version. This can be done through either the web console or CLI.
Procedure (UI)
-
Navigate to Operators
Installed Operators in the metering namespace. - Click Metering Operator.
- Click Subscription for Subscription Details.
- Check the Installed Version for the upgraded metering version. The Starting Version shows the metering version prior to upgrading.
Procedure (CLI)
Check the Metering Operator CSV:
oc get csv | grep metering
$ oc get csv | grep metering
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output for metering upgrade from 4.7 to 4.8
NAME DISPLAY VERSION REPLACES PHASE metering-operator.4.8.0-202107012112.p0 Metering 4.8.0-202107012112.p0 metering-operator.4.7.0-202007012112.p0 Succeeded
NAME DISPLAY VERSION REPLACES PHASE metering-operator.4.8.0-202107012112.p0 Metering 4.8.0-202107012112.p0 metering-operator.4.7.0-202007012112.p0 Succeeded
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Navigate to Operators
Check that all required pods in the
openshift-metering
namespace are created. This can be done through either the web console or CLI.NoteMany pods rely on other components to function before they themselves can be considered ready. Some pods may restart if other pods take too long to start. This is to be expected during the Metering Operator upgrade.
Procedure (UI)
-
Navigate to Workloads
Pods in the metering namespace and verify that pods are being created. This can take several minutes after upgrading the metering stack.
Procedure (CLI)
Check that all required pods in the
openshift-metering
namespace are created:oc -n openshift-metering get pods
$ oc -n openshift-metering get pods
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Navigate to Workloads
Verify that the
ReportDataSource
resources are importing new data, indicated by a valid timestamp in theNEWEST METRIC
column. This might take several minutes. Filter out the "-raw"ReportDataSource
resources, which do not import data:oc get reportdatasources -n openshift-metering | grep -v raw
$ oc get reportdatasources -n openshift-metering | grep -v raw
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Timestamps in the
NEWEST METRIC
column indicate thatReportDataSource
resources are beginning to import new data.Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
After all pods are ready and you have verified that new data is being imported, metering continues to collect data and report on your cluster. Review a previously scheduled report or create a run-once metering report to confirm the metering upgrade.