NetApp driver triggers 'peer-accept' when working with intra cluster replicas

Bug #1873963 reported by Douglas Viroel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Douglas Viroel

Bug Description

With Manila operating in `driver_handles_share_servers` true, the NetApp driver fails to create a intra-cluster vserver peer relationship. This scenario happens when source and destination lies on the same cluster but in different vservers (share-servers). The vserver peering in this scenario doesn't need to be accepted but the NetApp driver triggers the 'accept-vserver-peer' operation.
It was observed in the following scenario, but may happen with different sequence of operations:

1. Configure three NetApp backends in `driver_handles_share_servers` true mode. Two backends on availability zone 'B' should belong to the same cluster, but with different aggregates;
2. Create a share with replication enabled on availability zone 'A';
3. Create two replicas on availability zone 'B';
4. Promote one of the replicas.

When trying to creating new relationships between replicas and the new active instance, the vserver peer operation fails while triggering a 'accept-vserver-peer' operation.

Error that appears in the log:

manila-share[26380]: DEBUG manila.share.drivers.netapp.dataontap.client.api [None req-2623c83b-3dc1-4c03-bbcc-02c942cd01e4 None None] Response: b'<results xmlns="http://www.netapp.com/filer/admin" reason="Invalid operation on intra cluster Vserver peer relationship." status="failed" errno="18180"/>\n' {{(pid=27094) invoke_elem /opt/stack/new/manila/manila/share/drivers/netapp/dataontap/client/api.py:263}}
manila-share[26380]: ERROR manila.share.drivers.netapp.dataontap.cluster_mode.lib_base [None req-2623c83b-3dc1-4c03-bbcc-02c942cd01e4 None None] Failed to change replica (15520da9-b981-43ba-8682-5284e0866191) to a SnapMirror destination.: manila.share.drivers.netapp.dataontap.client.api.NaApiError: NetApp API failed. Reason - 18180:Invalid operation on intra cluster Vserver peer relationship.

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/722124

Changed in manila:
status: New → In Progress
Changed in manila:
importance: High → Medium
tags: added: ussuri-rc-potential
Revision history for this message
Vida Haririan (vhariria) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.opendev.org/722124
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=00e548a60c9183366e4cc935436558c330a77d63
Submitter: Zuul
Branch: master

commit 00e548a60c9183366e4cc935436558c330a77d63
Author: Douglas Viroel <email address hidden>
Date: Mon Apr 20 22:20:12 2020 +0000

    [NetApp] Fix vserver peer accept on intra cluster replication

    The NetApp driver is now fixed to not trigger vserver peer accept when
    handling with share replica operations on 'driver_handle_share_servers'
    mode enabled.

    Closes-Bug: #1873963
    Change-Id: I9df8b48bf2c127f266c1b950bafc710bc28f7632

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

Fix proposed to branch: stable/train
Review: https://review.opendev.org/722408

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

Reviewed: https://review.opendev.org/722408
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=1d4b306367656bfbce013c1b2e99187ce22d8251
Submitter: Zuul
Branch: stable/train

commit 1d4b306367656bfbce013c1b2e99187ce22d8251
Author: Douglas Viroel <email address hidden>
Date: Mon Apr 20 22:20:12 2020 +0000

    [NetApp] Fix vserver peer accept on intra cluster replication

    The NetApp driver is now fixed to not trigger vserver peer accept when
    handling with share replica operations on 'driver_handle_share_servers'
    mode enabled.

    Closes-Bug: #1873963
    Change-Id: I9df8b48bf2c127f266c1b950bafc710bc28f7632
    (cherry picked from commit 00e548a60c9183366e4cc935436558c330a77d63)

tags: added: in-stable-train
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.