RemoteFS revert snapshot support

Registered by Lucian Petrut on 2017-09-19

The goal of this blueprint is adding RemoteFS driver support for reverting snapshots . Note that we only consider the case in which the latest snapshot is being reverted (the Cinder API won't allow reverting volumes to other snapshots anyway, at least for the time being).

The RemoteFS based drivers (e.g. NFS driver, SMB driver) use COW images (e.g. qcow2, differencing vhdx) in order to provide volume snapshot functionality. Reverting a volume to its latest snapshot is a trivial operation in this case and can be achived by simply cleaning up (e.g. recreating) the latest image from chain. We intend to implement this simple change at the RemoteFS class level so that any drivers inheriting it can benefit from this feature.

Note that (efficiently) reverting a volume to a snapshot other than the last one may be more difficult to implement as the drivers expect to deal with a chain (list) of images, while in this case we may end up with a tree structure. As previously mentioned, this is outside the scope of this blueprint.

Blueprint information

Status:
Started
Approver:
None
Priority:
Low
Drafter:
Lucian Petrut
Direction:
Approved
Assignee:
Alexandru Muresan
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Needs Code Review
Milestone target:
milestone icon queens-1
Started by
Lucian Petrut

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/remotefs-revert-snapshot,n,z

Addressed by: https://review.openstack.org/510016
    RemoteFS: revert snapshot support

Addressed by: https://review.openstack.org/512545
    SMBFS: Enable reverting snapshots

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.