Current FC OS-Brick code only checks for single WWNN to exclude some
HBAs from scanning when we don't receive an initiator_target_map from
the backend.
There are storage arrays,like XtremIO, that due to their architecture
and design have all target ports automatically mapped to LUNs and are
returning the initiator_target_map, but some of those ports may not be
connected to our HBAs, so we end up with another case of bug #1765000.
This patch makes sure that we always check if the target implements
single WWNN, not only when we don't receive the initiator_target_map.
With this we decrease the likelihood of ending with unexpected devices
in our system, because now we will ignore unconnected HBAs (even if
reported in the initiator_target_map) if we are working with single WWNN
target.
Reviewed: https:/ /review. opendev. org/665641 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=1ee6acb5099 10d7de1213fb71c d0d6166991609a
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 1ee6acb509910d7 de1213fb71cd0d6 166991609a
Author: Gorka Eguileor <email address hidden>
Date: Thu May 9 17:25:03 2019 +0200
FC: Ignore some HBAs from map for single WWNN
Current FC OS-Brick code only checks for single WWNN to exclude some target_ map from
HBAs from scanning when we don't receive an initiator_
the backend.
There are storage arrays,like XtremIO, that due to their architecture target_ map, but some of those ports may not be
and design have all target ports automatically mapped to LUNs and are
returning the initiator_
connected to our HBAs, so we end up with another case of bug #1765000.
This patch makes sure that we always check if the target implements target_ map.
single WWNN, not only when we don't receive the initiator_
With this we decrease the likelihood of ending with unexpected devices target_ map) if we are working with single WWNN
in our system, because now we will ignore unconnected HBAs (even if
reported in the initiator_
target.
Related-Bug: #1765000 2f8946668314492 43863eccbfe 3f1b1a702480739 0cd55c4958)
Closes-Bug: #1828440
Change-Id: I02c208142f5b34
(cherry picked from commit 70899a9aa3e4bdd