From 435cd4dc6e4e5bbd0201f85524e21d83a7407719 Mon Sep 17 00:00:00 2001 From: Sergey Reshetnyak Date: Sun, 1 Mar 2015 12:44:02 +0300 Subject: [PATCH] Add support running sahara in distributed mode Sahara supports running in distributed mode. Need to add this ability in devstack. Changes: * configure rpc backend for sahara by default * added sahara-api service for running api side * added sahara-eng service for running engine side Change-Id: I4fb9d5746b08c9b1fee0d283bcf448e47a87089b --- lib/sahara | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/sahara b/lib/sahara index a965f55f68..0651b0a633 100644 --- a/lib/sahara +++ b/lib/sahara @@ -113,12 +113,13 @@ function configure_sahara { configure_auth_token_middleware $SAHARA_CONF_FILE sahara $SAHARA_AUTH_CACHE_DIR + iniset_rpc_backend sahara $SAHARA_CONF_FILE DEFAULT + # Set configuration to send notifications if is_service_enabled ceilometer; then iniset $SAHARA_CONF_FILE DEFAULT enable_notifications "true" iniset $SAHARA_CONF_FILE DEFAULT notification_driver "messaging" - iniset_rpc_backend sahara $SAHARA_CONF_FILE fi iniset $SAHARA_CONF_FILE DEFAULT verbose True @@ -203,12 +204,16 @@ function sahara_register_images { # start_sahara() - Start running processes, including screen function start_sahara { run_process sahara "$SAHARA_BIN_DIR/sahara-all --config-file $SAHARA_CONF_FILE" + run_process sahara-api "$SAHARA_BIN_DIR/sahara-api --config-file $SAHARA_CONF_FILE" + run_process sahara-eng "$SAHARA_BIN_DIR/sahara-engine --config-file $SAHARA_CONF_FILE" } # stop_sahara() - Stop running processes function stop_sahara { # Kill the Sahara screen windows stop_process sahara + stop_process sahara-api + stop_process sahara-eng }