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:
Reviewed: https:/ /review. opendev. org/659281 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=bdd05d22328 a61d9e284317614 884d5bcb133863
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit bdd05d22328a61d 9e284317614884d 5bcb133863
Author: Gorka Eguileor <email address hidden>
Date: Tue Feb 19 18:00:22 2019 +0100
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: ff6', '10001409dcd71f f7'], ff6', '20001409dcd71f f7'],
{
'wwpns': ['10001409dcd71
'wwnns': ['20001409dcd71
...
}
Connection properties:
'initiator_ target_ map': {
'10001409DC D71FF6' : ['20320002AC01E 166', '21420002AC01E1 66'],
'10001409DC D71FF7' : ['20410002AC01E 166', '21410002AC01E166']
{
}
...
}
This patch converts to lower case the target_ map and the target_ wwn/target_ wwns.
initiator_
Closes-Bug: #1775677 356394e406a1ed5 ac4a5f1f959 f3792d014b67ccf 7d71e744c5) brick/initiator /connectors/ fibre_channel. py 5c5507282a774bc 75df9f790f)
Change-Id: I12b9535d8a9969
(cherry picked from commit 037f9fe66768a99
Conflicts:
os_
(cherry picked from commit 00a4d96d2506bed