os-brick/os_brick/initiator
Gorka Eguileor 037f9fe667 Fix FC case sensitive scanning
For FC connections there are multiple places where we check the
initiator target map provided by the backend against the port names of
the HBAs on the system.

Currently this check is case sensitive, but some backends are returning
the port names in the initiator target map upper cased, which usually
results in attach failures.

Some of the reasons for the attach failures is that os-brick will not
issue scan requests.

Example from a 3PAR backend from a specific system:

  Connector properties:
    {
     'wwpns': ['10001409dcd71ff6', '10001409dcd71ff7'],
     'wwnns': ['20001409dcd71ff6', '20001409dcd71ff7'],
     ...
    }

  Connection properties:
    {
     'initiator_target_map': {
       '10001409DCD71FF6': ['20320002AC01E166', '21420002AC01E166'],
       '10001409DCD71FF7': ['20410002AC01E166', '21410002AC01E166']
     }
     ...
    }

This patch converts to lower case the
initiator_target_map and the target_wwn/target_wwns.

Closes-Bug: #1775677
Change-Id: I12b9535d8a9969356394e406a1ed5ac4a5f1f959
2019-02-21 10:27:50 +01:00
..
connectors Fix FC case sensitive scanning 2019-02-21 10:27:50 +01:00
windows Update hacking version 2019-01-18 21:30:00 -05:00
__init__.py Support RSD scenario of nvme connector 2018-12-24 13:51:20 +08:00
connector.py Support RSD scenario of nvme connector 2018-12-24 13:51:20 +08: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 Add staticmethod decorator in InitiatorConnector 2018-08-17 17:36:21 +08:00
linuxfc.py Handle None value 'inititator_target_map' 2019-02-07 13:17:32 -06:00
linuxrbd.py Merge "Add attribute 'name' to class RBDVolume." 2017-10-10 03:41:31 +00:00
linuxscsi.py Verify WWN of connected iSCSI devices if passed 2019-01-30 08:49:52 +02:00
linuxsheepdog.py Remove unused LOG to keep code clean 2016-07-09 10:17:48 +08:00
utils.py Context manager to handle shared_targets 2018-10-30 16:55:01 +01:00