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
This commit is contained in:
Jacob Anders 2024-04-09 22:12:16 +10:00
parent 272344e951
commit 70ccb6af11
2 changed files with 10 additions and 1 deletions

View File

@ -501,4 +501,6 @@ def need_prepare_ramdisk(node):
states.RESCUING,
states.RESCUEWAIT,
states.INSPECTING,
states.INSPECTWAIT)
states.INSPECTWAIT,
states.SERVICING,
states.SERVICEWAIT)

View File

@ -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.