Bug 244994 - RHEL 5.1: anaconda fails to mark iSCSI root with _netdev mount option
Summary: RHEL 5.1: anaconda fails to mark iSCSI root with _netdev mount option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda
Version: 5.1
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: David Cantrell
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 238143
TreeView+ depends on / blocked
 
Reported: 2007-06-20 13:38 UTC by Mark McLoughlin
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: RHBA-2007-0644
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-07 17:22:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
anaconda-device-options.patch (2.34 KB, patch)
2007-06-26 10:59 UTC, Mark McLoughlin
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0644 0 normal SHIPPED_LIVE anaconda bug fix and enhancement update 2007-10-30 22:56:59 UTC

Description Mark McLoughlin 2007-06-20 13:38:00 UTC
With RHEL5-Server-20070620.nightly when installing to iSCSI root, I end up with
the following entries in /etc/fstab:

  /dev/VolGroup00/LogVol00 /    ext3 defaults        1 1
  LABEL=/boot             /boot ext3 defaults,_netdev 1 2

It's clearly not the driveIsIscsi() logic which is failing, since /boot is
getting marked with _netdev and:

  >>> os.path.islink("/sys/block/sda/device")
  True
  >>> target = os.readlink("/sys/block/sda/device")       
  >>> target
  '../../devices/platform/host0/session1/target0:0:0/0:0:0:0'
  >>>
re.search("/platform/host[0-9]*/session[0-9]*/target[0-9]*:[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*:[0-9]*",
target)               
  <_sre.SRE_Match object at 0x2aaaac4358a0>

Need the flag set so that we can disable Xen bridging on iSCSI root - see bug
#238143

Comment 1 Mark McLoughlin 2007-06-26 10:57:49 UTC
Okay, the problem turns out to be that the mount options from the
LogicalVolumeDevice are taken by the FileSystemSetEntry during the
"partitiondone" step.

However, the device is only marked with _netdev during the "enablefilesystems"
step, which comes after the "partitiondone" step.

Attaching a patch which fixes the problem by adding a getOptions() method to
FileSystemSetEntry which means the device options are only read when /etc/fstab
is being written during the "preinstallconfig" step which comes after the
"enablefilesystems" step.

Comment 2 Mark McLoughlin 2007-06-26 10:59:06 UTC
Created attachment 157877 [details]
anaconda-device-options.patch

Comment 3 David Cantrell 2007-06-26 14:07:36 UTC
This fix is required for bug #238143 in 5.1

Comment 6 David Cantrell 2007-07-18 15:04:58 UTC
Fixed in CVS and will be included in the anaconda-11.1.2.59-1 build.

Comment 8 James Laska 2007-09-24 15:16:40 UTC
VERIFIED against RHEL5.1-Server-20070920.1

# cat /etc/fstab 
/dev/VolGroup00/LogVol00 /                       ext3    defaults,_netdev 1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults,_netdev 0 0


Comment 10 errata-xmlrpc 2007-11-07 17:22:03 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0644.html



Note You need to log in before you can comment on or make changes to this bug.