Skip to content

Commit b22859e

Browse files
author
Michael Burke
committed
OSDOCS 18571 [Docs] Explain admin-ack remediation in 4.21 bootimage update docs MAIN
1 parent 745e854 commit b22859e

1 file changed

Lines changed: 49 additions & 5 deletions

File tree

modules/mco-update-boot-images-disable.adoc

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
[role="_abstract"]
1111
You can disable the boot image management feature so that the Machine Config Operator (MCO) no longer manages or updates the boot image in the affected machine sets. For example, you could disable this feature for the worker nodes in order to use a custom boot image that you do not want changed.
1212

13+
[NOTE]
14+
====
15+
If you are updating an {azure-first} or {vmw-first} cluster from {product-title} 4.21 to 4.22, and you have not configured the `managedBootImages` parameter, the update is blocked with a _This cluster is Azure or vSphere but lacks a boot image configuration._ message. The update is blocked intentionally on {azure-short} or {vmw-short} clusters in order to alert you that the default boot image management behavior is changing between version 4.21 and 4.22 to enable boot images management by default on those platforms.
16+
17+
To allow the update, perform one of the following tasks:
18+
19+
* If you want to allow the feature to be enabled, acknowledge that you are aware of the change in the default behavior by patching the `admin-acks` config map by running the following command:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc -n openshift-config patch cm admin-acks --patch '{"data":{"ack-4.21-boot-image-opt-out-in-4.22":"true"}}' --type=merge
24+
----
25+
26+
* If you do not want the boot image management feature enabled, explicitly disable the feature for worker machine sets by using the following procedure.
27+
====
28+
1329
You disable the boot image management feature for the control plane or worker machine sets in your cluster by editing the `MachineConfiguration` object.
1430

1531
[NOTE]
@@ -32,7 +48,9 @@ After disabling the feature, you can re-enable the feature at any time. For more
3248
$ oc edit MachineConfiguration cluster
3349
----
3450

35-
. Disable the feature for some or all of your machine sets:
51+
. Disable the feature for some or all of your machine sets by making one or both of the following changes:
52+
53+
* Disable the feature for nodes in the worker machine sets by adding the following parameters:
3654
+
3755
[source,yaml]
3856
----
@@ -48,6 +66,32 @@ spec:
4866
resource: machinesets
4967
selection:
5068
mode: None
69+
----
70+
+
71+
--
72+
where:
73+
74+
`spec.managedBootImages`:: Specifies the parameters for the boot image management feature.
75+
76+
`spec.managedBootImages.machineManagers.apiGroup`:: Specifies the API group. This must be `machine.openshift.io`.
77+
78+
`spec.managedBootImages.machineManagers.resource.machinesets`:: Specifies that the `selection.mode` parameter applies to compute nodes.
79+
80+
`spec.managedBootImages.machineManagers.selection.mode.None`:: Specifies that the feature is disabled for the specified machine sets.
81+
--
82+
83+
* Disable the feature for nodes in the control plane machine sets by adding the following parameters:
84+
+
85+
[source,yaml]
86+
----
87+
apiVersion: operator.openshift.io/v1
88+
kind: MachineConfiguration
89+
metadata:
90+
name: cluster
91+
spec:
92+
# ...
93+
managedBootImages:
94+
machineManagers:
5195
- apiGroup: machine.openshift.io
5296
resource: controlplanemachinesets
5397
selection:
@@ -57,13 +101,13 @@ spec:
57101
--
58102
where:
59103
60-
`spec.managedBootImages`:: Configures the boot image management feature.
104+
`spec.managedBootImages`:: Specifies the parameters for the boot image management feature.
61105

62-
`spec.managedBootImages.machineManagers.selection.mode.None`:: Specifies that the feature is disabled for all machine sets in the cluster. Set the selection mode to `None` for one or both of the following resources to disable the feature for that resource.
106+
`spec.managedBootImages.machineManagers.apiGroup`:: Specifies the API group. This must be `machine.openshift.io`.
63107

64-
* `controlplanemachinesets`: Disable boot image management for control plane machine sets.
108+
`spec.managedBootImages.machineManagers.resource.controlplanemachinesets`:: Specifies that the `selection.mode` parameter applies to control plane nodes.
65109

66-
* `machinesets`: Disables boot image management for worker machine sets.
110+
`spec.managedBootImages.machineManagers.selection.mode.None`:: Specifies that the feature is disabled for the specified machine sets.
67111
--
68112

69113
////

0 commit comments

Comments
 (0)