Browse Source

Merge "[NetApp] Fix access rules for CIFS promoted replica" into stable/train

stable/train
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
28e21d6371
2 changed files with 10 additions and 2 deletions
  1. +3
    -2
      manila/share/drivers/netapp/dataontap/cluster_mode/lib_base.py
  2. +7
    -0
      releasenotes/notes/1896949-netapp-fix-cifs-access-rules-promoted-replica-70b32991cc90e1ca.yaml

+ 3
- 2
manila/share/drivers/netapp/dataontap/cluster_mode/lib_base.py View File

@ -1823,6 +1823,9 @@ class NetAppCmodeFileStorageLibrary(object):
# 3. Setup access rules
new_active_replica = replica.copy()
new_active_replica['export_locations'] = self._create_export(
new_active_replica, share_server, vserver, vserver_client)
helper = self._get_helper(replica)
helper.set_client(vserver_client)
try:
@ -1833,8 +1836,6 @@ class NetAppCmodeFileStorageLibrary(object):
else:
new_active_replica['access_rules_status'] = constants.STATUS_ACTIVE
new_active_replica['export_locations'] = self._create_export(
new_active_replica, share_server, vserver, vserver_client)
new_active_replica['replica_state'] = constants.REPLICA_STATE_ACTIVE
# 4. Set File system size fixed to false


+ 7
- 0
releasenotes/notes/1896949-netapp-fix-cifs-access-rules-promoted-replica-70b32991cc90e1ca.yaml View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixed an issue on ONTAP NetApp driver that caused access rules not to be
applied to a promoted replica using CIFS protocol. Please refer to the
`Launchpad bug #1896949 <https://bugs.launchpad.net/manila/+bug/1896949>`_
for more details.

Loading…
Cancel
Save