From e8715f690e61557d08c6df9040a2e4d87d3e6bad Mon Sep 17 00:00:00 2001 From: AlexMuresan Date: Wed, 18 Oct 2017 12:32:13 +0300 Subject: [PATCH] SMBFS: Enable reverting snapshots This is a trivial change that enables the "revert to snapshot" feature within the SMBFS volume driver. All the required logic is implemented in the RevertToSnapshotMixin class, so all we're doing now is inheriting it. Related-Blueprint: remotefs-revert-snapshot Change-Id: Ib4f35bd01613d1bd69127a8ba65fc9e3cff6d3ad --- cinder/volume/drivers/windows/smbfs.py | 3 ++- .../notes/smbfs-revert-snapshot-5b265ed5ded951dc.yaml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/smbfs-revert-snapshot-5b265ed5ded951dc.yaml diff --git a/cinder/volume/drivers/windows/smbfs.py b/cinder/volume/drivers/windows/smbfs.py index 1c40214352e..f9b4eb8b087 100644 --- a/cinder/volume/drivers/windows/smbfs.py +++ b/cinder/volume/drivers/windows/smbfs.py @@ -92,7 +92,8 @@ CONF.set_default('reserved_percentage', 5) @interface.volumedriver -class WindowsSmbfsDriver(remotefs_drv.RemoteFSPoolMixin, +class WindowsSmbfsDriver(remotefs_drv.RevertToSnapshotMixin, + remotefs_drv.RemoteFSPoolMixin, remotefs_drv.RemoteFSSnapDriverDistributed): VERSION = VERSION diff --git a/releasenotes/notes/smbfs-revert-snapshot-5b265ed5ded951dc.yaml b/releasenotes/notes/smbfs-revert-snapshot-5b265ed5ded951dc.yaml new file mode 100644 index 00000000000..e0ec2e2a05f --- /dev/null +++ b/releasenotes/notes/smbfs-revert-snapshot-5b265ed5ded951dc.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The SMBFS volume driver now supports reverting volumes to the latest + snapshot.