From 962a886e35bcb3bc6a5658604669bffaae24113a Mon Sep 17 00:00:00 2001 From: Vladislav Belogrudov Date: Mon, 20 Nov 2017 14:01:46 +0300 Subject: [PATCH] Enable nfs driver volume snapshots by default Change-Id: I36d7d62514416104c1f2f36cbd29c26c34c0d20d Closes-Bug: #1733304 --- ansible/roles/cinder/templates/cinder.conf.j2 | 1 + .../enable-nfs-volume-snapshots-a0347a31662b1109.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 releasenotes/notes/enable-nfs-volume-snapshots-a0347a31662b1109.yaml diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2 index 5a87c7cbed..453babee45 100644 --- a/ansible/roles/cinder/templates/cinder.conf.j2 +++ b/ansible/roles/cinder/templates/cinder.conf.j2 @@ -125,6 +125,7 @@ image_upload_use_cinder_backend = True volume_driver = cinder.volume.drivers.nfs.NfsDriver volume_backend_name = nfs-1 nfs_shares_config = /etc/cinder/nfs_shares +nfs_snapshot_support = True {% endif %} {% if enable_cinder_backend_hnas_iscsi | bool %} diff --git a/releasenotes/notes/enable-nfs-volume-snapshots-a0347a31662b1109.yaml b/releasenotes/notes/enable-nfs-volume-snapshots-a0347a31662b1109.yaml new file mode 100644 index 0000000000..7eea6d4e7b --- /dev/null +++ b/releasenotes/notes/enable-nfs-volume-snapshots-a0347a31662b1109.yaml @@ -0,0 +1,11 @@ +--- +features: + - | + This feature enables volume snapshots for NFS Cinder driver. + NFS volume snapshots appeared in Ocata release and require + libvirt >= 1.2.7 +upgrade: + - | + On upgrade NFS Cinder snapshots will be activated. One can + prohibit this by setting nfs_snapshot_support = False in + /etc/kolla/config/cinder/cinder-volume.conf, section '[nfs-1]'. \ No newline at end of file