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
| ... | ... |
@@ -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" \ |