Force Identity API v3 for endpoint create in devstack

When the switch was made to the Openstack CLI, the Identity API v3 was
being taken into account. And that's the way it worked when the CR was
introduced. But for some reason, the gate is now taking v2 into account
(Which was the original behaviur).

This is problematic in the sense that commands related to identity v2
have a different syntax than commands related to identity v3.

This CR sets v3 specifically in the problematic commands, since it's the
syntax that we were considering initially. And also the goal is to move
towards the usage of Identity v3 as much as possible.

Change-Id: I5be80ce0c222be0a5439f4284351e3d30c40ef2e
This commit is contained in:
Juan Antonio Osorio 2015-09-05 18:34:19 +03:00
parent b25421e0aa
commit b95ecb7f58
2 changed files with 6 additions and 2 deletions

View File

@ -358,7 +358,7 @@ function create_barbican_accounts {
--project "$PROJECT_B_ID" \
"$ROLE_AUDIT_ID"
#
# Setup Admin Endpoint
# Setup Barbican Endpoint
#
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
BARBICAN_SERVICE=$(openstack service create \
@ -367,10 +367,12 @@ function create_barbican_accounts {
'key-manager' \
| grep " id " | get_field 2)
openstack endpoint create \
--os-identity-api-version 3 \
--region RegionOne \
$BARBICAN_SERVICE \
public "http://$SERVICE_HOST:9311"
openstack endpoint create \
--os-identity-api-version 3 \
--region RegionOne \
$BARBICAN_SERVICE \
internal "http://$SERVICE_HOST:9311"

View File

@ -332,7 +332,7 @@ function create_barbican_accounts {
--project "$PROJECT_B_ID" \
"$ROLE_AUDIT_ID"
#
# Setup Admin Endpoint
# Setup Barbican Endpoint
#
if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
BARBICAN_SERVICE=$(openstack service create \
@ -341,10 +341,12 @@ function create_barbican_accounts {
'key-manager' \
| grep " id " | get_field 2)
openstack endpoint create \
--os-identity-api-version 3 \
--region RegionOne \
$BARBICAN_SERVICE \
public "http://$SERVICE_HOST:9311"
openstack endpoint create \
--os-identity-api-version 3 \
--region RegionOne \
$BARBICAN_SERVICE \
internal "http://$SERVICE_HOST:9311"