Chapter 9. Troubleshooting the QuayRegistry CR
You can troubleshoot the QuayRegistry CR to reveal issues during registry deployment by checking the Events page on the OpenShift Container Platform web console, or by using the oc CLI.
Lifecycle observability for a Red Hat Quay registry is reported on the Events page of the registry. If leveraging the OpenShift Container Platform web console, this is the first place to look for any problems related to registry deployment.
Prerequisites
- You have deployed a Red Hat Quay registry.
Procedure
-
On the OpenShift Container Platform web console, click Operators
Installed Operators Red Hat Quay. - On the Red Hat Quay Operator details page, click Quay Registry.
-
Click the name of the registry
Events. On this page, events a streamed in real-time. -
Optional: To reveal more information about deployment issues, you can click the name of the registry on the Events page to navigate to the QuayRegistry details page. On the QuayRegistry details page, you can view the condition of all
QuayRegistryCR components.
9.2. Monitoring and debugging the QuayRegistry CR by using the CLI 링크 복사링크가 클립보드에 복사되었습니다!
The oc CLI tool can be used to troubleshoot problems related to registry deployment. With the oc CLI, you can obtain the following information about the QuayRegistry CR:
-
The
conditionsfield, which field shows the status of allQuayRegistrycomponents. -
The
currentVersionfield, which shows the version of Red Hat Quay. -
The
registryEndpointfield, which shows the publicly available hostname of the registry.
When troubleshooting deployment issues, you can check the Status field of the QuayRegistry custom resource (CR). This field reveals the health of the components during the deployment and can help you debug various problems with the deployment.
Prerequisites
- You have deployed a Red Hat Quay registry by using the web console or the CLI.
Procedure
View the state of deployed components by entering the following command:
oc get pods -n quay-enterprise
$ oc get pods -n quay-enterpriseCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Return information about your deployment by entering the following command:
oc get quayregistry -n <namespace> -o yaml
$ oc get quayregistry -n <namespace> -o yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow