diff options
author | Hironori Shiina <shiina.hironori@jp.fujitsu.com> | 2018-10-14 22:13:47 +0900 |
---|---|---|
committer | Hironori Shiina <shiina.hironori@jp.fujitsu.com> | 2018-11-03 23:46:12 +0900 |
commit | 60767aee611bb46cf4b3fd1639224f817551bfb9 (patch) | |
tree | 22a166b891c3fe183a2440641eae7cadfc1d944b /ironic/conf/deploy.py | |
parent | 82190ae484082e46a1011150b2ec3d2d0a5ecd67 (diff) | |
download | ironic-60767aee611bb46cf4b3fd1639224f817551bfb9.tar.gz |
Recommend to set boot mode explicitly
A future release will change the default boot mode from legacy BIOS
to UEFI. The default boot mode can be set to
[deploy]/default_boot_mode option for hardware types which support
setting boot mode. Otherwise, the default boot mode is hard-coded as
legacy BIOS.
This patch recommends to set boot mode explicitly in a help message of
[deploy]/default_boot_mode option. A warning message is also logged
when a default hard-coded boot mode is used. This message is logged
once even if there are multiple nodes whose boot modes are configured
explicitly for not emitting too many messages.
Change-Id: Ib90ebf59ba72d49cb757e44f3741b5373a411ddf
Story: 2003936
Task: 27475
Diffstat (limited to 'ironic/conf/deploy.py')
-rw-r--r-- | ironic/conf/deploy.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ironic/conf/deploy.py b/ironic/conf/deploy.py index 0c763fd75..6ae153b7d 100644 --- a/ironic/conf/deploy.py +++ b/ironic/conf/deploy.py @@ -85,10 +85,13 @@ opts = [ help=_('Default boot mode to use when no boot mode is ' 'requested in node\'s driver_info, capabilities or ' 'in the `instance_info` configuration. Currently the ' - 'default boot mode is "%(bios)s". This option only ' - 'has effect when management interface supports boot ' - 'mode management') % { - 'bios': boot_modes.LEGACY_BIOS}), + 'default boot mode is "%(bios)s", but it will be ' + 'changed to "%(uefi)s in the future. It is recommended ' + 'to set an explicit value for this option. This option ' + 'only has effect when management interface supports ' + 'boot mode management') % { + 'bios': boot_modes.LEGACY_BIOS, + 'uefi': boot_modes.UEFI}), cfg.BoolOpt('configdrive_use_object_store', default=False, deprecated_group='conductor', |