Add parameter IronicDefaultBootMode

The change to hard-code the default boot mode to ``uefi`` was reverted
since the test environment (OVB on vexxhost) doesn't yet support UEFI
boot. This change adds the IronicDefaultBootMode parameter so the
default boot mode can be set appropriately for each environment.

Blueprint: whole-disk-default
Change-Id: I10348eb1aaf6a594ae06bcc855dfdd8c6c00bfe9
(cherry picked from commit 978f29d8c9)
This commit is contained in:
Steve Baker 2021-09-20 09:46:23 +12:00
parent 47bc861a03
commit 788d66b086
2 changed files with 14 additions and 2 deletions

View File

@ -79,6 +79,12 @@ parameters:
images). Set to 'netboot' to make the instances boot from
controllers using PXE/iPXE.
type: string
IronicDefaultBootMode:
default: 'bios'
description: Default boot mode to use when no boot mode is explicitly
requested in node's driver_info, capabilities or in the
"instance_info" configuration. One of 'bios' or 'uefi'.
type: string
IronicDefaultDeployInterface:
default: ''
description: Deploy interface implementation to use by default. Leave empty to
@ -345,6 +351,8 @@ outputs:
ironic::drivers::ipmi::min_command_interval: 15
- ironic::conductor::cleaning_disk_erase: {get_param: IronicCleaningDiskErase}
ironic::conductor::default_boot_option: {get_param: IronicDefaultBootOption}
ironic::conductor::default_boot_mode: {get_param: IronicDefaultBootMode}
ironic::drivers::ilo::default_boot_mode: {get_param: IronicDefaultBootMode}
ironic::conductor::automated_clean: {get_param: IronicAutomatedClean}
ironic::conductor::enabled_hardware_types: {get_param: IronicEnabledHardwareTypes}
ironic::conductor::force_power_state_during_sync: {get_param: IronicForcePowerStateDuringSync}
@ -392,8 +400,6 @@ outputs:
- 'always'
- 'on_failure'
ironic::drivers::agent::image_download_source: {get_param: IronicImageDownloadSource}
# NOTE(emilien): ILO defaulting to UEFI does not match other drivers so bios is used.
ironic::drivers::ilo::default_boot_mode: 'bios'
ironic::drivers::interfaces::enabled_bios_interfaces: {get_param: IronicEnabledBiosInterfaces}
ironic::drivers::interfaces::enabled_boot_interfaces: {get_param: IronicEnabledBootInterfaces}
ironic::drivers::interfaces::enabled_console_interfaces: {get_param: IronicEnabledConsoleInterfaces}

View File

@ -0,0 +1,6 @@
---
features:
- |
New configuration ``IronicDefaultBootMode`` allows to change the default
boot mode to use for bare metal instances. The default for now remains
``bios`` for legacy BIOS boot but may switch to ``uefi`` in the future.