From 9036cca28506a964e1f4928980b2c27987e2ea73 Mon Sep 17 00:00:00 2001 From: Goutham Pacha Ravi Date: Tue, 7 Jul 2020 22:10:55 -0700 Subject: [PATCH] [manila][ci] Disable tempest opt for snapshot cloning CephFS drivers don't support cloning snapshots into shares. Manila's tempest tests need to be told this explicitly. So, update the gate hooks that control tempest configuration. This affects all legacy style CephFS jobs that use devstack-gate. These jobs will go away soon, and be replaced with Zuulv3 native style job definitions and this patch is a stop-gap, because devstack-plugin-ceph is a branchless devstack plugin, and we need to support legacy style jobs for a while. Change-Id: I885ff78586540d01590f98cca2a00d55161dbe04 Signed-off-by: Goutham Pacha Ravi --- manila/post_test_hook.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manila/post_test_hook.sh b/manila/post_test_hook.sh index a5c5367..7cc5ef3 100644 --- a/manila/post_test_hook.sh +++ b/manila/post_test_hook.sh @@ -43,6 +43,11 @@ MANILA_CEPH_DRIVER=${MANILA_CEPH_DRIVER:-cephfsnative} MANILA_TEST_TYPE=$3 MANILA_TEST_TYPE=${MANILA_TEST_TYPE:-api} +# Manila drivers don't support creating shares from snapshots even if +# snapshots themselves are supported. Let's turn off this capability +# in tempest.conf +iniset $TEMPEST_CONFIG share capability_create_share_from_snapshot_support False + if [[ $MANILA_CEPH_DRIVER == 'cephfsnative' ]]; then export BACKEND_NAME="CEPHFSNATIVE1" iniset $TEMPEST_CONFIG share enable_protocols cephfs