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 1070557

Summary: RHEL7 ISCSI boot fail
Product: Red Hat Enterprise Linux 7 Reporter: vincent_chen <vincent.y.chen>
Component: NetworkManagerAssignee: Rashid Khan <rkhan>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 7.0CC: agrover, dcbw, vincent.y.chen
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-12 15:05:09 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:
Attachments:
Description Flags
RHEL7_ISCSI_Boot_GRUB_2
none
RHEL7_ISCSI_Boot_stuck
none
RHEL7_ISCSI_Boot_GRUB_1
none
network service fail to unmask none

Description vincent_chen 2014-02-27 05:20:02 UTC
Description of problem:
When trying to boot via iSCSI,the boot process is stuck

Version-Release number of selected component (if applicable):
iscsi-initiator-utils-6.2.0.873-18.el7

How reproducible:
100%

Steps to Reproduce:
1.Use PXE to Install RHEL7 successfully on a server configured to boot via iSCSI
2.reboot host
3.it could read out grub menu from boot lun, but stuck later

Comment 1 vincent_chen 2014-02-27 05:21:33 UTC
Created attachment 868330 [details]
RHEL7_ISCSI_Boot_GRUB_2

Comment 2 vincent_chen 2014-02-27 05:24:21 UTC
Created attachment 868331 [details]
RHEL7_ISCSI_Boot_stuck

Comment 3 vincent_chen 2014-02-27 05:25:28 UTC
Created attachment 868332 [details]
RHEL7_ISCSI_Boot_GRUB_1

Comment 5 Chris Leech 2014-02-27 18:19:00 UTC
*** Bug 1070556 has been marked as a duplicate of this bug. ***

Comment 7 Chris Leech 2014-03-11 04:02:21 UTC
I see the boot hang at the point of starting network.service with the message "A start job is running for LSB: Bring up/down networking"  Shortly after the iSCSI session reports a connection error, looking like the network interface has gone down.

There are two workarounds that work for me

1) Break into an initrd shell with rd.break and add NM_CONTROLLED=no to the /run/initramfs/state/etc/sysconfig/network-scripts/ifcfg-* file before continuing.  This has to be done at every boot.

2) Mask the network.service unit with systemctl mask network.service.  This can be done after booting once with the NM_CONTROLLED=no workaround or from the initrd rd.break shell by remounting /sysroot rw, chroot into /sysroot, and then run systemctl mask network.service before exiting to continue booting.  As this change lives on the filesystem, it only has to be done once.

Comment 8 vincent_chen 2014-03-11 08:56:16 UTC
how to Break into an initrd shell with rd.break ? i add rd.break into kernel option, but it is still struck as before. i google the rd.break, seems it could add parameter to define break point
"rd.break={cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup} 
"

should i define a break point?

Comment 9 vincent_chen 2014-03-11 15:21:51 UTC
Hi chris
I can boot os with NM_CONTROLLED=no workaround. when i go into initrd shell. remount /sysroot rw and chroot /sysroot run well.  but i can't mask network.service. it fail to connect service manager

sh-4.2: systemctl
Failed to get D-bus connection: No connection to service manager.

Comment 10 vincent_chen 2014-03-11 15:50:51 UTC
when i boot into OS. i mask network.service with systemctl. the network connection lost. now i can't restore network with unmask. the error message is 
"Fail to issue method call: Access denied". please let me know how to make network service alive.

Comment 11 vincent_chen 2014-03-11 15:52:37 UTC
Created attachment 873203 [details]
network service fail to unmask

Comment 12 Dan Williams 2014-03-11 16:29:30 UTC
If you see "disconnecting for new activation request" in /var/log/messages during startup, then this bug is likely to be a dupe of bug 1068621.

Are you able to get /var/log/messages on the machine, and do you see the "disconnecting for new activation request" message?

Comment 13 vincent_chen 2014-03-11 16:43:25 UTC
yes, williams. i see the  message in syslog.

localhost Networkmanager <info> (eno1): disconnecting for new activation request"

is there any way to start network service?

Comment 14 vincent_chen 2014-03-11 16:53:24 UTC
yes, williams. i see the  message in syslog.

localhost Networkmanager <info> (eno1): disconnecting for new activation request"

is there any way to start network service?

Comment 15 vincent_chen 2014-03-12 15:02:30 UTC
Hi Chris
I create a new initrd image after i add "NM_CONTROLLED=no " into nic configuration file. it resolve this issue.

Comment 16 Dan Williams 2014-03-13 19:44:53 UTC
We believe this issue is fixed by a new initscripts package from bug #1068621.  NM_CONTROLLED=no is not required and is not a suggested workaround.

You can install:

http://people.redhat.com/dcbw/initscripts-9.49.15-1.el7.x86_64.rpm

to test if this package update fixes the issue, but when you do so, please remove the NM_CONTROLLED=no.  Let us know if this initscripts package fixes the issue.

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

Comment 17 vincent_chen 2014-03-14 06:11:34 UTC
i have installed fix package. it work well without NO_CONTROLLED workround.