NetApp cDOT driver fails to revert to failed-over replicated snapshot or migrated snapshot

Bug #1694768 reported by Clinton Knight
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Goutham Pacha Ravi

Bug Description

The NetApp cDOT driver supports snapshot revert as well as DR-style replication. Reverting a replicated share to a snapshot works fine if the active replica is the original one, but it fails if the share has been failed over to one of the replicas. The simple fix is to use the provider_location field on the snapshot to correctly identify it regardless of which replica is active.

Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

Looks like the behavior affects migration as well. Renaming this bug since the fix is similar in both scenarios.

summary: - NetApp cDOT driver fails to revert to failed-over replicated snapshot
+ NetApp cDOT driver fails to revert to failed-over replicated snapshot or
+ migrated snapshot
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

Fix proposed to branch: master
Review: https://review.openstack.org/497236

Changed in manila:
assignee: Clinton Knight (clintonk) → Goutham Pacha Ravi (gouthamr)
status: New → In Progress
Changed in manila:
milestone: pike-1 → none
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/497236
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=bd47f93007227719e8b9eebbef9767d27025a236
Submitter: Jenkins
Branch: master

commit bd47f93007227719e8b9eebbef9767d27025a236
Author: Clinton Knight <email address hidden>
Date: Wed May 31 13:52:02 2017 -0400

    NetApp ONTAP: Fix revert-to-snapshot

    In course of normal operation, the backend snapshot
    name is associated with the the ID of the snapshot instance
    in manila.

    However, when a share is replicated or is being migrated,
    the backend snapshot is not renamed. Instead, we simply
    store the original name in the "provider_location" field of
    the snapshot model.

    Fix revert-to-snapshot methods to identify snapshots by
    "provider_location"s rather than the instance IDs.

    Co-Authored-By: Goutham Pacha Ravi <email address hidden>

    Change-Id: I4900c7aecc3da6640ea9c0d4d08012ff5b68cc58
    Closes-Bug: #1694768

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

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/498080

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/499416

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

Reviewed: https://review.openstack.org/498080
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=038eb7be4fa75fd7b8c2ad2a69f831e7186dbb9f
Submitter: Jenkins
Branch: stable/pike

commit 038eb7be4fa75fd7b8c2ad2a69f831e7186dbb9f
Author: Clinton Knight <email address hidden>
Date: Wed May 31 13:52:02 2017 -0400

    NetApp ONTAP: Fix revert-to-snapshot

    In course of normal operation, the backend snapshot
    name is associated with the the ID of the snapshot instance
    in manila.

    However, when a share is replicated or is being migrated,
    the backend snapshot is not renamed. Instead, we simply
    store the original name in the "provider_location" field of
    the snapshot model.

    Fix revert-to-snapshot methods to identify snapshots by
    "provider_location"s rather than the instance IDs.

    Co-Authored-By: Goutham Pacha Ravi <email address hidden>

    Change-Id: I4900c7aecc3da6640ea9c0d4d08012ff5b68cc58
    Closes-Bug: #1694768
    (cherry picked from commit bd47f93007227719e8b9eebbef9767d27025a236)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 5.0.1

This issue was fixed in the openstack/manila 5.0.1 release.

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

Fix proposed to branch: driverfixes/ocata
Review: https://review.openstack.org/508966

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

Change abandoned by Goutham Pacha Ravi (<email address hidden>) on branch: stable/ocata
Review: https://review.openstack.org/499416
Reason: cherry-pick is appropriate within driverfixes/ocata instead: https://review.openstack.org/#/c/508966/

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

Reviewed: https://review.openstack.org/508966
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=c789d64a8aa36b796b3ad62f7755726082be2906
Submitter: Zuul
Branch: driverfixes/ocata

commit c789d64a8aa36b796b3ad62f7755726082be2906
Author: Clinton Knight <email address hidden>
Date: Wed May 31 13:52:02 2017 -0400

    NetApp ONTAP: Fix revert-to-snapshot

    In course of normal operation, the backend snapshot
    name is associated with the the ID of the snapshot instance
    in manila.

    However, when a share is replicated or is being migrated,
    the backend snapshot is not renamed. Instead, we simply
    store the original name in the "provider_location" field of
    the snapshot model.

    Fix revert-to-snapshot methods to identify snapshots by
    "provider_location"s rather than the instance IDs.

    Co-Authored-By: Goutham Pacha Ravi <email address hidden>

    Change-Id: I4900c7aecc3da6640ea9c0d4d08012ff5b68cc58
    Closes-Bug: #1694768
    (cherry picked from commit bd47f93007227719e8b9eebbef9767d27025a236)
    (cherry picked from commit 038eb7be4fa75fd7b8c2ad2a69f831e7186dbb9f)

tags: added: in-driverfixes-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 6.0.0.0b1

This issue was fixed in the openstack/manila 6.0.0.0b1 development milestone.

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

Reviewed: https://review.openstack.org/499416
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=b1d73fdb8682db16029f0e28620c0590f04bc6f5
Submitter: Zuul
Branch: stable/ocata

commit b1d73fdb8682db16029f0e28620c0590f04bc6f5
Author: Clinton Knight <email address hidden>
Date: Wed May 31 13:52:02 2017 -0400

    NetApp ONTAP: Fix revert-to-snapshot

    In course of normal operation, the backend snapshot
    name is associated with the the ID of the snapshot instance
    in manila.

    However, when a share is replicated or is being migrated,
    the backend snapshot is not renamed. Instead, we simply
    store the original name in the "provider_location" field of
    the snapshot model.

    Fix revert-to-snapshot methods to identify snapshots by
    "provider_location"s rather than the instance IDs.

    Co-Authored-By: Goutham Pacha Ravi <email address hidden>

    Change-Id: I4900c7aecc3da6640ea9c0d4d08012ff5b68cc58
    Closes-Bug: #1694768
    (cherry picked from commit bd47f93007227719e8b9eebbef9767d27025a236)
    (cherry picked from commit 038eb7be4fa75fd7b8c2ad2a69f831e7186dbb9f)
    (cherry picked from commit c789d64a8aa36b796b3ad62f7755726082be2906)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 4.0.2

This issue was fixed in the openstack/manila 4.0.2 release.

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.