Este contenido no está disponible en el idioma seleccionado.
Chapter 4. Troubleshooting a cluster update
4.1. Gathering data about your cluster update Copiar enlaceEnlace copiado en el portapapeles!
When reaching out to Red Hat support for issues with an update, it is important to provide data for the support team to use for troubleshooting your failed cluster update.
4.1.1. Gathering log data for a support case Copiar enlaceEnlace copiado en el portapapeles!
To gather data from your cluster, including log data, use the oc adm must-gather
command. See Gathering data about your cluster.
4.1.2. Gathering cluster update status using oc adm upgrade status (Technology Preview) Copiar enlaceEnlace copiado en el portapapeles!
When updating your cluster, the oc adm upgrade
command returns returns limited information about the status of your update. You can use the oc adm upgrade status
command to decouple status information from the oc adm upgrade
command and return specific information regarding a cluster update, including the status of the control plane and worker node updates.
The oc adm upgrade status
command is read-only and does not alter any state in your cluster.
The oc adm upgrade status
command is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.
For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope.
The oc adm upgrade status
command can be used for clusters from version 4.12 up to the latest supported release.
Your cluster does not need to be a Technology Preview-enabled cluster in order for you to use the oc adm upgrade status
command.
Procedure
Set the
OC_ENABLE_CMD_UPGRADE_STATUS
environment variable totrue
by running the following command:export OC_ENABLE_CMD_UPGRADE_STATUS=true
$ export OC_ENABLE_CMD_UPGRADE_STATUS=true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
oc adm upgrade status
command:oc adm upgrade status
$ oc adm upgrade status
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output for an update progressing successfully
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.1.3. Gathering ClusterVersion history Copiar enlaceEnlace copiado en el portapapeles!
The Cluster Version Operator (CVO) records updates made to a cluster, known as the ClusterVersion history. The entries can reveal correlation between changes in cluster behavior with potential triggers, although correlation does not imply causation.
The initial, minor, and z-stream version updates are stored by the ClusterVersion history. However, the ClusterVersion history has a size limit. If the limit is reached, the oldest z-stream updates in previous minor versions are pruned to accommodate the limit.
You can view the ClusterVersion history by using the OpenShift Container Platform web console or by using the OpenShift CLI (oc
).
4.1.3.1. Gathering ClusterVersion history in the OpenShift Container Platform web console Copiar enlaceEnlace copiado en el portapapeles!
You can view the ClusterVersion history in the OpenShift Container Platform web console.
Prerequisites
-
You have access to the cluster as a user with the
cluster-admin
role. - You have access to the OpenShift Container Platform web console.
Procedure
-
From the web console, click Administration
Cluster Settings and review the contents of the Details tab.
4.1.3.2. Gathering ClusterVersion history using the OpenShift CLI (oc) Copiar enlaceEnlace copiado en el portapapeles!
You can view the ClusterVersion history using the OpenShift CLI (oc
).
Prerequisites
-
You have access to the cluster as a user with the
cluster-admin
role. -
You have installed the OpenShift CLI (
oc
).
Procedure
View the cluster update history by entering the following command:
oc describe clusterversions/version
$ oc describe clusterversions/version
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow