diff --git a/manila/share/drivers/dell_emc/plugins/unity/connection.py b/manila/share/drivers/dell_emc/plugins/unity/connection.py index 4736706..a5f8094 100644 --- a/manila/share/drivers/dell_emc/plugins/unity/connection.py +++ b/manila/share/drivers/dell_emc/plugins/unity/connection.py @@ -43,9 +43,10 @@ 7.0.2 - Bugfix: failed to delete CIFS share if wrong access was set 7.0.3 - Bugfix: remove enable ace process when creating cifs share 7.0.4 - Bugfix: ignore the has snaps error when deleting filesystem + 7.0.5 - Bugfix: fix the driver startup issue with LACP ports configured """ -VERSION = "7.0.4" +VERSION = "7.0.5" LOG = log.getLogger(__name__) SUPPORTED_NETWORK_TYPES = (None, 'flat', 'vlan') diff --git a/manila/share/drivers/dell_emc/plugins/unity/utils.py b/manila/share/drivers/dell_emc/plugins/unity/utils.py index 11e7f4b..eccdb68 100644 --- a/manila/share/drivers/dell_emc/plugins/unity/utils.py +++ b/manila/share/drivers/dell_emc/plugins/unity/utils.py @@ -57,7 +57,12 @@ def match_ports(ports_list, port_ids_conf): port_id = port.get_id() for pattern in patterns: if fnmatch.fnmatchcase(port_id, pattern): - sp_id = port.parent_storage_processor.get_id() + # parentStorageProcessor property is deprecated in Unity 5.x + if port.parent_storage_processor: + sp = port.parent_storage_processor + else: + sp = port.storage_processor + sp_id = sp.get_id() ports_set = sp_ports_map.setdefault(sp_id, set()) ports_set.add(port_id) break