Browse code

Set cinder coordination backend url

If DLM is enabled, cinder should be configured to use the correct
backend url for the dlm.
At the moment only zookeeper is supported, as it is the only backend
currently supported in devstack.

Change-Id: I7afc8dc95bc5b3f11b888e10607615c1212c45f4

Daniel Gonzalez authored on 2016/07/16 02:13:38
Showing 1 changed files
... ...
@@ -358,6 +358,13 @@ function configure_cinder {
358 358
     iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD"
359 359
     iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_PROJECT_NAME"
360 360
     iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT"
361
+
362
+    # Set the backend url according to the configured dlm backend
363
+    if is_dlm_enabled; then
364
+        if [[ "$(dlm_backend)" == "zookeeper" ]]; then
365
+            iniset $CINDER_CONF coordination backend_url "zake://"
366
+        fi
367
+    fi
361 368
 }
362 369
 
363 370
 # create_cinder_accounts() - Set up common required cinder accounts