From 29ec28216f91eab118134b5444e0276ef845e0d0 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Tue, 30 May 2017 14:21:39 -0500 Subject: [PATCH] Configure volume_clear setting per backend volume_clear is currently set in the DEFAULT section, but this is a backend specific setting, and therefore needs to be set in the backend config section. Change-Id: Ifa3a659bb4768b8915a0f23e7f14b0f3348d93d2 --- lib/cinder | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cinder b/lib/cinder index 2f302c0204..762edc4393 100644 --- a/lib/cinder +++ b/lib/cinder @@ -289,6 +289,9 @@ function configure_cinder { default_name=$be_name fi enabled_backends+=$be_name, + + iniset $CINDER_CONF $be_name volume_clear $CINDER_VOLUME_CLEAR + done iniset $CINDER_CONF DEFAULT enabled_backends ${enabled_backends%,*} if [[ -n "$default_name" ]]; then @@ -318,8 +321,6 @@ function configure_cinder { iniset_rpc_backend cinder $CINDER_CONF - iniset $CINDER_CONF DEFAULT volume_clear $CINDER_VOLUME_CLEAR - # Format logging setup_logging $CINDER_CONF $CINDER_USE_MOD_WSGI