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

Bug 1547818

Summary: Failed to install RHVH 7.5 on UEFI machine.
Product: Red Hat Enterprise Virtualization Manager Reporter: cshao <cshao>
Component: rhev-hypervisor-ngAssignee: Ryan Barry <rbarry>
Status: CLOSED CURRENTRELEASE QA Contact: cshao <cshao>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.1.10CC: asabadra, cshao, dfediuck, huzhao, qiyuan, rbarry, sbonazzo, sbueno, yaniwang, ycui, yturgema, yzhao
Target Milestone: ovirt-4.2.3Keywords: Regression, TestOnly
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-09 10:24:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
uefi1
none
uefi2
none
RHEL75_Beta_UEFI_Fail none

Description cshao 2018-02-22 02:57:57 UTC
Description of problem:
Failed to install RHVH (redhat-virtualization-host-4.1-20180218.0) on UEFI machine.

error:/images/pxeboot/vmlinuz has invalid signature.
error: you need to load the kernel first

Press any key to continue...

Version-Release number of selected component (if applicable):
redhat-virtualization-host-4.1-20180218.0
imgbased-0.9.54-0.1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install RHVH-4.1-20180218.0-RHVH-x86_64-dvd1.iso on UIFI machine.
2. Choose "Install RHVH 4.1" or "Test this media & install RHVH 4.1"
3. Focus on the output.

Actual results:
Failed to install RHVH (redhat-virtualization-host-4.1-20180218.0) on UEFI machine.

Expected results:
Install RHVH can successful.

Additional info:
No such issue on previous build RHVH-4.1-20180128.0-RHVH-x86_64-dvd1.iso, so this is a regression bug.

Comment 1 cshao 2018-02-22 03:00:42 UTC
Created attachment 1399096 [details]
uefi1

Comment 2 Ryan Barry 2018-02-22 03:00:56 UTC
This is the first 7.5 build. 

RHVH had no code changes.

Is this reproducible over PXE? If not, the ISO distill root may need some tweaking. Aviv, can you check?

Comment 3 cshao 2018-02-22 03:01:13 UTC
Created attachment 1399097 [details]
uefi2

Comment 4 cshao 2018-02-22 03:03:08 UTC
No such issue on iscsi machine and VM. It only occurs on UEFI machine.

Comment 5 cshao 2018-02-22 06:06:44 UTC
Can reproduce this issue with redhat-virtualization-host-4.2-20180218.0.

Comment 7 cshao 2018-02-23 02:59:45 UTC
(In reply to Aviv Sabadra from comment #6)
> I built a new ISO, can you try it?
> 
> http://download-node-02.eng.bos.redhat.com/devel/candidate-trees/RHVH-4.1-
> 20180222.15/compose/RHVH/x86_64/iso/RHVH-4.1-20180222.15-RHVH-x86_64-dvd1.iso

Still met the same issue.
Failed to install RHVH-4.1-20180222.15-RHVH-x86_64-dvd1.iso on UEFI machine.
No such issue on VM.

Comment 8 Ryan Barry 2018-02-23 03:00:52 UTC
Can you test with SecureBoot off?

Comment 9 Ryan Barry 2018-02-23 03:33:56 UTC
Samantha, any guesses here?

This is built with a pungi distill from snapshot 5

Comment 10 cshao 2018-02-23 07:34:00 UTC
(In reply to Ryan Barry from comment #8)
> Can you test with SecureBoot off?

Install RHVH-4.1-20180222.15-RHVH-x86_64-dvd1.iso & RHVH-4.1-20180218.0-RHVH-x86_64-dvd1.iso on UEFI machine both can successful after change SecureBoot off.
But so strange, no such issue on previous build RHVH-4.1-20180128.0-RHVH-x86_64-dvd1.iso even with SecureBoot enabled.

So is this a problem? It not, I will close this bug.

Comment 11 Aviv Sabadra 2018-02-25 08:29:58 UTC
I'm suspecting this is somehow connected to package signing... Can you please try this one: http://download-node-02.eng.bos.redhat.com/devel/candidate-trees/RHVH-4.1-20180225.0/compose/RHVH/x86_64/iso/RHVH-4.1-20180225.0-RHVH-x86_64-dvd1.iso ?

Comment 12 cshao 2018-02-26 05:56:32 UTC
(In reply to Aviv Sabadra from comment #11)
> I'm suspecting this is somehow connected to package signing... Can you
> please try this one:
> http://download-node-02.eng.bos.redhat.com/devel/candidate-trees/RHVH-4.1-
> 20180225.0/compose/RHVH/x86_64/iso/RHVH-4.1-20180225.0-RHVH-x86_64-dvd1.iso ?


1. Set SecureBoot off in UEFI machine
Install RHVH-4.1-20180225.0-RHVH-x86_64-dvd1.iso - Pass

2. Set SecureBoot on in UEFI machine
Install RHVH-4.1-20180225.0-RHVH-x86_64-dvd1.iso - Failed(Met the same issue like the bug's description)

Comment 16 cshao 2018-02-27 08:44:05 UTC
Created attachment 1401216 [details]
RHEL75_Beta_UEFI_Fail

Comment 19 Yuval Turgeman 2018-02-27 10:46:47 UTC
(In reply to cshao from comment #16)
> Created attachment 1401216 [details]
> RHEL75_Beta_UEFI_Fail

Makes sense, it's either a grub2 or kernel packaging mismatch error, or as designed for beta releases, need to ask the RHEL team.

Comment 20 Samantha N. Bueno 2018-02-27 21:20:02 UTC
(In reply to Yuval Turgeman from comment #19)
> (In reply to cshao from comment #16)
> > Created attachment 1401216 [details]
> > RHEL75_Beta_UEFI_Fail
> 
> Makes sense, it's either a grub2 or kernel packaging mismatch error, or as
> designed for beta releases, need to ask the RHEL team.

You've got the gist of it. It's somewhat as designed; the kernel is signed with test keys for beta, so you have to enroll that key if you want to enable secure boot for beta.

I think this should function as a workaround: https://access.redhat.com/solutions/2573221

Comment 21 Yuval Turgeman 2018-02-28 08:37:28 UTC
(In reply to Samantha N. Bueno from comment #20)
> (In reply to Yuval Turgeman from comment #19)
> > (In reply to cshao from comment #16)
> > > Created attachment 1401216 [details]
> > > RHEL75_Beta_UEFI_Fail
> > 
> > Makes sense, it's either a grub2 or kernel packaging mismatch error, or as
> > designed for beta releases, need to ask the RHEL team.
> 
> You've got the gist of it. It's somewhat as designed; the kernel is signed
> with test keys for beta, so you have to enroll that key if you want to
> enable secure boot for beta.
> 
> I think this should function as a workaround:
> https://access.redhat.com/solutions/2573221

Nice, thanks for the link - perhaps it's a stupid question, but is there a reason that shim isn't shipped with the beta key pre enrolled somehow in beta releases ?

Comment 22 Samantha N. Bueno 2018-02-28 09:33:26 UTC
(In reply to Yuval Turgeman from comment #21)
> (In reply to Samantha N. Bueno from comment #20)
> > (In reply to Yuval Turgeman from comment #19)
> > > (In reply to cshao from comment #16)
> > > > Created attachment 1401216 [details]
> > > > RHEL75_Beta_UEFI_Fail
> > > 
> > > Makes sense, it's either a grub2 or kernel packaging mismatch error, or as
> > > designed for beta releases, need to ask the RHEL team.
> > 
> > You've got the gist of it. It's somewhat as designed; the kernel is signed
> > with test keys for beta, so you have to enroll that key if you want to
> > enable secure boot for beta.
> > 
> > I think this should function as a workaround:
> > https://access.redhat.com/solutions/2573221
> 
> Nice, thanks for the link - perhaps it's a stupid question, but is there a
> reason that shim isn't shipped with the beta key pre enrolled somehow in
> beta releases ?

Np, I hope that helps to alleviate some of your current pain.

That's a good question actually, and I'm not really sure why it isn't shipped with the key enrolled. My initial reaction/guess is since it's a test key, it's not something we can call official. I can try and ask around to find a more definite answer.

Comment 23 Samantha N. Bueno 2018-03-01 10:21:47 UTC
As a follow-up to my previous comment, it seems that the test keys are not enrolled because there is no easy way of automatically enrolling them. I don't know if that helps to explain things any further -- I wish I had a better understanding of SecureBoot myself.

Comment 24 Yuval Turgeman 2018-03-01 13:57:21 UTC
(In reply to Samantha N. Bueno from comment #23)
> As a follow-up to my previous comment, it seems that the test keys are not
> enrolled because there is no easy way of automatically enrolling them. I
> don't know if that helps to explain things any further -- I wish I had a
> better understanding of SecureBoot myself.

Thanks for the update :)

Comment 25 Ryan Barry 2018-04-23 11:37:42 UTC
Can you please retest this now that 7.5 is GA?

Comment 26 cshao 2018-04-23 13:02:15 UTC
Test version:
redhat-virtualization-host-4.1-20180420.0
redhat-virtualization-host-4.2-20180420.0

Test result:
1. Set SecureBoot off in UEFI machine - Install - Pass
2. Set SecureBoot on in UEFI machine - Install - Pass

So the bug is fixed, change bug status to VERIFIED.

Comment 27 Yuval Turgeman 2018-09-20 06:26:19 UTC
*** Bug 1631153 has been marked as a duplicate of this bug. ***

Comment 28 Franta Kust 2019-05-16 13:04:38 UTC
BZ<2>Jira Resync