diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-05-07 16:07:18 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-06-19 11:13:32 +0200 |
commit | 65480f6b9ac3ceaec1d30cf58de09df020706408 (patch) | |
tree | e3aaad6df9fb0a0be5a985ad6c2bdd87a9d879b5 /ironic/conf/pxe.py | |
parent | df439697ae4972b7d6b2e9fb39ab79a58e52c3e9 (diff) | |
download | ironic-65480f6b9ac3ceaec1d30cf58de09df020706408.tar.gz |
Networking boot fallback for local boot
Adds an ability to generate network boot templates even for nodes that
use local boot via the new ``[pxe]enable_netboot_fallback`` option.
This is required to work around the situation when switching boot devices
does not work reliably.
Depends-On: https://review.opendev.org/#/c/736191/
Change-Id: Id80f2d88f9c92ff102340309a526a9b3992c6038
Story: #2007610
Task: #39600
Diffstat (limited to 'ironic/conf/pxe.py')
-rw-r--r-- | ironic/conf/pxe.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ironic/conf/pxe.py b/ironic/conf/pxe.py index 1a86237a7..0e8ff5e37 100644 --- a/ironic/conf/pxe.py +++ b/ironic/conf/pxe.py @@ -147,6 +147,15 @@ opts = [ "local HTTP server. " "Applicable only when 'ipxe' compatible boot interface " "is used.")), + cfg.BoolOpt('enable_netboot_fallback', + default=False, + mutable=True, + help=_('If True, generate a PXE environment even for nodes ' + 'that use local boot. This is useful when the driver ' + 'cannot switch nodes to local boot, e.g. with SNMP ' + 'or with Redfish on machines that cannot do persistent ' + 'boot. Mostly useful for standalone ironic since ' + 'Neutron will prevent incorrect PXE boot.')), ] |