Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1347545

Summary: The dracut will fail and drop into an emergency shell during RHEL-7.x PXE installation over IPoIB
Product: Red Hat Enterprise Linux 7 Reporter: zguo <zguo>
Component: rdmaAssignee: Jarod Wilson <jarod>
Status: CLOSED DUPLICATE QA Contact: zguo <zguo>
Severity: high Docs Contact:
Priority: high    
Version: 7.3CC: ddutile, dledford, dracut-maint-list, harald, infiniband-qe, trinh.dao, zguo
Target Milestone: rc   
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: 2016-07-27 01:00:12 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:    
Bug Blocks: 1213541    
Attachments:
Description Flags
PXE over IPoIB log none

Description zguo 2016-06-17 08:20:28 UTC
Created attachment 1168969 [details]
PXE over IPoIB log

Description of problem:

Install RHEL-7.x over IPoIB, during installation, the dracut will fail and drop into an emergency shell. As dracult debug is really time consuming and it is safe to ignore it. So, just run 'exit' to leave the emergency shell. anaconda will start the automatic installation. And it will finish without issue.

Version-Release number of selected component (if applicable):
RHEL-7.3-20160615.n.0

How reproducible:
Always

Steps to Reproduce:
1. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1346113#c29
2.
3.

Actual results:
The dracut failed and dropped into an emergency shell.

Expected results:
The dracut passes.

Additional info:

Comment 1 zguo 2016-06-17 08:29:27 UTC
(In reply to zguo from comment #0)
> Created attachment 1168969 [details]
> PXE over IPoIB log
> 
> Description of problem:
> 
> Install RHEL-7.x over IPoIB, during installation, the dracut will fail and
> drop into an emergency shell. As dracult debug is really time consuming and
> it is safe to ignore it. So, just run 'exit' to leave the emergency shell.
> anaconda will start the automatic installation. And it will finish without
> issue.
> 
> Version-Release number of selected component (if applicable):
> RHEL-7.3-20160615.n.0
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1346113#c24
> 2.
> 3.
> 
> Actual results:
> The dracut failed and dropped into an emergency shell.
> 
> Expected results:
> The dracut passes.
> 
> Additional info:
 
Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1346113#c24, not #29.
Thanks.

Comment 3 Harald Hoyer 2016-07-21 13:15:35 UTC
(In reply to zguo from comment #1)
> (In reply to zguo from comment #0)
> > Created attachment 1168969 [details]
> > PXE over IPoIB log
> > 
> > Description of problem:
> > 
> > Install RHEL-7.x over IPoIB, during installation, the dracut will fail and
> > drop into an emergency shell. As dracult debug is really time consuming and
> > it is safe to ignore it. So, just run 'exit' to leave the emergency shell.
> > anaconda will start the automatic installation. And it will finish without
> > issue.
> > 
> > Version-Release number of selected component (if applicable):
> > RHEL-7.3-20160615.n.0
> > 
> > How reproducible:
> > Always
> > 
> > Steps to Reproduce:
> > 1. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1346113#c24
> > 2.
> > 3.
> > 
> > Actual results:
> > The dracut failed and dropped into an emergency shell.
> > 
> > Expected results:
> > The dracut passes.
> > 
> > Additional info:
>  
> Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1346113#c24, not
> #29.
> Thanks.

c24 points to a problem in the rdma dracut module, which is part of the rdma package.

Comment 4 Jarod Wilson 2016-07-21 14:13:30 UTC
(In reply to Harald Hoyer from comment #3)
...
> c24 points to a problem in the rdma dracut module, which is part of the rdma
> package.

It does? I thought it simply documented the setup honli was using. Can you point to where in the comment it's pointing at a problem? Assume I know nothing at all about dracut, because I really don't.

Comment 5 Harald Hoyer 2016-07-22 13:12:33 UTC
(In reply to Jarod Wilson from comment #4)
> (In reply to Harald Hoyer from comment #3)
> ...
> > c24 points to a problem in the rdma dracut module, which is part of the rdma
> > package.
> 
> It does? I thought it simply documented the setup honli was using. Can you
> point to where in the comment it's pointing at a problem? Assume I know
> nothing at all about dracut, because I really don't.

I thought fixing  /usr/lib/dracut/modules.d/05rdma/module-setup.sh did the trick.

I mananaged to install RHEL-7.3-20160615.n.0 via PXE over IPoIB.
The default RHEL-7.x/images/pxeboot/{initrd.img,vmlinuz} do not
support PXE over IPoIB (and SRPT/ISER). We have to generate
initrd.img for ourself.

1) Create a new rdma package with patch in comment #20.
[root@ib2-qa-03 SPECS]# cat bz1346113.patch 
--- /usr/lib/dracut/modules.d/05rdma/module-setup.sh.old	2016-06-15 18:21:06.484598058 -0400
+++ /usr/lib/dracut/modules.d/05rdma/module-setup.sh	2016-06-15 18:22:15.056876089 -0400
@@ -1,7 +1,8 @@
 #!/bin/bash
 
 check() {
-	[ -n "$hostonly" -a -d /sys/class/infiniband_verbs/uverbs0 ] && return 0 || return 255
+	[ -n "$hostonly" -a -d /sys/class/infiniband_verbs/uverbs0 ] && return 0
+	[ -n "$hostonly" ] && return 255
 	return 0
 }

Comment 6 Harald Hoyer 2016-07-22 13:18:23 UTC
If it is about the installer image, you should reassign this bug to the tool, which creates the installer image, "lorax", IIRC

Comment 7 Jarod Wilson 2016-07-22 14:55:25 UTC
The module-setup.sh change was done quite a while ago, so I was assuming there was testing done following that change, and things were still failing, for some other reason.

Have we actually tested with the most recent rdma package to see if things still drop to a shell in dracut?

Comment 8 zguo 2016-07-26 07:44:13 UTC
Per https://bugzilla.redhat.com/show_bug.cgi?id=1346113#c37, c38, it does not drop to a shell in dracut.

Comment 9 Jarod Wilson 2016-07-26 16:17:17 UTC
(In reply to zguo from comment #8)
> Per https://bugzilla.redhat.com/show_bug.cgi?id=1346113#c37, c38, it does
> not drop to a shell in dracut.

Okay, that being the case, what do we want to do with this bug? Closed->dupe it to something?

Comment 10 zguo 2016-07-27 01:00:12 UTC

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