From 98581a04d5ec74a9257dbdad0cb41f594257700b Mon Sep 17 00:00:00 2001 From: Jadon Naas Date: Tue, 19 Sep 2023 17:28:16 -0400 Subject: [PATCH] Update default Keystone api_version This change moves the default return value for the Keystone api_version to 3.0 instead of 2.0. By this point in time, all supported OpenStack releases use Keystone API version 3.0 instead of 2.0. This was previously causing Nova templates to render with 2.0 in the Keystone auth URL instead of 3.0, which caused auth failures. Closes-Bug: 1995778 Change-Id: I6463a24fe4aaa654a58cff56720a55f0950db717 --- hooks/nova_cc_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/nova_cc_hooks.py b/hooks/nova_cc_hooks.py index 96d0a42f..3ab71268 100755 --- a/hooks/nova_cc_hooks.py +++ b/hooks/nova_cc_hooks.py @@ -533,7 +533,7 @@ def _auth_config(): 'keystone_host': ks_auth_host, 'service_tenant': ncc_utils.auth_token_config('admin_tenant_name'), # add api version if found - 'api_version': ncc_utils.auth_token_config('api_version') or '2.0', + 'api_version': ncc_utils.auth_token_config('api_version') or '3.0', 'admin_domain_name': ncc_utils.auth_token_config('admin_domain_name') } return cfg