This spec proposes to add support creation of dual(bios+uefi) boot ISO automatically.
Today, a dual-mode boot ISO has to be created manually, uploaded to Glance, and associated with the instance image in Glance by setting its “boot_iso” image property. The deploy image can be modified using GRUB on runtime. This is required by the iscsi_ilo driver to enable UEFI boot mode.
This spec proposes to use GRUB to create the dual-mode boot ISO on the fly in ironic/common/images.py. This image will be uploaded to swift and associated with the node for which it was created, and will not be shared between instances, even when using the same instance image. When the instance is deleted, the boot_iso file is deleted from swift. The steps would be as follows:
Create isolinux config file.
Create the grub config files.
Create the bootx64.efi.
create vfat image efiboot.img
Create ISO using mkisofs with the following options added “-eltorito-alt-boot -e isolinux/efiboot.img” to existing syntax.
The boot iso is created by the driver and uploaded at the swift container.
when node is torn down, the boot iso is deleted by the driver.
To boot up in UEFI mode, the deployer can create the ISO manually using disk-image-builder utility disk-image-create and upload on glance.
Data model impact¶
REST API impact¶
RPC API impact¶
Driver API impact¶
Nova driver impact¶
Other end user impact¶
Other deployer impact¶
The boot iso can be created and uploaded to the swift on the fly when deploy is invoked for iscsi_ilo driver i.e. current manual step for updating the deploy image with the boot iso will not be required after the enhancement.
- Primary assignee:
In /opt/stack/ironic/ironic/common/images.py file,
To create the conf file for UEFI
To enhance the function create_isolinux_image() for creating UEFI capable ISO.
To remove the check in /opt/stack/ironic/ironic/drivers/modules/ilo/deploy.py for erroring out when the deploy image doesn’t has the boot_iso uuid updated.
The unit tests will be added/updated as required for the code.
Upgrades and Backwards Compatibility¶
The iscsi_ilo driver will support both the manual and automated boot iso methods. By default, if the image already has the “boot_iso” property populated, the driver will consume the boot_iso from it.