Created attachment 1322332 [details] Boot Fail console Description of problem: Need to have diskimage-builder support whole disk images with UEFI for bz[2]. The whole disk image support with GPT partition and UEFI boot partition would be required most likely with diskimage-builder. Recent testing using diskimage-builder showing whole disk image built with MBR type by default. Please see doc [3] under section 8.14.1.1 MBR and GPT considerations "UEFI systems Only GPT is allowed on UEFI systems. In order to install on a formatted disk with a MBR, you must first reformat it." How reproducible: 100% and is testing using Bare metal setup Steps to Reproduce: 1. Deploy osp 12 undercloud [1] update undercloud.conf per UEFI documentation 2. register nodes 3. perform introspection (see [2] bz 1479386 for workaround 4. deploy overcloud nodes Actual results: Please see console image (attachment) You can see our hardened image is msdos(MBR). We believe this is the reason why we can't deploy this image under UEFI. This same hardened image works with default BIOS boot (undercloud) [stack@undercloud images]$ guestfish -a overcloud-hardened-full.qcow2 Welcome to guestfish, the guest filesystem shell for editing virtual machine filesystems and disk images. Type: 'help' for help on commands 'man' to read the manual 'quit' to quit the shell ><fs> run 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 ><fs> mount /dev/sda / libguestfs: error: mount: /dev/sda on / (options: ''): mount: /dev/sda is write-protected, mounting read-only mount: unknown filesystem type '(null)' ><fs> mount /dev/sda1 / ><fs> list-filesystems /dev/sda1: xfs /dev/sda2: unknown /dev/sda5: xfs /dev/sda6: xfs /dev/sda7: xfs /dev/sda8: xfs /dev/sda9: xfs ><fs> list-partitions /dev/sda1 /dev/sda2 /dev/sda5 /dev/sda6 /dev/sda7 /dev/sda8 /dev/sda9 ><fs> part-get-parttype /dev/sda msdos Expected results: We expect to successfully deploy rhel whole disk image with UEFI Additional info: [0] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/html/director_installation_and_usage/appe-alternative_boot_modes#appe-Alternative_Boot_Modes-UEFI [1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/11/html/director_installation_and_usage/appe-alternative_boot_modes#appe-Alternative_Boot_Modes-UEFI [2] https://bugzilla.redhat.com/show_bug.cgi?id=1479386 [3] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-disk-partitioning-setup-x86.html#sect-bootloader-x86
Support for GPT in block devices need to be added to diskimage-builder.
It was discussed and agreed this is not a bug rather a new feature [RFE]. I have updated the subject to reflect this being a RFE
There is some progress here; [1] proposes GPT support for dib. It's still an open question how to get UEFI bootloaders installed in the image, but this is a start. [1] https://review.openstack.org/#/c/533490/
Ian, is there any additional work to add support for UEFI boot loader (grub2-efi) to dib in the context of building the overcloud-full image? If so, could you add it here? Thanks!
I couldn't 100% say; for a basic use-case, I would think no. However if you start adding custom layout partitions or lvm+uefi for example ... then that probably needs some tweaking. Per [1], appending the "block-device-efi" element should flip the build into making an efi boot partition and installing grub-efi. [1] https://docs.openstack.org/diskimage-builder/latest/user_guide/building_an_image.html#disk-image-layout
Moving to OSP-15.
Currently there is no support for it, but I started to work on that this week.
It looks like all fixes have landed, can we move this to POST?
Looks like all patches have merged, moving to POST.
I started the backport to 13, opening a new bug to track it https://bugzilla.redhat.com/show_bug.cgi?id=1646907