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 <gouthampravi@gmail.com>

Change-Id: I4900c7aecc3da6640ea9c0d4d08012ff5b68cc58
Closes-Bug: #1694768
This commit is contained in:
Clinton Knight
2017-05-31 13:52:02 -04:00
committed by Goutham Pacha Ravi
parent f68cd21d55
commit bd47f93007
3 changed files with 30 additions and 9 deletions

View File

@@ -0,0 +1,4 @@
---
fixes:
- Fixed the NetApp ONTAP driver to handle reverting to replicated
and migrated snapshots.