Fix Devstack plugin
When using mod-wsgi with devstack, apache is configured and restarted just after cloudkitty-processor is started, causing a ConnexionRefused error when ck-proc tries to authenticate against keystone and making the devstack fail. This adds a sleep to avoid this issue. Change-Id: I080a364be2f783610252a40dc70f2eb5babd1467
This commit is contained in:
parent
3d9e0c92fb
commit
e5e90e8813
@ -239,6 +239,8 @@ function start_cloudkitty {
|
||||
run_process ck-api "$CLOUDKITTY_BIN_DIR/cloudkitty-api --config-file=$CLOUDKITTY_CONF"
|
||||
elif is_service_enabled ck-api; then
|
||||
enable_apache_site cloudkitty
|
||||
echo_summary "Waiting 15s for cloudkitty-processor to authenticate against keystone before apache is restarted."
|
||||
sleep 15s
|
||||
restart_apache_server
|
||||
tail_log cloudkitty /var/log/$APACHE_NAME/cloudkitty.log
|
||||
tail_log cloudkitty-api /var/log/$APACHE_NAME/cloudkitty_access.log
|
||||
|
Loading…
x
Reference in New Issue
Block a user