Browse code

Merge "Set cinder coordination backend url"

Jenkins authored on 2016/12/01 01:30:23
Showing 1 changed files
... ...
@@ -373,6 +373,13 @@ function configure_cinder {
373 373
     iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD"
374 374
     iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_PROJECT_NAME"
375 375
     iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
376
+
377
+    # Set the backend url according to the configured dlm backend
378
+    if is_dlm_enabled; then
379
+        if [[ "$(dlm_backend)" == "zookeeper" ]]; then
380
+            iniset $CINDER_CONF coordination backend_url "zake://"
381
+        fi
382
+    fi
376 383
 }
377 384
 
378 385
 # create_cinder_accounts() - Set up common required cinder accounts