Remove remaining logic for identity v2 api

Change-Id: I1da80c66b0d01cefd5ac1cb89a75cec00e596bb4
This commit is contained in:
Takashi Kajinami 2024-05-13 15:07:55 +09:00
parent 0c13846794
commit c507493cc6
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.