From a47ca31221f8c9b4c3136b594e2275aac340a697 Mon Sep 17 00:00:00 2001 From: Julian Montez Date: Mon, 14 Sep 2015 15:40:50 -0500 Subject: [PATCH] Add auth version for legacy OpenStack clients Adding this environment variable expands Identity v3 coverage for legacy OpenStack CLI clients. This corrects the authentication URLs used even if v2 is still being used. Change-Id: I68197ffd12d71a437c482f13520b83cb08d4c9de Closes-Bug: #1495685 --- playbooks/roles/openstack_openrc/templates/openrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/roles/openstack_openrc/templates/openrc b/playbooks/roles/openstack_openrc/templates/openrc index d4b443e0a2..26a09a2061 100644 --- a/playbooks/roles/openstack_openrc/templates/openrc +++ b/playbooks/roles/openstack_openrc/templates/openrc @@ -22,8 +22,10 @@ export OS_PROJECT_DOMAIN_NAME={{ openrc_os_domain_name }} # For openstackclient {% if openrc_os_auth_url.endswith('v3') %} export OS_IDENTITY_API_VERSION=3 +export OS_AUTH_VERSION=3 {% else %} export OS_IDENTITY_API_VERSION=2 +export OS_AUTH_VERSION=2 {% endif %} {% if openrc_insecure | bool %}