From 8df81757d8d508863dda2f1e2cc1c193e976ae98 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Wed, 24 Mar 2021 01:25:30 +0100 Subject: [PATCH] WIP Allow the usage of Clone v2 API This will allow for handling the deletion of cinder snapshots which have clones. Change-Id: Id8e581893ee4b373b268acc7c59b670985cedc2f --- devstack/lib/ceph | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devstack/lib/ceph b/devstack/lib/ceph index 29da6a9..6f49bb7 100755 --- a/devstack/lib/ceph +++ b/devstack/lib/ceph @@ -484,6 +484,16 @@ function configure_ceph { sudo systemctl enable ceph-osd@${OSD_ID} done + if is_ceph_enabled_for_service cinder; then + # enables new features like Clone v2 API, which allows + # for proper handling of the deletion of snapshots + # with child clone images + if vercmp "$ceph_version" ">=" "13.0"; then + sudo ceph -c ${CEPH_CONF_FILE} \ + osd set-require-min-compat-client mimic + fi + fi + if is_ceph_enabled_for_service manila; then # create a MDS sudo mkdir -p ${CEPH_DATA_DIR}/mds/ceph-${MDS_ID}