Default to single process in devstack

This commit defaults to starting single congress process through
devstack and defaults kombu+memory as messaging driver .

TODO(ramineni): Gate jobs to run on multi process and rabbit driver

Change-Id: I0951b6d9693a24faca68e4daedf13f253e965404
Partial-Bug:#1624172
This commit is contained in:
Anusha Ramineni 2016-09-20 15:51:49 +05:30
parent 45cb85e847
commit f40fd1b16f
2 changed files with 16 additions and 6 deletions

View File

@ -57,9 +57,10 @@ function configure_congress {
iniset $CONGRESS_CONF oslo_policy policy_file $CONGRESS_POLICY_FILE
iniset $CONGRESS_CONF DEFAULT auth_strategy $CONGRESS_AUTH_STRATEGY
iniset $CONGRESS_CONF DEFAULT datasource_sync_period 30
# Set RabbitMQ credentials
iniset $CONGRESS_CONF oslo_messaging_rabbit rabbit_userid $RABBIT_USERID
iniset $CONGRESS_CONF oslo_messaging_rabbit rabbit_password $RABBIT_PASSWORD
# if [ "$CONGRESS_MULTIPROCESS_DEPLOYMENT" == "False" ]; then
# iniset $CONGRESS_CONF DEFAULT transport_url $CONGRESS_TRANSPORT_URL
# fi
CONGRESS_DRIVERS="congress.datasources.neutronv2_driver.NeutronV2Driver,"
CONGRESS_DRIVERS+="congress.datasources.glancev2_driver.GlanceV2Driver,"
@ -180,9 +181,14 @@ function start_congress_service_and_check {
# Start the congress services in seperate processes
echo_summary "Installing congress services"
run_process congress-api "python $CONGRESS_BIN_DIR/congress-server --api --node-id=apinode $CFG_FILE_OPTIONS"
run_process congress-engine "python $CONGRESS_BIN_DIR/congress-server --policy-engine --node-id=enginenode $CFG_FILE_OPTIONS"
run_process congress-datasources "python $CONGRESS_BIN_DIR/congress-server --datasources --node-id=datanode $CFG_FILE_OPTIONS"
if [ "$CONGRESS_MULTIPROCESS_DEPLOYMENT" == "False" ]; then
echo "Installing congress as single process"
run_process congress "python $CONGRESS_BIN_DIR/congress-server --node-id=allinonenode $CFG_FILE_OPTIONS"
else
run_process congress-api "python $CONGRESS_BIN_DIR/congress-server --api --node-id=apinode $CFG_FILE_OPTIONS"
run_process congress-engine "python $CONGRESS_BIN_DIR/congress-server --policy-engine --node-id=enginenode $CFG_FILE_OPTIONS"
run_process congress-datasources "python $CONGRESS_BIN_DIR/congress-server --datasources --node-id=datanode $CFG_FILE_OPTIONS"
fi
# Start multiple PE's
if [ "$CONGRESS_REPLICATED" == "True" ]; then

View File

@ -32,6 +32,10 @@ CONGRESS_AUTH_STRATEGY=${CONGRESS_AUTH_STRATEGY:-keystone}
CONGRESS_DB_NAME=${CONGRESS_DB_NAME:-congress}
# To run congress in HA mode
CONGRESS_REPLICATED=${CONGRESS_REPLICATED:-False}
# Default messaging driver
CONGRESS_TRANSPORT_URL=${CONGRESS_TRANSPORT_URL:-kombu+memory:////}
# Mutli process deployment
CONGRESS_MULTIPROCESS_DEPLOYMENT=${CONGRESS_MULTIPROCESS_DEPLOYMENT:-False}
# Setup default directories for client
#-------------------------------------