Bug 1560003

Summary: FDI does not boot on HyperV Gen2 VM due to missing SCSI driver in initram disk
Product: Red Hat Satellite Reporter: Hradayesh Shukla <hshukla>
Component: Discovery ImageAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Jan Hutaƙ <jhutar>
Severity: low Docs Contact:
Priority: low    
Version: 6.3.0CC: a.r.welter, asamad, cdonnell, gsigrisi, jhutar, jpriddy, ktordeur, lzap, mmccune, rabajaj
Target Milestone: 6.4.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: foreman-discovery-image-3.5.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 16:48:22 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:
Bug Depends On: 1595574    
Bug Blocks: 1596043, 1598020    

Description Hradayesh Shukla 2018-03-23 17:24:45 UTC
Description of problem:
Foreman discovery image 3.4.4-1 doesn't boot with UEFI for VM (hyper-v gen2 )


Version-Release number of selected component (if applicable):
foreman-discovery-image-3.4.4-1.iso


How reproducible:


Steps to Reproduce:
1. Boot the VM in UEFI with the foreman-discovery-image-3.4.4-1.iso
2. When booting with the foreman-discovery-image provided with the Red Hat Satellite, booting fails with error: Unable to load the kernel.
3. If you try to access the shell, it hangs and you have to start the provisioning again from scratch. 
4. If you use the upstream (community) FDI ISO, it boots properly and provisioning is successful. 

Actual results: 
- When booting with the foreman-discovery-image provided with the Red Hat Satellite, booting fails with error: Unable to load the kernel.

-If you try to access the shell, it hangs and you have to start the provisioning again from scratch. 


Expected results:
- Should boot like the community FDI and result in successful provisioning


Additional info:

Comment 23 Lukas Zapletal 2018-06-27 07:50:22 UTC
Satellite 6 FDI builds won't work for locally mounted ISO (PXE-less workflow) because Hyper-V SCSI is not present on the initramdisk. Symptoms are one minute delay and then:

/dev/disk/by-label/foreman-discovery-image-3.x.x-x does not exist

Keyboard does not work, because keyboard driver is not present as well.

This was fixed upstream in Fedora:

https://bugzilla.redhat.com/show_bug.cgi?id=1192030

I created backport request into RHEL7:

https://bugzilla.redhat.com/show_bug.cgi?id=1595574

Once this is fixed, we need to make sure the livecd-tools in our brew buildroot contains the patch, then we can rebuild the FDI.

Comment 25 Lukas Zapletal 2018-06-28 06:57:01 UTC
Lowering priority, discovery is supported only on bare metal, this is a VM - best effort. We need to do some buildroot changes in order to fix this.

Comment 26 Lukas Zapletal 2018-06-28 07:08:23 UTC
Created tracker for this bug, moving to NEW since we need to patch livecd-creator first and then we can build.

Comment 27 Lukas Zapletal 2018-07-20 09:00:49 UTC
This must be backported into FDI in Sat 6.3 AND 6.4, it is gonna be KS change.

Comment 28 Lukas Zapletal 2018-07-25 07:10:01 UTC
*** Bug 1595574 has been marked as a duplicate of this bug. ***

Comment 34 errata-xmlrpc 2018-10-16 16:48:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:2928