Nova consoleauth service fails in HA configuration

Nova consoleauth is a singleton service. In an HA configuration currently
it runs on all the controllers and causes NoVNC to fail intermittently
when it tries to connect to the URL that the API returned to it.

This fix makes consoleauth only run on the bootstrap node.

Change-Id: Ic1803e0b997271b3512e6c62fd75feccb4d9be0a
This commit is contained in:
Nicholas Randon 2014-10-23 11:27:29 +01:00
parent b1ac3e3388
commit f07c4519d9
1 changed files with 6 additions and 2 deletions

View File

@ -13,10 +13,14 @@ os-svc-enable -n nova-conductor
os-svc-enable -n nova-api
os-svc-enable -n nova-cert
os-svc-enable -n nova-scheduler
os-svc-enable -n nova-consoleauth
os-svc-restart -n nova-conductor
os-svc-restart -n nova-api
os-svc-restart -n nova-cert
os-svc-restart -n nova-scheduler
os-svc-restart -n nova-consoleauth
# Allow for non-ha Nova components.
if os-is-bootstrap-host; then
os-svc-enable -n nova-consoleauth
os-svc-restart -n nova-consoleauth
fi