Skip to content

Commit 1ceebfa

Browse files
authored
Merge pull request #29143 from codyhoag/csr-step-guidance
BZ#1916374 Approving CSRs is two step process
2 parents edb064b + d4dfbbc commit 1ceebfa

File tree

1 file changed

+37
-9
lines changed

1 file changed

+37
-9
lines changed

modules/installation-approve-csrs.adoc

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif::[]
3131
[id="installation-approve-csrs_{context}"]
3232
= Approving the certificate signing requests for your machines
3333

34-
When you add machines to a cluster, two pending certificate signing requests (CSRs) are generated for each machine that you added. You must confirm that these CSRs are approved or, if necessary, approve them yourself.
34+
When you add machines to a cluster, two pending certificate signing requests (CSRs) are generated for each machine that you added. You must confirm that these CSRs are approved or, if necessary, approve them yourself. The client requests must be approved first, followed by the server requests.
3535

3636
.Prerequisites
3737

@@ -64,7 +64,7 @@ The output lists all of the machines that you created.
6464
The preceding output might not include the compute nodes, also known as worker nodes, until some CSRs are approved.
6565
====
6666

67-
. Review the pending CSRs and ensure that you see a client and server request with the `Pending` or `Approved` status for each machine that you added to the cluster:
67+
. Review the pending CSRs and ensure that you see the client requests with the `Pending` or `Approved` status for each machine that you added to the cluster:
6868
+
6969
ifndef::ibm-z,ibm-z-kvm[]
7070
[source,terminal]
@@ -76,17 +76,12 @@ $ oc get csr
7676
[source,terminal]
7777
----
7878
NAME AGE REQUESTOR CONDITION
79-
csr-8b2br 15m system:serviceaccount:openshift-machine-config-operator:node-bootstrapper Pending <1>
79+
csr-8b2br 15m system:serviceaccount:openshift-machine-config-operator:node-bootstrapper Pending
8080
csr-8vnps 15m system:serviceaccount:openshift-machine-config-operator:node-bootstrapper Pending
81-
csr-bfd72 5m26s system:node:ip-10-0-50-126.us-east-2.compute.internal Pending <2>
82-
csr-c57lv 5m26s system:node:ip-10-0-95-157.us-east-2.compute.internal Pending
8381
...
8482
----
85-
<1> A client request CSR.
86-
<2> A server request CSR.
8783
+
88-
In this example, two machines are joining the cluster. You might see more
89-
approved CSRs in the list.
84+
In this example, two machines are joining the cluster. You might see more approved CSRs in the list.
9085
endif::ibm-z,ibm-z-kvm[]
9186
ifdef::ibm-z,ibm-z-kvm[]
9287
[source,terminal]
@@ -135,6 +130,39 @@ $ oc get csr -o go-template='{{range .items}}{{if not .status}}{{.metadata.name}
135130
Some Operators might not become available until some CSRs are approved.
136131
====
137132

133+
. Now that your client requests are approved, you must review the server requests for each machine that you added to the cluster:
134+
+
135+
[source,terminal]
136+
----
137+
$ oc get csr
138+
----
139+
+
140+
.Example output
141+
[source,terminal]
142+
----
143+
NAME AGE REQUESTOR CONDITION
144+
csr-bfd72 5m26s system:node:ip-10-0-50-126.us-east-2.compute.internal Pending
145+
csr-c57lv 5m26s system:node:ip-10-0-95-157.us-east-2.compute.internal Pending
146+
...
147+
----
148+
149+
. If the remaining CSRs are not approved, and are in the `Pending` status, approve the CSRs for your cluster machines:
150+
151+
** To approve them individually, run the following command for each valid CSR:
152+
+
153+
[source,terminal]
154+
----
155+
$ oc adm certificate approve <csr_name> <1>
156+
----
157+
<1> `<csr_name>` is the name of a CSR from the list of current CSRs.
158+
159+
** To approve all pending CSRs, run the following command:
160+
+
161+
[source,terminal]
162+
----
163+
$ oc get csr -o go-template='{{range .items}}{{if not .status}}{{.metadata.name}}{{"\n"}}{{end}}{{end}}' | xargs oc adm certificate approve
164+
----
165+
138166
. After all client and server CSRs have been approved, the machines have the `Ready` status. Verify this by running the following command:
139167
+
140168
[source,terminal]

0 commit comments

Comments
 (0)