From 70ccb6af111186431b898c4dc6c1c3e6564ab1d7 Mon Sep 17 00:00:00 2001 From: Jacob Anders Date: Tue, 9 Apr 2024 22:12:16 +1000 Subject: [PATCH] Add states.SERVICING and SERVICEWAIT to need_prepare_ramdisk Currently, service steps do not work with virtual media deployments because states.SERVICING and states.SERVICEWAIT are missing from the whitelist of valid provision_states. This change resolves this issue. Change-Id: I5e3ec08d128b35385f2d90c9c852140b757b8dbf --- ironic/drivers/utils.py | 4 +++- ...servicing-to-need-prepare-ramdisk-fb0634b4f7d851bd.yaml | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/add-servicing-to-need-prepare-ramdisk-fb0634b4f7d851bd.yaml diff --git a/ironic/drivers/utils.py b/ironic/drivers/utils.py index 642bdb33f6..2d9bdcf5a3 100644 --- a/ironic/drivers/utils.py +++ b/ironic/drivers/utils.py @@ -501,4 +501,6 @@ def need_prepare_ramdisk(node): states.RESCUING, states.RESCUEWAIT, states.INSPECTING, - states.INSPECTWAIT) + states.INSPECTWAIT, + states.SERVICING, + states.SERVICEWAIT) diff --git a/releasenotes/notes/add-servicing-to-need-prepare-ramdisk-fb0634b4f7d851bd.yaml b/releasenotes/notes/add-servicing-to-need-prepare-ramdisk-fb0634b4f7d851bd.yaml new file mode 100644 index 0000000000..aa2391edfd --- /dev/null +++ b/releasenotes/notes/add-servicing-to-need-prepare-ramdisk-fb0634b4f7d851bd.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fixes issue with configuring virtual media boot for executing service + steps by adding missing entries for states.SERVICING and states.SERVICEWAIT + in the whitelist of the states allowed by this method. +