os-brick/os_brick
Gorka Eguileor cbeb89933c Fix multipath flush when using friendly names
When we are using friendly names for multipath the multipaths are not
getting flushed, which may lead to data loss on slow connections and
multipath entries with no actual paths.

This happens in both iSCSI and FC connections, and it is due to the
flush being requested on the WWN instead of the actual name of the
device.

So when we are not using friendly names the WWN and the device name are
the same and our call to multipath -f will successfully flush remaining
data, but when we are using friendly names they will not match, and the
call to multipath -f will silently fail (return code 0) and the flush
will not actually go through. When the flush doesn't happen, if there is
remaining data, then the multipath will stay once the individual paths
have been removed.

Closes-Bug: #1663925
Change-Id: Ib93d945a5b5fca57bcac4e176d62d1412b95f2da
(cherry picked from commit c0640ce137)
2017-03-15 14:02:31 +01:00
..
encryptors Encryptors: Fix compat with Nova encryptors for Ocata 2017-01-24 13:31:29 +00:00
initiator Fix multipath flush when using friendly names 2017-03-15 14:02:31 +01:00
local_dev Remove race condition from lvextend 2016-08-01 20:08:07 +00:00
privileged Trivial rootwrap -> privsep replacement 2016-04-15 15:29:25 +00:00
remotefs Merge "Windows remotefs: create mountpoints at the expected location" 2016-11-18 16:46:00 +00:00
tests Fix multipath flush when using friendly names 2017-03-15 14:02:31 +01:00
__init__.py Update os-brick requirements 2015-04-17 17:11:34 +00:00
exception.py Raise specific exception for an invalid protocol connector 2016-11-04 18:07:06 -04:00
executor.py Fix cmd execution stderr, stdout unicode errors 2016-08-25 16:34:28 +00:00
i18n.py Drop use of 'oslo' namespace package 2015-04-28 22:25:57 +00:00
utils.py Mask passwords in utils.trace for func params 2016-11-08 12:55:46 -05:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00