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/658154 /git.openstack. org/cgit/ openstack/ os-brick/ commit/ ?id=70899a9aa3e 4bdd3f1b1a70248 07390cd55c4958
Committed: https:/
Submitter: Zuul
Branch: master
commit 70899a9aa3e4bdd 3f1b1a702480739 0cd55c4958
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
Closes-Bug: #1828440
Change-Id: I02c208142f5b34