Nir Soffer has uploaded a new change for review.

Change subject: mutipath: Remove unneeded and dangerous -r parameter
......................................................................

mutipath: Remove unneeded and dangerous -r parameter

Since commit dbf2089488 (Jul 9 2013) multipath call was change to use
the -r flag, forcing a reload of the device map. This was tested to fix
a case where new lun is created on the storage server, while a host was
connected, and the new device is not available when issuing the
getDeviceList command. According to a comment on gerrit, the change was
tested for ISCSI and FC storage types, but there is no documentation of
the testing procedure. The related bug was verified, but has no
information about how it was verified.

We have two related bugs:

- Bug 1078879 tell us that invoking multipath with the -r flag sometimes
  triggers a segfault in the multipathd daemon. In the bug, multipath
  developer suggests that as long as multipathd daemon is running,
  there is no need to invoke multipath to detect new devices, and
  "multipath -r really isn't useful for much of anything".

- Bug 1071654 tell us that devices rescanning is broken on FC storage
  domains (although the -r flag is used). I reproduced this bug using
  storage QE FC server.

This patch removes the -r flag. To be on the safe side, I left the
multipath call as it was since the first multipath commit in 2009. We
will work with kernel and multipath developers further on removing this
call if it is indeed unneeded.

Bug-Url: https://bugzilla.redhat.com/1078879
Relates-to: https://bugzilla.redhat.com/1071654
Relates-to: http://gerrit.ovirt.org/17263
Change-Id: I880ab5343df3e0030638901e188320b20570747d
Signed-off-by: Nir Soffer <nsof...@redhat.com>
---
M vdsm/storage/multipath.py
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/42/27242/1

diff --git a/vdsm/storage/multipath.py b/vdsm/storage/multipath.py
index 69a758e..ba98866 100644
--- a/vdsm/storage/multipath.py
+++ b/vdsm/storage/multipath.py
@@ -107,8 +107,7 @@
     supervdsm.getProxy().hbaRescan()
 
     # Now let multipath daemon pick up new devices
-    cmd = [constants.EXT_MULTIPATH, "-r"]
-    misc.execCmd(cmd, sudo=True)
+    misc.execCmd([constants.EXT_MULTIPATH], sudo=True)
 
 
 def isEnabled():


-- 
To view, visit http://gerrit.ovirt.org/27242
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I880ab5343df3e0030638901e188320b20570747d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Nir Soffer <nsof...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to