os-brick/os_brick/tests/initiator
Gorka Eguileor 66d9d2a908 FC: Ignore some HBAs from map for single WWNN
Current FC OS-Brick code only checks for single WWNN to exclude some
HBAs from scanning when we don't receive an initiator_target_map from
the backend.

There are storage arrays,like XtremIO, that due to their architecture
and design have all target ports automatically mapped to LUNs and are
returning the initiator_target_map, but some of those ports may not be
connected to our HBAs, so we end up with another case of bug #1765000.

This patch makes sure that we always check if the target implements
single WWNN, not only when we don't receive the initiator_target_map.

With this we decrease the likelihood of ending with unexpected devices
in our system, because now we will ignore unconnected HBAs (even if
reported in the initiator_target_map) if we are working with single WWNN
target.

Related-Bug: #1765000
Closes-Bug: #1828440
Change-Id: I02c208142f5b342f894666831449243863eccbfe
(cherry picked from commit 70899a9aa3)
(cherry picked from commit 1ee6acb509)
2019-07-02 00:58:42 +00:00
..
connectors Fix FC case sensitive scanning 2019-05-15 08:27:21 -04:00
__init__.py renamed the project to os-brick 2015-02-05 23:58:37 +00:00
test_connector.py Improve detection of multipathd running 2019-03-26 10:42:55 -05:00
test_host_driver.py Fix race in check and access of /dev/disk/by-path/ 2015-07-28 18:30:06 +02:00
test_linuxfc.py FC: Ignore some HBAs from map for single WWNN 2019-07-02 00:58:42 +00:00
test_linuxrbd.py Merge "Add attribute 'name' to class RBDVolume." 2017-10-10 03:41:31 +00:00
test_linuxscsi.py Improve detection of multipathd running 2019-03-26 10:42:55 -05:00
test_linuxsheepdog.py Add sheepdog support 2016-02-19 04:57:12 +00:00