Skip to content

Commit 23dbccb

Browse files
author
Michael Burke
committed
Docs for MCO-836 [GA] Machine Config Node
1 parent 60f9a2c commit 23dbccb

File tree

2 files changed

+187
-202
lines changed

2 files changed

+187
-202
lines changed

modules/checking-mco-node-status-configuring.adoc

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,13 @@
33
// * machine_configuration/machine-config-index.adoc
44

55
:_mod-docs-content-type: PROCEDURE
6-
[id="checking-mco-node-status-congifuring_{context}"]
6+
[id="checking-mco-node-status-configuring_{context}"]
77
= Checking machine config node status
88

9-
During the update of a machine config pool (MCP), you can monitor the progress of all control plane and worker nodes in your cluster by using the `oc get machineconfignodes` and `oc describe machineconfignodes` commands. These commands provide information that can be helpful if issues arise during the update and you need to troubleshoot a node.
10-
11-
You cannot use these commands with custom machine config pools.
9+
During the update of a machine config pool (MCP), you can monitor the progress of all of the nodes in your cluster by using the `oc get machineconfignodes` and `oc describe machineconfignodes` commands. These commands provide information that can be helpful if issues arise during the update and you need to troubleshoot a node.
1210

1311
For more information on the meaning of these fields, see "About checking machine config node status."
1412

15-
.Prerequisites
16-
17-
* You enabled the required Technology Preview features for your cluster by editing the `FeatureGate` CR named `cluster`:
18-
+
19-
[source,terminal]
20-
----
21-
$ oc edit featuregate cluster
22-
----
23-
+
24-
.Example `FeatureGate` CR
25-
[source,yaml]
26-
----
27-
apiVersion: config.openshift.io/v1
28-
kind: FeatureGate
29-
metadata:
30-
name: cluster
31-
spec:
32-
featureSet: TechPreviewNoUpgrade
33-
----
34-
+
35-
[WARNING]
36-
====
37-
Enabling the `TechPreviewNoUpgrade` feature set on your cluster cannot be undone and prevents minor version updates. This feature set allows you to enable these Technology Preview features on test clusters, where you can fully test them. Do not enable this feature set on production clusters.
38-
====
39-
+
40-
After you save the changes, new machine configs are created, the machine config pools are updated, and scheduling on each node is disabled while the change is being applied.
41-
4213
.Procedure
4314

4415
* View the update status of all nodes in the cluster, including the current and desired machine configurations, by running the following command:
@@ -70,13 +41,13 @@ $ oc get machineconfignodes -o wide
7041
.Example output
7142
[source,text]
7243
----
73-
NAME POOLNAME DESIREDCONFIG CURRENTCONFIG UPDATED UPDATEPREPARED UPDATEEXECUTED UPDATEPOSTACTIONCOMPLETE UPDATECOMPLETE RESUMED UPDATECOMPATIBLE UPDATEDFILESANDOS CORDONEDNODE DRAINEDNODE REBOOTEDNODE RELOADEDCRIO UNCORDONEDNODE
74-
ci-ln-g6dr34b-72292-g9btv-master-0 master rendered-master-d4e122320b351cdbe1df59ddb63ddcfc rendered-master-6f2064fcb36d2a914de5b0c660dc49ff False True Unknown False False False True Unknown False False False False False
75-
ci-ln-g6dr34b-72292-g9btv-master-1 master rendered-master-6f2064fcb36d2a914de5b0c660dc49ff rendered-master-6f2064fcb36d2a914de5b0c660dc49ff True False False False False False False False False False False False False
76-
ci-ln-g6dr34b-72292-g9btv-master-2 master rendered-master-6f2064fcb36d2a914de5b0c660dc49ff rendered-master-6f2064fcb36d2a914de5b0c660dc49ff True False False False False False False False False False False False False
77-
ci-ln-g6dr34b-72292-g9btv-worker-a-sjh5r worker rendered-worker-671b88c8c569fa3f60dc1a27cf9c91f2 rendered-worker-d5534cb730e5e108905fc285c2a42b6c False True Unknown False False False True Unknown False False False False False
78-
ci-ln-g6dr34b-72292-g9btv-worker-b-xthbz worker rendered-worker-d5534cb730e5e108905fc285c2a42b6c rendered-worker-d5534cb730e5e108905fc285c2a42b6c True False False False False False False False False False False False False
79-
ci-ln-g6dr34b-72292-g9btv-worker-c-gnpd6 worker rendered-worker-d5534cb730e5e108905fc285c2a42b6c rendered-worker-d5534cb730e5e108905fc285c2a42b6c True False False False False False False False False False False False False
44+
NAME POOLNAME DESIREDCONFIG CURRENTCONFIG UPDATED UPDATEPREPARED UPDATEEXECUTED UPDATEPOSTACTIONCOMPLETE UPDATECOMPLETE RESUMED UPDATEDFILESANDOS CORDONEDNODE DRAINEDNODE REBOOTEDNODE UNCORDONEDNODE
45+
ci-ln-g6dr34b-72292-g9btv-master-0 master rendered-master-d4e122320b351cdbe1df59ddb63ddcfc rendered-master-6f2064fcb36d2a914de5b0c660dc49ff False True Unknown False False False Unknown False False False False
46+
ci-ln-g6dr34b-72292-g9btv-master-1 master rendered-master-6f2064fcb36d2a914de5b0c660dc49ff rendered-master-6f2064fcb36d2a914de5b0c660dc49ff True False False False False False False False False False False
47+
ci-ln-g6dr34b-72292-g9btv-master-2 master rendered-master-6f2064fcb36d2a914de5b0c660dc49ff rendered-master-6f2064fcb36d2a914de5b0c660dc49ff True False False False False False False False False False False
48+
ci-ln-g6dr34b-72292-g9btv-worker-a-sjh5r worker rendered-worker-671b88c8c569fa3f60dc1a27cf9c91f2 rendered-worker-d5534cb730e5e108905fc285c2a42b6c False True Unknown False False False Unknown False False False False
49+
ci-ln-g6dr34b-72292-g9btv-worker-b-xthbz worker rendered-worker-d5534cb730e5e108905fc285c2a42b6c rendered-worker-d5534cb730e5e108905fc285c2a42b6c True False False False False False False False False False False
50+
ci-ln-g6dr34b-72292-g9btv-worker-c-gnpd6 worker rendered-worker-d5534cb730e5e108905fc285c2a42b6c rendered-worker-d5534cb730e5e108905fc285c2a42b6c True False False False False False False False False False False
8051
----
8152
8253
* Check the update status of nodes in a specific machine config pool by running the following command:
@@ -86,6 +57,10 @@ ci-ln-g6dr34b-72292-g9btv-worker-c-gnpd6 worker rendered-worker-d5534cb730
8657
$ oc get machineconfignodes $(oc get machineconfignodes -o json | jq -r '.items[]|select(.spec.pool.name=="<pool_name>")|.metadata.name') <1>
8758
----
8859
+
60+
where:
61+
62+
`<pool_name>`:: Specifies the name of the machine config pool.
63+
+
8964
.Example output
9065
[source,text]
9166
----
@@ -105,35 +80,60 @@ $ oc describe machineconfignode/<node_name>
10580
.Example output
10681
[source,text]
10782
----
108-
Name: <node_name>
109-
Namespace:
110-
Labels: <none>
111-
Annotations: <none>
112-
API Version: machineconfiguration.openshift.io/v1alpha1
113-
Kind: MachineConfigNode
114-
Metadata:
115-
Creation Timestamp: 2023-10-17T13:08:58Z
116-
Generation: 1
117-
Resource Version: 49443
118-
UID: 4bd758ab-2187-413c-ac42-882e61761b1d
119-
Spec:
120-
Node Ref:
121-
Name: <node_name>
122-
Pool:
123-
Name: master
124-
ConfigVersion:
125-
Desired: rendered-worker-823ff8dc2b33bf444709ed7cd2b9855b
126-
Status:
83+
apiVersion: machineconfiguration.openshift.io/v1
84+
kind: MachineConfigNode
85+
metadata:
86+
creationTimestamp: "2025-04-28T18:52:16Z"
87+
generation: 3
88+
name: ci-ln-921r7qk-72292-kxv95-worker-a-zmxrr
89+
ownerReferences:
90+
- apiVersion: v1
91+
kind: Node
92+
name: ci-ln-921r7qk-72292-kxv95-worker-a-zmxrr
93+
uid: e548a8d1-4f16-42cd-9234-87ac5aede6c1
94+
resourceVersion: "62331"
95+
uid: 11d96e07-582d-4569-a84a-9d8c5229a551
96+
spec:
97+
configVersion:
98+
desired: rendered-worker-1930ca7433b7f0153286a3f04e4cb57b
99+
node:
100+
name: ci-ln-921r7qk-72292-kxv95-worker-a-zmxrr
101+
pool:
102+
name: worker
103+
status:
104+
conditions:
105+
# ...
106+
lastTransitionTime: 2025-04-23T14:55:31Z
107+
message: Update Compatible. Post Cfg Actions: [] Drain Required: true
108+
reason: UpdatePrepared
109+
status: True
110+
type: UpdatePrepared
111+
# ...
112+
lastTransitionTime: 2025-04-23T14:55:31Z
113+
message: Draining node. The drain will not be complete until desired drainer drain-rendered-worker-1930ca7433b7f0153286a3f04e4cb57b
114+
matches current drainer uncordon-rendered-worker-a9673968884f1ea42c26edcd914af907
115+
reason: UpdateExecutedDrained
116+
status: True
117+
type: Drained
118+
# ...
119+
lastTransitionTime: 2025-04-23T14:55:31Z
120+
message: Cordoned node. The node is reporting Unschedulable = true
121+
reason: UpdateExecutedCordoned
122+
status: True
123+
type: Cordoned
127124
# ...
128-
Message: Drained node. The drain is complete as the desired drainer matches current drainer: drain-rendered-worker-01f27f752eb84eba917450e43636b210
129-
Reason: UpdateExecutedDrained
130-
Status: True
131-
Type: Drained
132-
Last Transition Time: 2025-01-14T15:45:55Z
125+
- lastTransitionTime: "2025-04-28T18:52:16Z"
126+
message: This node has not yet entered the NodeDegraded phase
127+
reason: NotYetOccurred
128+
status: "False"
129+
type: NodeDegraded
133130
# ...
134-
Config Version:
135-
Current: rendered-master-8110974a5cea69dff5b263237b58abd8
136-
Desired: rendered-worker-823ff8dc2b33bf444709ed7cd2b9855b
137-
Observed Generation: 6
131+
configversion:
132+
current: rendered-worker-8110974a5cea69dff5b263237b58abd8
133+
desired: rendered-worker-1930ca7433b7f0153286a3f04e4cb57b
134+
observedgeneration: 4
135+
pinnedImageSets:
136+
- desiredGeneration: 1
137+
name: worker-pinned-images
138138
# ...
139139
----

0 commit comments

Comments
 (0)