From a83cdf78996e616228fe4adf22023515f254f579 Mon Sep 17 00:00:00 2001 From: danielclowers Date: Mon, 22 Jul 2024 16:11:38 -0400 Subject: [PATCH] CNV#44566: workloadUpdateMethods is backed up in an environment variable --- ...-preventing-workload-updates-during-eus-update.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/virt-preventing-workload-updates-during-eus-update.adoc b/modules/virt-preventing-workload-updates-during-eus-update.adoc index f1f89aebcf..a2db7a5349 100644 --- a/modules/virt-preventing-workload-updates-during-eus-update.adoc +++ b/modules/virt-preventing-workload-updates-during-eus-update.adoc @@ -20,12 +20,12 @@ When you update from one Extended Update Support (EUS) version to the next, you .Procedure -. Back up the current `workloadUpdateMethods` configuration by running the following command: +. Run the following command and record the `workloadUpdateMethods` configuration: + [source,terminal,subs="attributes+"] ---- -$ WORKLOAD_UPDATE_METHODS=$(oc get kv kubevirt-kubevirt-hyperconverged \ - -n {CNVNamespace} -o jsonpath='{.spec.workloadUpdateStrategy.workloadUpdateMethods}') +$ oc get kv kubevirt-kubevirt-hyperconverged \ + -n {CNVNamespace} -o jsonpath='{.spec.workloadUpdateStrategy.workloadUpdateMethods}' ---- . Turn off all workload update methods by running the following command: @@ -181,12 +181,12 @@ $ oc get csv -n {CNVNamespace} + The update completes when the `VERSION` field matches the target EUS version and the `PHASE` field reads `Succeeded`. -. Restore the workload update methods configuration that you backed up: +. Restore the `workloadUpdateMethods` configuration that you recorded from step 1 with the following command: + [source,terminal,subs="attributes+"] ---- $ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} --type json -p \ - "[{\"op\":\"add\",\"path\":\"/spec/workloadUpdateStrategy/workloadUpdateMethods\", \"value\":$WORKLOAD_UPDATE_METHODS}]" + "[{\"op\":\"add\",\"path\":\"/spec/workloadUpdateStrategy/workloadUpdateMethods\", \"value\":{WorkloadUpdateMethodConfig}}]" ---- + .Example output