NetApp API failed. Reason - 18177:Relationship is in use by SnapMirror in local cluster

Bug #1996907 reported by Maurice Escher
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Confirmed
Medium
Nahim Alves de Souza

Bug Description

Hi,

with DHSS=true on Xena with the NetApp driver on deleting a replica I get the following error:
https://paste.opendev.org/show/b8oLtjnFFydlPtZlI2yW/

The reason is: the snapmirror show command only show snapmirrors where the current cluster is the destination.

To also see snapmirrors where the current cluster is the source, you have to use snapmirror list-destinations.

So when there is still a replication setup the other way around to the one I'm trying to delete, I get above error, because the vserver peering is still in use.

The fix seems rather straightforward to me:
https://opendev.org/openstack/manila/src/commit/605925e8f4a70bb70a9921d6879101d30b7ad8b9/manila/share/drivers/netapp/dataontap/cluster_mode/lib_multi_svm.py#L703-L704
should use the client method 'get_snapmirror_destinations' instead of 'get_snapmirrors'

BR,
Maurice

tags: added: netapp replication
Vida Haririan (vhariria)
Changed in manila:
milestone: none → antelope-3
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Nahim Alves de Souza (nahimsouza)
Revision history for this message
Vida Haririan (vhariria) wrote :
Changed in manila:
milestone: antelope-3 → antelope-rc1
Changed in manila:
milestone: antelope-rc1 → bobcat-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/manila/+/885213

Changed in manila:
milestone: bobcat-1 → bobcat-2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.