Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2236212

Summary: Impossible to use the latest foreman-discovery-image 4.1.0-10 to discover Dell 7560 and 7520 Laptops
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: Discovery ImageAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED MIGRATED QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.13.3CC: ahumbe, fdiprete, jpasqual, lstejska, rlavi, sadas, sganar
Target Milestone: UnspecifiedKeywords: MigratedToJIRA, PrioBumpGSS, Regression, Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-06 16:28:37 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 Sayan Das 2023-08-30 16:30:16 UTC
Description of problem:

Despite via https://bugzilla.redhat.com/show_bug.cgi?id=1990875 , FDI image was finally built on top of RHEL 8.6, It's still missing Network Drivers that can help discover newer hardware models e.g. Dell 7560


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

foreman-discovery-image 4.1.0-10


How reproducible:

Always


Steps to Reproduce:

1. Install a Sat 6.13 and configure it for PXE-Based Discovery deployment

2. Acquire a Dell Precision 7560 laptop and connect it to the same network as the satellite

3. Boot it up in the network and try to boot into Foreman Discovery 


Actual results:

After fetching the vmlinuz and initrd.img of fdi , It fails to load them properly and drops the system in dracut shell. 

It's evident in the dracut shell that, Network adapters are not detected. Hence even if an rdsosreport was generated, It cannot be copied outside


Expected results:

The latest FDI images shipped with Satellite should work fine on any newer hardware. 


Additional info:

The same laptop model can be built using :

* RHEL 8.4\8.5\8.6\8.7 Binary ISOs

* We can build the 8.6 or 8.7 OS on the same laptop if i use the Baremetal Network based deployment ( not discovery )


So Discovery ISO, despite being built with RHEL 8.6 kernel, seems to be missing something that RHEL 8.6 Binary DVD\Kickstart repo has \ can provide easily. 


I will consider this as a regression behavior of BZ# 1990875


The end-user also confirmed that, At some point on some model, FDI had worked but only after disabling Wireless Adapter\WLAN settings in BIOS of the laptop. Or else it will get a kernel panic while loading FDI vmlinuz and initrd. So that should be fixed as well.

Comment 4 Brad Buckingham 2023-10-30 11:29:29 UTC
Bulk setting Target Milestone = 6.15.0 where sat-6.15.0+ is set.

Comment 8 Leos Stejskal 2023-11-14 09:55:04 UTC
Hi, I have POC PR [0] that does not remove network drivers and packages,
however the problem is that the image size is now double what it has been before,
1021 MB to be specific.

@saydas
I can build the ISO for the client (based on the upstream version),
do you think that the client could try it and verify the fix?

Another discussion should be if we want to deliver the iso with WIFI
drivers to everyone, with the fact that it has double size than before.

IMHO if clients are using it to provision laptops, which is not the primary
use case of discovery-image, they should have their version of the image
with network drivers and packages specifically for this use case.

[0] https://github.com/theforeman/foreman-discovery-image/pull/163

Comment 9 Sayan Das 2023-11-14 10:03:28 UTC
Hello,

A) Yes, My client should be able to test with that Image ( hopefully ) if someone can give it to him. There are other affected customers present as well who might be interested in the testing

B) About the second point, Just because of that only, I recommended having a public-facing document that explains how to build\customize your own discovery image. We used to have it ( when Pulp2 was alive ) documented but then since Pulp 3 ( sat 6.10 ), it was removed.  

I completely agree that We cannot possibly expect to be able to test every hardware or hardware component with FDI So,

--> We need to set some expectations for the end-users about the default FDI we ship and the level of support RedHat can provide with it. 

--> We need to document the FDI image build\rebuild\customization process on RHEL 8, in a publicly accessible place, so that end-users can create their own version of images as per their needs.

Comment 10 Leos Stejskal 2023-11-14 12:10:14 UTC
There is an downstream documentation: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.7/html/provisioning_guide/configuring-the-discovery-service#building-a-discovery-image

For upstream, building the image is quite easy:
On Registered RHEL8 machine (and up to date)
```
dnf install -y lorax anaconda pykickstart wget qemu-kvm '*guestf*' git
cd /root
git clone git:theforeman/foreman-discovery-image.git foreman-discovery-image-upstream
cd /root/foreman-discovery-image-upstream;mkdir result

# Build kickstart file
./build-livecd fdi-centos8.ks
# Verify that building image is working
./build-livecd-root X.Y ./result nonvirt
```

that's it, the image should be in the result folder.

And please ignore my comment about the size of the ISO, I checked the wrong file, sorry.

Comment 11 Sayan Das 2023-11-14 12:15:45 UTC
Hello,

We cannot recommend the upstream instructions as that is based on CentOS. 

About the downstream doc you pointed out, That is specific to Pulp2 and RHEL 7. Please see https://bugzilla.redhat.com/show_bug.cgi?id=2089339 for more context.

For downstream, Users would need to know that, on a RHEL 8 system, using lorax and RHEL downstream repos, how to build the FDI but in the BZ mentioned, It was decided to not put any additional time\effort on the same. 

Maybe it's worth reopening w.r.t our ongoing BZ situation?


-- Sayan

Comment 13 Leos Stejskal 2023-11-22 12:53:49 UTC
PR [0] with WIFI drivers and tools has been merged,
@Frank can you process with downstream release?

[0] https://github.com/theforeman/foreman-discovery-image/pull/163

Comment 17 Sayan Das 2023-12-05 10:01:51 UTC
Let's hold on here. 

It seems, a large initrd can cause some problems e.g. https://issues.redhat.com/browse/RHEL-4389 

While i cannot replicate this on VMs + UEFI, my customer can reproduce a similar situation on every physical system he has tried.  Perhaps the inclusion of Wifi drivers has increased the size of a the image a bit too much ?

Comment 20 Sayan Das 2023-12-05 14:01:50 UTC
Moving this BZ back to the ASSIGNED state as per the offline discussion that happened with Leos. We will need more time to understand how best we can create the image and test it so that we don't run into any weird issues ( e.g. https://issues.redhat.com/browse/RHEL-4389 )

Comment 21 Leos Stejskal 2024-01-15 13:12:39 UTC
Due to the issue in https://issues.redhat.com/browse/RHEL-4389, we are unable to deliver it in the 6.15

Comment 25 Eric Helms 2024-06-06 16:28:37 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.