Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1781885

Summary: RHEL 8.0 UEFI will not boot.
Product: Red Hat OpenStack Reporter: dwane.pottratz
Component: diskimage-builderAssignee: Ian Wienand <iwienand>
Status: CLOSED NOTABUG QA Contact: Arik Chernetsky <achernet>
Severity: high Docs Contact:
Priority: high    
Version: 15.0 (Stein)CC: apevec, aschultz, gavin.hindman, jjoyce, mburns
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-01 18:23:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dwane.pottratz 2019-12-10 20:11:36 UTC
Description of problem:
We do have a local partner repo that I have been using to create UEFI images.  I am able to create images, but there is an error when booting RHEL 8.x images on bare metal ironic nodes.

Version-Release number of selected component (if applicable):
diskimage-builder 2.30.0

How reproducible:
The *.repo's are downloaded from our local mirror to /tmp/repo/.

export DIB_LOCAL_IMAGE=/<path_to_guest_image>/rhel-guest-image-8.1-263.x86_64.qcow2
export DIB_RELEASE=8
export DIB_YUM_REPO_CONF="/tmp/repo/RHEL-8-appstream.repo /tmp/repo/RHEL-8-baseos.repo /tmp/repo/RHEL-8-crb.repo /tmp/repo/RHEL-8-highavailability.repo /tmp/repo/RHEL-8-resilientstorage.repo /tmp/repo/RHEL-8-rt.repo"
disk-image-create -o spe-rhel-8 rhel vm block-device-efi

Actual results:
I am able to create an image using disk-image-builder, but it will not boot.  It looks like the kernel gets stuck.  Here are the last few lines from the boot.

[   30.180212] ata1.00: Enabling discard_zeroes_data
[   30.243332] sd 0:0:0:0: [sda] 937703088 512-byte logical blocks: (480 GB/447 GiB)
[   30.339826] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   30.409229] sd 0:0:0:0: [sda] Write Protect is off
[   30.473241] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doest support DPO or FUA
[   30.588500] ata1.00: Enabling discard_zeroes_data
[   30.653899]  sda: sda1 sda2 sda3 sda4
[   30.705099] ata1.00: Enabling discard_zeroes_data
[   30.768296] sd 0:0:0:0: [sda] Attached SCSI disk
[   30.837125] sr 7:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd-rw xa/form2 cdda tray
[   30.947187] cdrom: Uniform CD-ROM driver Revision: 3.20

Expected results:
The image should boot, connect to cloud-init service, and be access according to the cloud-init services requested.

Comment 1 dwane.pottratz 2019-12-10 20:19:09 UTC
NOTE: I am using a packstack install from the RDO project to apply the images using ironic.  I am using centos 7 with the latest diskimage-builder to create the images on a separate machine.  I had to uninstall python-yaml to get diskimage builder to install with pip install diskimage-buidler.  The distro release of diskimage-builder fro centos 7 does not contain the block-device-efi element needed for UEFI image creation.

I have no issues creating and using fedora, ubuntu, or centos images.  They all will boot UEFI using ironic on bare metal.  They will also boot in KVM with q35 chipset and OVMF firmware.

RHEL 8.x images seem to have issues in booting bare metal (UEFI) or KVM (UEFI).  In both situations they fail in the same way.

Comment 2 dwane.pottratz 2019-12-17 19:02:27 UTC
Is anyone looking at this bug?  Any information that I can provide?

Comment 3 Lon Hohberger 2019-12-23 13:15:58 UTC
Is this a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1772652 ?

Comment 4 dwane.pottratz 2019-12-23 15:55:19 UTC
(In reply to Lon Hohberger from comment #3)
> Is this a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1772652 ?

No.  I am able to create images, but the image will not boot.

Comment 5 Alan Pevec 2020-01-07 12:36:30 UTC
disk-image builder is designated as non-core package in the RHOS package manifest:
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/15/html/package_manifest/ch02

That means DIB is supported only for RHOS.
What is the use-case here?

Comment 6 dwane.pottratz 2020-01-07 15:29:07 UTC
(In reply to Alan Pevec from comment #5)
> disk-image builder is designated as non-core package in the RHOS package
> manifest:
> https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/15/
> html/package_manifest/ch02
> 
> That means DIB is supported only for RHOS.
> What is the use-case here?

We are trying to create RHEL images for bare metal booting using ironic.

Comment 7 Mike Burns 2020-01-28 15:56:26 UTC
I think you should be starting with the RHEL guest image, then, not using DIB.  There are other tools provided by RHEL for customizing those images to fit your needs (libguestfs).

Comment 8 Red Hat Bugzilla 2023-09-14 05:48:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days