os-brick/os_brick/initiator
Gorka Eguileor 8fab1a01cb Fix FC: Only scan connected HBAs
Current OS-Brick FC code always scans all present HBAs, which could
unintentionally add unwanted devices, for example in the following
environment:

    +-------+     +------+   +-----------------+
    | host5 +-----+      +---+ Port.A   VNX    |
    |       |     | FCSW +---+ Port.B          |
    | host6 +-----+      |   +-----------------+
    |       |     +------+
    |       |     +------+
    | host7 +-----+      |   +-----------------+
    |       |     | FCSW +---+ Port.C  XtremIO |
    | host8 +-----+      +---+ Port.D          |
    +-------+     +------+   +-----------------+

This patch limits what HBAs get scanned:

- If we have an initiator map, we only scan on the HBAs that are there
- If we are in the single WWNN for all ports case we only scan HBAs that
  are connected
- If we can't do any better we scan all HBAs with wildcards

Closes-Bug: #1765000
Change-Id: I3ba8f9683211d550727a97fc455175f2b0482886
(cherry picked from commit db40d98044)
2018-04-27 12:36:36 +02:00
..
connectors Merge "Incorporate the connection_properties input for PPC64" into stable/queens 2018-03-23 16:16:04 +00:00
windows Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
__init__.py Add the StorPool brick connector 2017-12-01 23:06:15 +02:00
connector.py adding iSER connector for PPC64 2018-01-18 12:16:00 -06:00
host_driver.py Fix race in check and access of /dev/disk/by-path/ 2015-07-28 18:30:06 +02:00
initiator_connector.py Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
linuxfc.py Fix FC: Only scan connected HBAs 2018-04-27 12:36:36 +02:00
linuxrbd.py Merge "Add attribute 'name' to class RBDVolume." 2017-10-10 03:41:31 +00:00
linuxscsi.py Protect against race within os.path.realpath 2017-09-26 21:01:14 +02:00
linuxsheepdog.py Remove unused LOG to keep code clean 2016-07-09 10:17:48 +08:00