Browse code

Creates nova endpoint when n-api is enabled.

Fixes bug 1081975

Nova endpoint in keystone was registered if n-cpu is enabled. However it is
a usual case where n-cpu runs on a different host in multi-node setup and
it results in no endpoint for nova. n-api is a better condition since nova-api
and keystone usually run on a same host.

Change-Id: Ic097e1c3bd30798d9d3c5fb76023fbdb3ae189d9

Akihiro MOTOKI authored on 2012/11/22 20:04:02
Showing 1 changed files
... ...
@@ -106,7 +106,7 @@ if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
106 106
 fi
107 107
 
108 108
 # Nova
109
-if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
109
+if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
110 110
     NOVA_USER=$(get_id keystone user-create \
111 111
         --name=nova \
112 112
         --pass="$SERVICE_PASSWORD" \