diff --git a/openrc b/openrc index d3ebe7a854..23c173c8a1 100644 --- a/openrc +++ b/openrc @@ -83,7 +83,12 @@ export OS_AUTH_TYPE=password # the user/project has access to - including nova, glance, keystone, swift, ... # We currently recommend using the version 3 *identity api*. # -export OS_AUTH_URL=$KEYSTONE_AUTH_URI + +# If you don't have a working .stackenv, this is the backup possition +KEYSTONE_BACKUP=$SERVICE_PROTOCOL://$SERVICE_HOST:5000 +KEYSTONE_AUTH_URI=${KEYSTONE_AUTH_URI:-$KEYSTONE_BACKUP} + +export OS_AUTH_URL=${OS_AUTH_URL:-$KEYSTONE_AUTH_URI} # Currently, in order to use openstackclient with Identity API v3, # we need to set the domain which the user and project belong to.