os-brick/os_brick/initiator
Gorka Eguileor 00a4d96d25 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
(cherry picked from commit 037f9fe667)
Conflicts:
	os_brick/initiator/connectors/fibre_channel.py
2019-03-26 15:52:24 +01:00
..
connectors Fix FC case sensitive scanning 2019-03-26 15:52:24 +01:00
windows Windows SMBFS: avoid mounting local shares by default 2018-07-11 15:02:14 +03:00
__init__.py Add the StorPool brick connector 2017-12-01 23:06:15 +02:00
connector.py adding sheepdog connector for PPC64 2018-04-18 23:08:17 -03: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 FC Allow for multipath volumes with different LUNs 2018-07-16 10:31:52 -07:00
linuxrbd.py Merge "Add attribute 'name' to class RBDVolume." 2017-10-10 03:41:31 +00:00
linuxscsi.py Succeed on iSCSI detach when path just went down 2018-10-01 16:39:11 -04:00
linuxsheepdog.py Remove unused LOG to keep code clean 2016-07-09 10:17:48 +08:00