os-brick/os_brick
Gorka Eguileor db40d98044 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
2018-04-18 12:36:45 +02:00
..
encryptors Make close on cryptsetup volumes idempotent 2017-11-18 00:19:42 +00:00
initiator Fix FC: Only scan connected HBAs 2018-04-18 12:36:45 +02:00
local_dev Remove the unnecessary pv_list assign during LVM object init 2018-01-11 00:59:31 +00:00
privileged Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
remotefs Stop ignoring H405 hacking rule in tox 2017-05-24 00:44:57 +02:00
tests Fix FC: Only scan connected HBAs 2018-04-18 12:36:45 +02:00
__init__.py doc: Remove cruft from conf.py 2017-08-08 15:44:29 +01:00
exception.py Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
executor.py iSCSI multipath: improve logging on connect 2017-06-26 20:31:59 +02:00
i18n.py Update and replace http with https for doc links 2017-07-26 02:18:44 +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