From a283526c88d98f7668d369f4c20db44d3d06425a Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Fri, 15 Jul 2016 19:13:38 +0200 Subject: [PATCH] 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 --- lib/cinder | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/cinder b/lib/cinder index 0fe950b6c2..4ed944cfcb 100644 --- a/lib/cinder +++ b/lib/cinder @@ -358,6 +358,13 @@ function configure_cinder { iniset $CINDER_CONF DEFAULT os_privileged_user_password "$SERVICE_PASSWORD" iniset $CINDER_CONF DEFAULT os_privileged_user_tenant "$SERVICE_PROJECT_NAME" iniset $CINDER_CONF DEFAULT graceful_shutdown_timeout "$SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT" + + # Set the backend url according to the configured dlm backend + if is_dlm_enabled; then + if [[ "$(dlm_backend)" == "zookeeper" ]]; then + iniset $CINDER_CONF coordination backend_url "zake://" + fi + fi } # create_cinder_accounts() - Set up common required cinder accounts