diff options
author | Dmitry Tantsur <divius.inside@gmail.com> | 2019-01-31 13:29:39 +0100 |
---|---|---|
committer | Dmitry Tantsur <divius.inside@gmail.com> | 2019-01-31 14:33:11 +0100 |
commit | cede60388c2947ca882f53f3d647a5f41e259703 (patch) | |
tree | d84838105fa9488ea2686ff04fceab4c7ca58d15 /ironic/drivers/modules/ipxe.py | |
parent | 7794e29ed6027d5fcf7b8e8ffa46677bccddcb9b (diff) | |
download | ironic-cede60388c2947ca882f53f3d647a5f41e259703.tar.gz |
Fix iPXE boot interface with ipxe_enabled=False
If ipxe_enabled=False, Ironic still tried to download images into
the TFTP location, which could fail. This patch fixes it.
Story: #2004905
Task: #29253
Change-Id: I5958eeb0d9de59a34145dd899354bf2a1a115dde
Diffstat (limited to 'ironic/drivers/modules/ipxe.py')
-rw-r--r-- | ironic/drivers/modules/ipxe.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/drivers/modules/ipxe.py b/ironic/drivers/modules/ipxe.py index 08e448be8..9dca81d73 100644 --- a/ironic/drivers/modules/ipxe.py +++ b/ironic/drivers/modules/ipxe.py @@ -147,7 +147,8 @@ class iPXEBoot(pxe_base.PXEBaseMixin, base.BootInterface): provider = dhcp_factory.DHCPFactory() provider.update_dhcp(task, dhcp_opts) - pxe_info = pxe_utils.get_image_info(node, mode=mode) + pxe_info = pxe_utils.get_image_info(node, mode=mode, + ipxe_enabled=True) # NODE: Try to validate and fetch instance images only # if we are in DEPLOYING state. |