[Unity] Return logged-out initiators
In current implementation, Unity driver doesn't return the targets which connect to the logged-out initiators, which causes the zone manager fails to clean up the FC zone. The fix returns all the targets of specified initiators no matter they are logged in or not. Change-Id: I1438d0bd4a43e1813dfb0a6e9b3c4a177c2fee8f Closes-bug: #1773305 (cherry picked from commit1ef06d4a31) (cherry picked from commite8c223f1f9)
This commit is contained in:
@@ -788,7 +788,7 @@ class FCAdapter(CommonAdapter):
|
||||
def filter_targets_by_host(self, host):
|
||||
if self.auto_zone_enabled and not host.host_luns:
|
||||
return self.client.get_fc_target_info(
|
||||
host=host, logged_in_only=True,
|
||||
host=host, logged_in_only=False,
|
||||
allowed_ports=self.allowed_ports)
|
||||
return []
|
||||
|
||||
|
||||
@@ -61,9 +61,11 @@ class UnityDriver(driver.ManageableVD,
|
||||
2.0.1 - Fixes bug 1759175 to detach the lun correctly when auto zone
|
||||
was enabled and the lun was the last one attached to the host.
|
||||
2.0.2 - Support remove empty host
|
||||
2.0.3 - Cherry-pick the fix for 1773305 to return the targets which
|
||||
connect to the logged-out initiators
|
||||
"""
|
||||
|
||||
VERSION = '02.00.02'
|
||||
VERSION = '02.00.03'
|
||||
VENDOR = 'Dell EMC'
|
||||
# ThirdPartySystems wiki page
|
||||
CI_WIKI_NAME = "EMC_UNITY_CI"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Dell EMC Unity Driver: Fixes `bug 1773305
|
||||
<https://bugs.launchpad.net/cinder/+bug/1773305>`__
|
||||
to return the targets which connect to the logged-out initiators. Then the
|
||||
zone manager could clean up the FC zone based on the correct target wwns.
|
||||
Reference in New Issue
Block a user