Skip to content

Commit 4f83795

Browse files
stevsmitSteven Smith
andauthored
Projquay 9504 (quay#1456)
* Updates a link the deploy docs * Fixes typo in Deploy guide * Updates Troubleshooting Quay on OCP docs --------- Co-authored-by: Steven Smith <[email protected]>
1 parent 62ac9d5 commit 4f83795

File tree

8 files changed

+75
-158
lines changed

8 files changed

+75
-158
lines changed

deploy_red_hat_quay_operator/master.adoc

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,16 @@ include::modules/creating-registry-infra-node.adoc[leveloffset=+2]
5555
//Advanced configuration
5656

5757

58+
//Troubleshooting
59+
include::modules/operator-quayregistry-troubleshooting.adoc[leveloffset=+1]
60+
include::modules/operator-quayregistry-status.adoc[leveloffset=+2]
61+
include::modules/operator-monitor-deploy-cli.adoc[leveloffset=+2]
62+
63+
64+
65+
5866
include::modules/operator-deploy-hpa.adoc[leveloffset=+1]
5967

60-
//Advanced configuration options
6168

6269
//traffic ingress
6370
[id="configuring-traffic-ingress"]
@@ -87,19 +94,6 @@ include::modules/operator-unmanaged-monitoring.adoc[leveloffset=+3]
8794
include::modules/operator-unmanaged-mirroring.adoc[leveloffset=+3]
8895

8996

90-
91-
92-
93-
94-
include::modules/operator-monitor-deploy-cli.adoc[leveloffset=+1]
95-
//ui
96-
include::modules/operator-deploy-ui.adoc[leveloffset=+2]
97-
98-
//quayregistry status
99-
include::modules/operator-quayregistry-status.adoc[leveloffset=+1]
100-
101-
102-
10397
//SSL/TLS
10498
include::modules/operator-custom-ssl-certs-config-bundle.adoc[leveloffset=+1]
10599
//include::modules/ssl-create-certs.adoc[leveloffset=+2]

modules/first-user-api.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SUPER_USERS:
1717
# ..
1818
----
1919
+
20-
If you did not configure these settings upon registry creation, and need to re-configure your registry to enable these settings, see. . .
20+
If you did not configure these settings upon registry creation, and need to re-configure your registry to enable these settings, see "Enabling features after deployment".
2121
2222
* You have not created a user by using the {productname} UI.
2323

modules/operator-config-cli-download.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Modifying the `config.yaml` file that is stored by the `configBundleSecret` reso
2323
$ oc describe quayregistry -n <quay_namespace>
2424
----
2525
+
26+
.Example output
27+
+
2628
[source,terminal]
2729
----
2830
# ...

modules/operator-config-cli.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ To enable features in the {ocp} web console, you can edit the `configBundleSecre
2020

2121
. In the *Value* text box, add the new configuration fields for the features that you want to enable. For a list of all configuration fields, see link:https://docs.redhat.com/en/documentation/red_hat_quay/3/html/configure_red_hat_quay/index[Configure {productname}].
2222

23-
. Click *Save*. The {productname} Operator automatically reconciles the changes by restarting all Quay-related pods. After all pods are restart, the features are enabled.
23+
. Click *Save*. The {productname} Operator automatically reconciles the changes by restarting all Quay-related pods. After all pods are restarted, the features are enabled.

modules/operator-deploy-ui.adoc

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 48 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,24 @@
11
:_mod-docs-content-type: PROCEDURE
22
[id="operator-monitor-deploy-cli"]
3-
= Monitoring and debugging the deployment process
3+
= Monitoring and debugging the QuayRegistry CR by using the CLI
44

5-
Users can now troubleshoot problems during the deployment phase. The status in the `QuayRegistry` object can help you monitor the health of the components during the deployment an help you debug any problems that may arise.
5+
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:
66

7-
.Procedure
7+
* The `conditions` field, which field shows the status of all `QuayRegistry` components.
88
9-
. Enter the following command to check the status of your deployment:
10-
+
11-
[source,terminal]
12-
----
13-
$ oc get quayregistry -n quay-enterprise -o yaml
14-
----
15-
+
16-
.Example output
17-
+
18-
Immediately after deployment, the `QuayRegistry` object will show the basic configuration:
19-
+
20-
[source,yaml]
21-
----
22-
apiVersion: v1
23-
items:
24-
- apiVersion: quay.redhat.com/v1
25-
kind: QuayRegistry
26-
metadata:
27-
creationTimestamp: "2021-09-14T10:51:22Z"
28-
generation: 3
29-
name: example-registry
30-
namespace: quay-enterprise
31-
resourceVersion: "50147"
32-
selfLink: /apis/quay.redhat.com/v1/namespaces/quay-enterprise/quayregistries/example-registry
33-
uid: e3fc82ba-e716-4646-bb0f-63c26d05e00e
34-
spec:
35-
components:
36-
- kind: postgres
37-
managed: true
38-
- kind: clair
39-
managed: true
40-
- kind: redis
41-
managed: true
42-
- kind: horizontalpodautoscaler
43-
managed: true
44-
- kind: objectstorage
45-
managed: true
46-
- kind: route
47-
managed: true
48-
- kind: mirror
49-
managed: true
50-
- kind: monitoring
51-
managed: true
52-
- kind: tls
53-
managed: true
54-
- kind: clairpostgres
55-
managed: true
56-
configBundleSecret: example-registry-config-bundle-kt55s
57-
kind: List
58-
metadata:
59-
resourceVersion: ""
60-
selfLink: ""
61-
----
9+
* The `currentVersion` field, which shows the version of {productname}.
10+
11+
* The `registryEndpoint` field, which shows the publicly available hostname of the registry.
12+
13+
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.
6214

63-
. Use the `oc get pods` command to view the current state of the deployed components:
15+
.Prerequisites
16+
17+
* You have deployed a {productname} registry by using the web console or the CLI.
18+
19+
.Procedure
20+
21+
. View the state of deployed components by entering the following command:
6422
+
6523
[source,terminal]
6624
----
@@ -83,68 +41,44 @@ example-registry-quay-postgres-init-bktdt 0/1 Terminating
8341
example-registry-quay-redis-f9b9d44bf-4htpz 0/1 ContainerCreating 0 17s
8442
----
8543

86-
. While the deployment is in progress, the `QuayRegistry` object will show the current status. In this instance, database migrations are taking place, and other components are waiting until completion:
44+
. Return information about your deployment by entering the following command:
8745
+
8846
[source,terminal]
8947
----
90-
status:
91-
conditions:
92-
- lastTransitionTime: "2021-09-14T10:52:04Z"
93-
lastUpdateTime: "2021-09-14T10:52:04Z"
94-
message: all objects created/updated successfully
95-
reason: ComponentsCreationSuccess
96-
status: "False"
97-
type: RolloutBlocked
98-
- lastTransitionTime: "2021-09-14T10:52:05Z"
99-
lastUpdateTime: "2021-09-14T10:52:05Z"
100-
message: running database migrations
101-
reason: MigrationsInProgress
102-
status: "False"
103-
type: Available
104-
lastUpdated: 2021-09-14 10:52:05.371425635 +0000 UTC
105-
unhealthyComponents:
106-
clair:
107-
- lastTransitionTime: "2021-09-14T10:51:32Z"
108-
lastUpdateTime: "2021-09-14T10:51:32Z"
109-
message: 'Deployment example-registry-clair-postgres: Deployment does not have minimum availability.'
110-
reason: MinimumReplicasUnavailable
111-
status: "False"
112-
type: Available
113-
- lastTransitionTime: "2021-09-14T10:51:32Z"
114-
lastUpdateTime: "2021-09-14T10:51:32Z"
115-
message: 'Deployment example-registry-clair-app: Deployment does not have minimum availability.'
116-
reason: MinimumReplicasUnavailable
117-
status: "False"
118-
type: Available
119-
mirror:
120-
- lastTransitionTime: "2021-09-14T10:51:32Z"
121-
lastUpdateTime: "2021-09-14T10:51:32Z"
122-
message: 'Deployment example-registry-quay-mirror: Deployment does not have minimum availability.'
123-
reason: MinimumReplicasUnavailable
124-
status: "False"
125-
type: Available
48+
$ oc get quayregistry -n <namespace> -o yaml
12649
----
127-
128-
. When the deployment process finishes successfully, the status in the `QuayRegistry` object shows no unhealthy components:
50+
+
51+
.Example output
12952
+
13053
[source,terminal]
13154
----
132-
status:
133-
conditions:
134-
- lastTransitionTime: "2021-09-14T10:52:36Z"
135-
lastUpdateTime: "2021-09-14T10:52:36Z"
136-
message: all registry component healthchecks passing
137-
reason: HealthChecksPassing
55+
apiVersion: v1
56+
items:
57+
- apiVersion: quay.redhat.com/v1
58+
kind: QuayRegistry
59+
metadata:
60+
annotations:
61+
...
62+
spec:
63+
components:
64+
- kind: clair
65+
managed: true
66+
- kind: objectstorage
67+
managed: false
68+
...
69+
status:
70+
conditions: <1>
71+
- lastTransitionTime: "2025-10-01T18:46:13Z"
72+
lastUpdateTime: "2025-10-07T13:12:54Z"
73+
message: Horizontal pod autoscaler found
74+
reason: ComponentReady
13875
status: "True"
139-
type: Available
140-
- lastTransitionTime: "2021-09-14T10:52:46Z"
141-
lastUpdateTime: "2021-09-14T10:52:46Z"
142-
message: all objects created/updated successfully
143-
reason: ComponentsCreationSuccess
144-
status: "False"
145-
type: RolloutBlocked
146-
currentVersion: {producty}
147-
lastUpdated: 2021-09-14 10:52:46.104181633 +0000 UTC
148-
registryEndpoint: https://example-registry-quay-quay-enterprise.apps.docs.quayteam.org
149-
unhealthyComponents: {}
150-
----
76+
type: ComponentHPAReady
77+
...
78+
currentVersion: v3.15.2 <2>
79+
lastUpdated: 2025-10-07 13:12:54.48811705 +0000 UTC
80+
registryEndpoint: https://example-registry-quay-cluster-new.gcp.quaydev.org <3>
81+
----
82+
<1> Shows information about the status of all `QuayRegistry` components.
83+
<2> Shows the current version that the registry is using.
84+
<3> Shows the publicly available hostname of the registry.
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
:_mod-docs-content-type: REFERENCE
22
[id="operator-quayregistry-status"]
3-
= Viewing the status of the QuayRegistry object
3+
= Monitoring and debugging the QuayRegistry CR by using the {ocp} web console
44

5-
Lifecycle observability for a given {productname} deployment is reported in the `status` section of the corresponding `QuayRegistry` object. The {productname} Operator constantly updates this section, and this should be the first place to look for any problems or state changes in {productname} or its managed dependencies.
5+
Lifecycle observability for a {productname} registry is reported on the *Events* page of the registry. If leveraging the {ocp} web console, this is the first place to look for any problems related to registry deployment.
66

7-
[id="quayregistry-endpoint"]
8-
== Viewing the registry endpoint
7+
.Prerequisites
98

10-
Once {productname} is ready to be used, the `status.registryEndpoint` field will be populated with the publicly available hostname of the registry.
9+
* You have deployed a {productname} registry.
1110
12-
[id="quayregistry-current-version"]
13-
== Viewing the version of {productname} in use
11+
.Procedure
1412

15-
The current version of {productname} that is running will be reported in `status.currentVersion`.
13+
. On the {ocp} web console, click *Operators* -> *Installed Operators* -> *Red Hat Quay*.
1614

17-
[id="quayregistry-conditions"]
18-
== Viewing the conditions of your {productname} deployment
15+
. On the *{productname} Operator* details page, click *Quay Registry*.
1916

20-
Certain conditions will be reported in `status.conditions`.
17+
. Click the name of the registry -> *Events*. On this page, events a streamed in real-time.
18+
19+
. 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 `QuayRegistry` CR components.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
[id="operator-quayregistry-troubleshooting"]
3+
= Troubleshooting the QuayRegistry CR
4+
5+
You can troubleshoot the `QuayRegistry` CR to reveal issues during registry deployment by checking the *Events* page on the {ocp} web console, or by using the `oc` CLI.

0 commit comments

Comments
 (0)