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
This commit is contained in:
Akihiro MOTOKI 2012-11-22 20:04:02 +09:00
parent 1008e2cf0d
commit 766ae34261

View File

@ -106,7 +106,7 @@ if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
fi fi
# Nova # Nova
if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
NOVA_USER=$(get_id keystone user-create \ NOVA_USER=$(get_id keystone user-create \
--name=nova \ --name=nova \
--pass="$SERVICE_PASSWORD" \ --pass="$SERVICE_PASSWORD" \