diff options
author | Ales Kozumplik <akozumpl@redhat.com> | 2010-12-14 10:21:36 +0100 |
---|---|---|
committer | Ales Kozumplik <akozumpl@redhat.com> | 2010-12-15 13:37:50 +0100 |
commit | f827cebc075c625f8a6b4e1a13d3bc1e9e0761cd (patch) | |
tree | 1072f65cf77ae70d0bb1d722e7e84a118ab3eb73 /pyanaconda/storage/devicelibs/mpath.py | |
parent | 8ad777499a058bc683e7df122c6c1ba741615548 (diff) | |
download | anaconda-f827cebc075c625f8a6b4e1a13d3bc1e9e0761cd.tar.gz anaconda-f827cebc075c625f8a6b4e1a13d3bc1e9e0761cd.tar.xz anaconda-f827cebc075c625f8a6b4e1a13d3bc1e9e0761cd.zip |
mpath: log the /etc/multipath.conf contents
Related: rhbz#636570
Diffstat (limited to 'pyanaconda/storage/devicelibs/mpath.py')
-rw-r--r-- | pyanaconda/storage/devicelibs/mpath.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pyanaconda/storage/devicelibs/mpath.py b/pyanaconda/storage/devicelibs/mpath.py index 48f9c5c3d..63b32fc07 100644 --- a/pyanaconda/storage/devicelibs/mpath.py +++ b/pyanaconda/storage/devicelibs/mpath.py @@ -63,7 +63,7 @@ def parseMultipathOutput(output): pass elif dmatch: devices.append(dmatch.groups()[0].replace('!','/')) - + if name and devices: mpaths[name] = devices @@ -80,12 +80,17 @@ def identifyMultipaths(devices): # [sda, sdd], [[sdb, sdc]], [sr0, sda1, sdd1, sdd2]] log.info("devices to scan for multipath: %s" % [d['name'] for d in devices]) + with open("/etc/multipath.conf") as conf: + log.debug("/etc/multipath.conf contents:") + map(lambda line: log.debug(line.rstrip()), conf) + log.debug("(end of /etc/multipath.conf)") + topology = parseMultipathOutput(iutil.execWithCapture("multipath", ["-d",])) # find the devices that aren't in topology, and add them into it... topodevs = reduce(lambda x,y: x.union(y), topology.values(), set()) for name in set([d['name'] for d in devices]).difference(topodevs): topology[name] = [name] - + devmap = {} non_disk_devices = {} for d in devices: |