Comment 8 for bug 1775677

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-brick (stable/queens)

Reviewed: https://review.opendev.org/659281
Committed: https://git.openstack.org/cgit/openstack/os-brick/commit/?id=bdd05d22328a61d9e284317614884d5bcb133863
Submitter: Zuul
Branch: stable/queens

commit bdd05d22328a61d9e284317614884d5bcb133863
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:
        {
         '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 037f9fe66768a99f3792d014b67ccf7d71e744c5)
    Conflicts:
     os_brick/initiator/connectors/fibre_channel.py
    (cherry picked from commit 00a4d96d2506bed5c5507282a774bc75df9f790f)