Skip to content

Commit

Permalink
CA-136041: Multipathd forgets faulty paths after an SR operation
Browse files Browse the repository at this point in the history
Signed-off-by: Sharath Babu <sharathbab@drall.uk.xensource.com>
  • Loading branch information
Sharath Babu committed Sep 9, 2015
1 parent 976cfdd commit 7230727
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions drivers/mpath_dmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,22 @@ def _resetDMP(sid,explicit_unmap=False,delete_nodes=False):
except:
util.SMlog("WARNING: exception raised while attempting to"
" modify multipath.conf")
try:

# Overriding delete_nodes value to True, since reconfigure does not drop
# devices that are faulty during pbd unplug and plug. They remain
# the system which prevents creation of new maps. This setting is valid only
# for any SR operation done before dev_loss_tmo, post which the device is
# automatically dropped by the kernal.

delete_nodes=True
devices = mpath_cli.list_paths(sid)
try:
mpath_cli.reconfigure()
except:
util.SMlog("WARNING: exception raised while attempting to"
" reconfigure")
time.sleep(5)

devices = mpath_cli.list_paths(sid)

try:
mpath_cli.remove_map(sid)
Expand Down

0 comments on commit 7230727

Please sign in to comment.