Skip to content

Commit 7c6e87e

Browse files
committed
Explicitly set boot_mode to legacy BIOS
Since we currently only support legacy BIOS boot mode, set it explicitly in node capabilities. This is especially important since Ironic changed the default boot mode to UEFI in Yoga. If the capabilities field is provided, the boot_mode should be set explicitly. This change should be followed by one that adds support for UEFI boot mode. Change-Id: I0c1e0cc50119cc2f9ba3e0b0a3548baeca9dca2e
1 parent 7331ccf commit 7c6e87e

File tree

1 file changed

+5
-0
lines changed
  • ansible/roles/ironic-enrolment/tasks

1 file changed

+5
-0
lines changed

ansible/roles/ironic-enrolment/tasks/node.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@
102102
cpus: "{{ node.vcpus }}"
103103
memory_mb: "{{ node.memory_mb }}"
104104
local_gb: "{{ node.volumes[0].capacity | size_string_to_gb if node.volumes | length > 0 else 0 }}"
105+
# Since we currently only support legacy BIOS boot mode, set it
106+
# explicitly here. This is especially important since Ironic changed
107+
# the default boot mode to UEFI in Yoga. If the capabilities field is
108+
# provided, the boot_mode should be set explicitly.
109+
capabilities: "boot_mode:bios"
105110

106111
- name: Add Ironic node traits
107112
command: >-

0 commit comments

Comments
 (0)