Skip to content

Commit 5f17956

Browse files
author
Michael Burke
committed
OSDOCS 17238 Update MCO to reflect API changes made for Status Reporting
1 parent d0de0fa commit 5f17956

File tree

6 files changed

+105
-0
lines changed

6 files changed

+105
-0
lines changed

machine_configuration/index.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ include::modules/checking-mco-status.adoc[leveloffset=+1]
4747

4848
include::modules/checking-mco-node-status.adoc[leveloffset=+1]
4949

50+
[role="_additional-resources"]
51+
.Additional resources
52+
53+
* xref:../machine_configuration/mco-coreos-layering.adoc#coreos-layering-configuring-on_mco-coreos-layering[About on-cluster image mode]
54+
* xref:../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
55+
5056
include::modules/checking-mco-node-status-configuring.adoc[leveloffset=+2]
5157

5258
[role="_additional-resources"]

machine_configuration/mco-coreos-layering.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,14 @@ include::modules/coreos-layering-configuring-on.adoc[leveloffset=+1]
186186
* xref:../machine_configuration/mco-coreos-layering.adoc#coreos-layering-configuring-on-rebuild_mco-coreos-layering[Rebuilding an on-cluster custom layered image]
187187
* xref:../machine_configuration/mco-coreos-layering.adoc#coreos-layering-configuring-on-revert_mco-coreos-layering[Reverting an on-cluster custom layered image]
188188
* xref:../machine_configuration/mco-coreos-layering.adoc#coreos-layering-configuring-on-modifying_mco-coreos-layering[Modifying a custom layered image]
189+
* xref:../machine_configuration/index.adoc#checking-mco-node-status_machine-config-overview[About checking machine config node status]
189190

190191
include::modules/coreos-layering-configuring-on-proc.adoc[leveloffset=+2]
191192

192193
.Additional resources
193194
* xref:../openshift_images/managing_images/using-image-pull-secrets.adoc#images-update-global-pull-secret_using-image-pull-secrets[Updating the global cluster pull secret]
194195
* xref:../machine_configuration/mco-coreos-layering.adoc#coreos-layering-configuring-on-revert_mco-coreos-layering[Reverting an on-cluster custom layered image]
196+
* xref:../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
195197

196198
include::modules/coreos-layering-configuring-on-modifying.adoc[leveloffset=+2]
197199

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ During the update of a machine config pool (MCP), you can monitor the progress o
1010

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

13+
.Prerequisites
14+
15+
* In order to see specific machine config node output, as described in "About checking machine config node status", you must enable the `TechPreviewNoUpgrade` feature set on the cluster. For more information, see "Enabling features using feature gates".
16+
+
17+
[NOTE]
18+
====
19+
Enabling the `TechPreviewNoUpgrade` feature set cannot be undone and prevents minor version updates. These feature sets are not recommended on production clusters.
20+
====
21+
+
22+
--
23+
:FeatureName: The custom layered image output
24+
include::snippets/technology-preview.adoc[]
25+
--
26+
1327
.Procedure
1428

1529
* View the update status of all nodes in the cluster, including the current and desired machine configurations, by running the following command:

modules/checking-mco-node-status.adoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ The node update process consists of the following phases and subphases that are
2626
** *Uncordoned*
2727
* *Updated* The MCO completed a node update and the current config version of the node is equal to the desired updated version.
2828
* *Resumed*. The MCO restarted the config drift monitor process and the node returns to operational state.
29+
* *ImagePulledFromRegistry*. The MCO has pulled the desired custom layered image. This condition applies only to nodes on which {image-mode-os-on-lower} has been configured.
30+
+
31+
In order to see *ImagePulledFromRegistry* in the output, you must enable the `TechPreviewNoUpgrade` feature set on the cluster. For more information, see "Enabling features using feature gates".
32+
+
33+
[NOTE]
34+
====
35+
Enabling the `TechPreviewNoUpgrade` feature set cannot be undone and prevents minor version updates. These feature sets are not recommended on production clusters.
36+
====
37+
+
38+
--
39+
:FeatureName: The `ImagePulledFromRegistry` condition
40+
include::snippets/technology-preview.adoc[]
41+
--
2942
3043
As the update moves through these phases, you can query the `MachineConfigNode` custom resource, which reports one of the following conditions for each phase:
3144

@@ -140,6 +153,7 @@ $ oc describe machineconfignode/<machine_config_node_name>
140153

141154
.Example output
142155
[source,text]
156+
----
143157
apiVersion: machineconfiguration.openshift.io/v1
144158
kind: MachineConfigNode
145159
metadata:
@@ -237,3 +251,17 @@ status:
237251
<1> The `MachineConfigNode` object name.
238252
<2> The new machine configuration. This field updates after the MCO validates the machine config in the `UPDATEPREPARED` phase, then the status adds the new configuration.
239253
<3> The current machine config on the node.
254+
255+
For clusters configured with {image-mode-os-on-lower}, the machine config node output also includes the name of the custom layered image that was applied to affected nodes.
256+
257+
include::snippets/mco-mcn-ocl-example.adoc[]
258+
259+
In order to see the custom layered image in the output, you must enable the `TechPreviewNoUpgrade` feature set on the cluster. For more information, see "Enabling features using feature gates".
260+
261+
[NOTE]
262+
====
263+
Enabling the `TechPreviewNoUpgrade` feature set cannot be undone and prevents minor version updates. These feature sets are not recommended on production clusters.
264+
====
265+
266+
:FeatureName: The custom layered image output
267+
include::snippets/technology-preview.adoc[]

modules/coreos-layering-configuring-on-proc.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,24 @@ NAME PREPARED BUILDING SUCCEEDED
177177
layered-image-ad5a3cad36303c363cf458ab0524e7c0 False True False False False 12m <1>
178178
----
179179
<1> The `MachineOSBuild` is named in the `<MachineOSConfig_CR_name>-<hash>` format.
180+
+
181+
The build is complete when `BUILDING` is `False` and `SUCCEEDED` is `True`.
182+
183+
. When the build is complete, verify that the image has been applied to the nodes in the affected pool by running a command similar to the following:
184+
+
185+
[source,terminal]
186+
----
187+
$ oc describe machineconfignode/<machine_config_node_name>
188+
----
189+
+
190+
--
191+
include::snippets/mco-mcn-ocl-example.adoc[]
192+
--
193+
+
194+
--
195+
:FeatureName: The `ImagePulledFromRegistry` condition
196+
include::snippets/technology-preview.adoc[]
197+
--
180198

181199
. Verify that the `MachineOSConfig` object contains a reference to the new custom layered image by running the following command:
182200
+

snippets/mco-mcn-ocl-example.adoc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Text snippet included in the following modules:
2+
//
3+
// * modules/coreos-layering-configuring-on
4+
// * modules/checking-mco-node-status
5+
6+
.Example machine config node output
7+
[source,terminal]
8+
----
9+
Name: ip-10-0-14-86.us-west-1.compute.internal
10+
API Version: machineconfiguration.openshift.io/v1
11+
Kind: MachineConfigNode
12+
# ...
13+
Spec:
14+
Config Image:
15+
Desired Image: image-registry.openshift-image-registry.svc:5000/openshift-machine-config-operator/ocb-image@sha256:b485378fd8f7963ed74f14ce64f4f1e511e1601d49302b3046b1b78a83f539e3 <1>
16+
Config Version:
17+
Desired: rendered-worker-d63c7736923b60b8b82492ae9a1eef40
18+
Node:
19+
Name: ip-10-0-14-86.us-west-1.compute.internal
20+
Pool:
21+
Name: worker
22+
# ...
23+
Status:
24+
Conditions:
25+
# ...
26+
Message: Action during update to image-registry.openshift-image-registry.svc:5000/openshift-machine-config-operator/ocb-image@sha256:b485378fd8f7963ed74f14ce64f4f1e511e1601d49302b3046b1b78a83f539e3: Successfully pulled OS image image-registry.openshift-image-registry.svc:5000/openshift-machine-config-operator/ocb-image@sha256:b485378fd8f7963ed74f14ce64f4f1e511e1601d49302b3046b1b78a83f539e3 from registry
27+
Reason: ImagePulledFromRegistry
28+
Status: False
29+
Type: ImagePulledFromRegistry
30+
# ...
31+
Config Image:
32+
Current Image: image-registry.openshift-image-registry.svc:5000/openshift-machine-config-operator/ocb-image@sha256:b485378fd8f7963ed74f14ce64f4f1e511e1601d49302b3046b1b78a83f539e3
33+
Desired Image: image-registry.openshift-image-registry.svc:5000/openshift-machine-config-operator/ocb-image@sha256:b485378fd8f7963ed74f14ce64f4f1e511e1601d49302b3046b1b78a83f539e3
34+
# ...
35+
----
36+
<1> Digested image pull spec for the new custom layered image.
37+

0 commit comments

Comments
 (0)