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)
Fix Released
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
Changed in manila:
milestone: bobcat-2 → bobcat-3
Changed in manila:
milestone: bobcat-3 → bobcat-rc1
Changed in manila:
milestone: bobcat-rc1 → caracal-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2023.1)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/zed)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/yoga)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/manila/+/896759

Changed in manila:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (stable/zed)

Change abandoned by "Gireesh Awasthi <email address hidden>" on branch: stable/zed
Review: https://review.opendev.org/c/openstack/manila/+/896746

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (master)

Change abandoned by "Gireesh Awasthi <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/manila/+/896759

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (stable/2023.1)

Change abandoned by "Gireesh Awasthi <email address hidden>" on branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/manila/+/896745

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (stable/yoga)

Change abandoned by "Gireesh Awasthi <email address hidden>" on branch: stable/yoga
Review: https://review.opendev.org/c/openstack/manila/+/896748

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (stable/2023.2)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/c/openstack/manila/+/896759
Committed: https://opendev.org/openstack/manila/commit/1f9d51fdba24c218940b5eeacd3175b6b0767635
Submitter: "Zuul (22348)"
Branch: master

commit 1f9d51fdba24c218940b5eeacd3175b6b0767635
Author: LuizSantos <email address hidden>
Date: Mon Jun 5 14:46:00 2023 +0000

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

    Changed the client method 'get_snapmirror_destinations' instead of 'get_snapmirrors'

    Closes-Bug: #1996907
    Change-Id: Ie857caf8a439ca6b252baa3c1fbfb3f0e62d7562

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/manila/+/897295
Committed: https://opendev.org/openstack/manila/commit/7f877845af3d93a95ab2a7e4884552c9bcf4c087
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit 7f877845af3d93a95ab2a7e4884552c9bcf4c087
Author: LuizSantos <email address hidden>
Date: Mon Jun 5 14:46:00 2023 +0000

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

    Changed the client method 'get_snapmirror_destinations' instead of 'get_snapmirrors'

    Closes-Bug: #1996907
    Change-Id: Ie857caf8a439ca6b252baa3c1fbfb3f0e62d7562
    (cherry picked from commit 1f9d51fdba24c218940b5eeacd3175b6b0767635)

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.