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 1166509

Summary: anaconda does not use _netdev option when mounting filesystems on iSCSI disk during install
Product: Red Hat Enterprise Linux 7 Reporter: Chris Leech <cleech>
Component: python-blivetAssignee: David Lehman <dlehman>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: bgoncalv, jstodola, lmiksik, mbanas
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-blivet-0.61.0.21-1 Doc Type: Bug Fix
Doc Text:
Cause: Anaconda was not mounting iSCSI devices with the _netdev option during installation. Consequence: When shutting down the installation the devices may not be cleanly unmounted, which could cause problems when rebooting with the unclean filesystem. Fix: Add the _netdev option when mounting iSCSI devices during installation. Result: Successful reboot.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-05 14:08:00 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: 1065973    

Description Chris Leech 2014-11-21 06:22:11 UTC
Description of problem:

During install the target filesystems under /mnt/sysimage are not mounted using the _netdev option when they are on an iSCSI disk.  The installed fstab does have the _netdev option set.

Because anaconda does not unmount the filsystems explicitly at the end of installation, without the _netdev flag the filesystems may not be unmounted cleanly before the network connection or iSCSI sessions are removed.

This is causing the post-install reboot to hang in some cases (bz 1065973)

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

anaconda-19.31.107-1.el7.x86_64.rpm

Additional info:

Note that this won't fully solve the problem until systemd recognise the _netdev option for dynamically generated mount units instead of just the fstab-generator (bz 1161417)

Comment 2 Chris Leech 2014-11-25 06:07:06 UTC
depending on what solution to bz 1161417 ends up being, this may be required to unblock bz 1065973

Comment 4 Jan Stodola 2015-01-22 12:44:42 UTC
/mnt/sysimage is mounted with the _netdev option:

1) /mnt/sysimage is a raw partition on iSCSI disk:
[anaconda root@localhost ~]# mount | grep "sysimage "
/dev/sda1 on /mnt/sysimage type xfs (rw,relatime,seclabel,attr2,inode64,noquota,_netdev)

2) /mnt/sysimage is a LV with PVs on both local (vda) and iSCSI (sda) disks:
[anaconda root@localhost ~]# lsblk /dev/vda /dev/sda
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
vda             252:0    0   10G  0 disk 
|-vda1          252:1    0  500M  0 part /mnt/sysimage/boot
`-vda2          252:2    0  9.5G  0 part 
  `-rhel00-root 253:3    0 17.5G  0 lvm  /mnt/sysimage
sda               8:0    0   10G  0 disk 
`-sda1            8:1    0   10G  0 part 
  |-rhel00-swap 253:2    0    2G  0 lvm  [SWAP]
  `-rhel00-root 253:3    0 17.5G  0 lvm  /mnt/sysimage
[anaconda root@localhost ~]# mount | grep "sysimage "
/dev/mapper/rhel00-root on /mnt/sysimage type xfs (rw,relatime,seclabel,attr2,inode64,noquota,_netdev)
[anaconda root@localhost ~]#

Tested with python-blivet-0.61.0.22-1.el7.

Moving to VERIFIED.

Comment 6 errata-xmlrpc 2015-03-05 14:08:00 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://rhn.redhat.com/errata/RHBA-2015-0313.html