Merge "Remove remaining logic for identity v2 api"

This commit is contained in:
Zuul 2024-07-22 16:09:02 +00:00 committed by Gerrit Code Review
commit ed789f1822
4 changed files with 9 additions and 6 deletions

View File

@ -318,7 +318,7 @@ Keystone Config parameters
Password to use for the Identity service 'demo' user.
**CONFIG_KEYSTONE_API_VERSION**
Identity service API version string. ['v2.0', 'v3']
Identity service API version string. ['v3']
**CONFIG_KEYSTONE_TOKEN_FORMAT**
Identity service token format (FERNET). Since Rocky, only FERNET is supported. ['FERNET']

View File

@ -125,7 +125,7 @@ def initConfig(controller):
{"CMD_OPTION": "keystone-api-version",
"PROMPT": "Enter the Keystone API version string.",
"OPTION_LIST": ['v2.0', 'v3'],
"OPTION_LIST": ['v3'],
"VALIDATORS": [validators.validate_options],
"DEFAULT_VALUE": 'v3',
"MASK_INPUT": False,

View File

@ -14,9 +14,8 @@ class packstack::provision::tempest ()
}
# Authentication/Keystone
$identity_uri = regsubst(lookup('CONFIG_KEYSTONE_PUBLIC_URL'), 'v3', 'v2.0')
$identity_uri_v3 = regsubst(lookup('CONFIG_KEYSTONE_PUBLIC_URL'), 'v2.0', 'v3')
$auth_version = regsubst(lookup('CONFIG_KEYSTONE_API_VERSION'), '.0', '')
$identity_uri_v3 = lookup('CONFIG_KEYSTONE_PUBLIC_URL')
$auth_version = lookup('CONFIG_KEYSTONE_API_VERSION')
$admin_username = lookup('CONFIG_KEYSTONE_ADMIN_USERNAME')
$admin_password = lookup('CONFIG_KEYSTONE_ADMIN_PW')
$admin_project_name = 'admin'
@ -128,7 +127,6 @@ class packstack::provision::tempest ()
glance_available => $glance_available,
heat_available => $heat_available,
horizon_available => $horizon_available,
identity_uri => $identity_uri,
identity_uri_v3 => $identity_uri_v3,
image_alt_ssh_user => $image_alt_ssh_user,
image_name_alt => $image_name,

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
The ``CONFIG_KEYSTONE_API_VERSION`` parameter no longer accepts ``v2.0``.
Identity v2 API was alreday removed from Keystone.