This makes openrc more robust for the grenade scenarios by having a
sane fallback when stackrc is not found.
Change-Id: I297ba519d581d2b6fb4d80d59434acace054bada
... | ... |
@@ -82,7 +82,12 @@ export OS_IDENTITY_API_VERSION=${IDENTITY_API_VERSION:-3} |
82 | 82 |
# the user/project has access to - including nova, glance, keystone, swift, ... |
83 | 83 |
# We currently recommend using the version 3 *identity api*. |
84 | 84 |
# |
85 |
-export OS_AUTH_URL=$KEYSTONE_AUTH_URI |
|
85 |
+ |
|
86 |
+# If you don't have a working .stackenv, this is the backup possition |
|
87 |
+KEYSTONE_BACKUP=$SERVICE_PROTOCOL://$SERVICE_HOST:5000 |
|
88 |
+KEYSTONE_AUTH_URI=${KEYSTONE_AUTH_URI:-$KEYSTONE_BACKUP} |
|
89 |
+ |
|
90 |
+export OS_AUTH_URL=${OS_AUTH_URL:-$KEYSTONE_AUTH_URI} |
|
86 | 91 |
|
87 | 92 |
# Currently, in order to use openstackclient with Identity API v3, |
88 | 93 |
# we need to set the domain which the user and project belong to. |