Fix export locations update when subnet is added

Export locations of active share replicas was updated
but not those of the share itself.

Closes-Bug: #2017501
Change-Id: I33204657401f3eadd490fc50fedaef899dcff297
(cherry picked from commit 07ce64462c)
This commit is contained in:
Sylvan Le Deunff 2023-05-03 10:49:12 +02:00 committed by Goutham Pacha Ravi
parent ad4ca0c64e
commit 5b77e47561
2 changed files with 9 additions and 1 deletions

View File

@ -2363,7 +2363,8 @@ class NetAppCmodeMultiSVMFileStorageLibrary(
updated_export_locations = {}
for share in shares:
if share['replica_state'] == constants.REPLICA_STATE_ACTIVE:
if share["replica_state"] in (None,
constants.REPLICA_STATE_ACTIVE):
host = share['host']
export_locations = self._create_export(
share, share_server, vserver_name, vserver_client,

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixed share export location update when subnet is added to a network
containing shares. Please refer to the
`Launchpad bug #2017501 <https://bugs.launchpad.net/manila/+bug/2017501>`_
for more details.