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

Bug 1778859

Summary: RHEL 8.0 UEFI will not boot.
Product: Red Hat OpenStack Reporter: dwane.pottratz
Component: diskimage-builderAssignee: Ben Nemec <bnemec>
Status: CLOSED DUPLICATE QA Contact: Arik Chernetsky <achernet>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17.0 (Wallaby)CC: bfournie, dpeacock, mburns
Target Milestone: ---   
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: 2019-12-02 21:00:53 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-02 16:47:52 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 the images on bare metal ironic nodes.

Here is the command to create the image:


Version-Release number of selected component (if applicable):
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.0-1854.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:
...
[FAILED] Failed to start Switch Root.
See 'systemctl status initrd-switch-root.service' for details.

Generating "/run/initramfs/rdsosreport.txt"

Entering emergency mode. Exit the shell to continue.
...

The rdsosreport does say that /sysroot does not seem to be an OS tree.
I also don't see a mount for sysroot.  I do see /sysroot in the file system (that is expect for the mount point).


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

Comment 1 Bob Fournier 2019-12-02 21:00:53 UTC
This is an issue with RHEL 8.0, see https://bugzilla.redhat.com/show_bug.cgi?id=1680572.  It has been fixed in RHEL 8.1, which will be in OSP-15z2.

This is being tracked for OSP in https://bugzilla.redhat.com/show_bug.cgi?id=1749310, so marking this on as a duplicate.

*** This bug has been marked as a duplicate of bug 1749310 ***

Comment 2 dwane.pottratz 2019-12-09 21:21:22 UTC
Hi,

How do I reopen this bug?  The issue with UEFI booting has been fixed in bug 1749310.  However, I am still seeing issues with booting.

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

Here is what I used to create the image:
export DIB_LOCAL_IMAGE=/tmp/rhel-guest-image-8.1-263.x86_64.qcow2
export DIB_RELEASE=8
export DIB_YUM_REPO_CONF="
/tmp/RHEL-8-appstream.repo \
/tmp/RHEL-8-baseos.repo \
/tmp/RHEL-8-crb.repo \
/tmp/RHEL-8-highavailability.repo \
/tmp/RHEL-8-resilientstorage.repo \
/tmp/RHEL-8-rt.repo \
/tmp/RHEL-8-saphana.repo \
/tmp/RHEL-8-sap.repo
"
disk-image-create -o spe-rhel-8 rhel vm block-device-efi

Please advise on how to reopen this bug or if I need to create a new one.

Thanks,
Dwane

Comment 3 Bob Fournier 2019-12-09 21:54:00 UTC
I'd recommend opening a new bug with details from the last comment, this bug was specific to the issue seen in RHEL 8.0 (Failed to start switch root)

Also please indicate that you are using Packstack, not Red Hat Openstack (i.e. Tripleo), so the Openstack commands to create the image are not available as in https://bugzilla.redhat.com/show_bug.cgi?id=1749310#c10.

Comment 4 dwane.pottratz 2019-12-10 20:20:30 UTC
Created bug 1781885