diff options
author | Zuul <zuul@review.opendev.org> | 2023-03-27 14:07:23 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-03-27 14:07:23 +0000 |
commit | abbd859b766c339f5de33ff08704a7b9ad045bef (patch) | |
tree | f9f6db7f718ba40c089f3ea369940ca1aef935c1 /ironic/drivers/modules | |
parent | 9aa7d7d4e5ec2e4445fed14421f18c733a0171ff (diff) | |
parent | 6341003dac69280931dd22f05308ed61f6457186 (diff) | |
download | ironic-abbd859b766c339f5de33ff08704a7b9ad045bef.tar.gz |
Merge "Enables boot modes switching with Anaconda deploy for ilo driver"
Diffstat (limited to 'ironic/drivers/modules')
-rw-r--r-- | ironic/drivers/modules/ilo/boot.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ironic/drivers/modules/ilo/boot.py b/ironic/drivers/modules/ilo/boot.py index e29852981..fe2cef02a 100644 --- a/ironic/drivers/modules/ilo/boot.py +++ b/ironic/drivers/modules/ilo/boot.py @@ -604,6 +604,12 @@ class IloPXEBoot(pxe.PXEBoot): else: # Volume boot in BIOS boot mode is handled using # PXE boot interface + boot_option = deploy_utils.get_boot_option(task.node) + if boot_option == "kickstart": + if task.node.provision_state in (states.DEPLOYING, + states.RESCUING, + states.CLEANING): + prepare_node_for_deploy(task) super(IloPXEBoot, self).prepare_instance(task) @METRICS.timer('IloPXEBoot.clean_up_instance') @@ -696,6 +702,12 @@ class IloiPXEBoot(ipxe.iPXEBoot): else: # Volume boot in BIOS boot mode is handled using # PXE boot interface + boot_option = deploy_utils.get_boot_option(task.node) + if boot_option == "kickstart": + if task.node.provision_state in (states.DEPLOYING, + states.RESCUING, + states.CLEANING): + prepare_node_for_deploy(task) super(IloiPXEBoot, self).prepare_instance(task) @METRICS.timer('IloiPXEBoot.clean_up_instance') |