[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhel6-branch 2/3] mpath: flush mpath devices in iw/filter_gui.py (#636570)



Otherwise, for interactive KS installs, the already set up devices won't
show up in the UI.
---
 iw/filter_gui.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index c785795..98ae480 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -43,6 +43,9 @@ import storage.dasd
 import gettext
 _ = lambda x: gettext.ldgettext("anaconda", x)
 
+import logging
+log = logging.getLogger("anaconda")
+
 DEVICE_COL = 4
 MODEL_COL = 5
 CAPACITY_COL = 6
@@ -602,6 +605,14 @@ class FilterWindow(InstallWindow):
         open("/etc/multipath.conf", "w+").write(cfg)
         del cfg
         del mcw
+
+        if anaconda.isKickstart:
+            # identifyMultipaths() uses 'multipath -d' to find mpath devices. In
+            # case this is an interactive kickstart install, it wouldn't display
+            # those already set up during the early storageInitialize() unless
+            # we flush them first.
+            log.info("filter_gui: flushing all multipath devices.")
+            iutil.execWithRedirect("multipath", ["-F"])
         (singlepaths, mpaths, partitions) = identifyMultipaths(disks)
 
         # The device list could be really long, so we really only want to
-- 
1.7.3.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]