From 05076fb7ea45b7f1f7d9f232afb56dbb1d6e2f08 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Sat, 15 Aug 2015 19:01:59 +1000 Subject: [PATCH] Configure horizon with identity v3 Currently horizon configures keystone using v3 only if v2 is not available. Really we should just always be using v3. Change-Id: Icac4d90b617209da75abf33f8e25ffc021c45fdb --- lib/horizon | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/horizon b/lib/horizon index b0f306b675..108a7f0a8f 100644 --- a/lib/horizon +++ b/lib/horizon @@ -98,13 +98,8 @@ function init_horizon { _horizon_config_set $local_settings "" OPENSTACK_HOST \"${KEYSTONE_SERVICE_HOST}\" - if [ "$ENABLE_IDENTITY_V2" == "False" ]; then - # Only Identity v3 API is available; then use it with v3 auth tokens - _horizon_config_set $local_settings "" OPENSTACK_API_VERSIONS {\"identity\":3} - _horizon_config_set $local_settings "" OPENSTACK_KEYSTONE_URL "\"${KEYSTONE_SERVICE_PROTOCOL}://${KEYSTONE_SERVICE_HOST}:${KEYSTONE_SERVICE_PORT}/v3\"" - else - _horizon_config_set $local_settings "" OPENSTACK_KEYSTONE_URL "\"${KEYSTONE_SERVICE_PROTOCOL}://${KEYSTONE_SERVICE_HOST}:${KEYSTONE_SERVICE_PORT}/v2.0\"" - fi + _horizon_config_set $local_settings "" OPENSTACK_API_VERSIONS {\"identity\":3} + _horizon_config_set $local_settings "" OPENSTACK_KEYSTONE_URL "\"${KEYSTONE_SERVICE_PROTOCOL}://${KEYSTONE_SERVICE_HOST}:${KEYSTONE_SERVICE_PORT}/v3\"" if [ -f $SSL_BUNDLE_FILE ]; then _horizon_config_set $local_settings "" OPENSTACK_SSL_CACERT \"${SSL_BUNDLE_FILE}\"