Current code will report both active and inactive wwpn port which
will cause connection failure.We should only report active port.
Closes-bug: #
1445409
Change-Id: Ide74df778294bfec50fbedd2ac3cd9207201b187
'data': {'initiator_target_map':
{'ff00000000000000': ['500507680220C744',
'500507680210C744',
- '500507680220C745',
- '500507680230C745'],
+ '500507680220C745'],
'ff00000000000001': ['500507680220C744',
'500507680210C744',
- '500507680220C745',
- '500507680230C745']},
+ '500507680220C745']},
'target_discovered': False,
'target_lun': 0,
'target_wwn': '500507680220C744',
resp = self.ssh.lsnode(node_id=node['id'])
wwpns = set(node['WWPN'])
for i, s in resp.select('port_id', 'port_status'):
- if 'unconfigured' != s:
+ if 'active' == s:
wwpns.add(i)
node['WWPN'] = list(wwpns)
LOG.info(_LI('WWPN on node %(node)s: %(wwpn)s')