Fix authentication issue with openstacksdk

Due to a bug in openstacksdk [0], rename the 'token' attribute used for
the auth of the openstack client to 'auth_token'.
'token' was incorrectly set to None by openstacksdk, 'auth_token' is the
same as 'token' but is not impacted by the bug.

[0] https://bugs.launchpad.net/openstacksdk/+bug/2046645

Closes-Bug: #2046711
Change-Id: I9dab5aeb19cf4dc44ff7ee20decf20023b20888b
This commit is contained in:
Gregory Thiemonge 2023-12-17 15:17:36 -05:00
parent c71969ade6
commit 92d72f1220
2 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def get_sdk_connection(request):
auth=dict( auth=dict(
project_id=request.user.project_id, project_id=request.user.project_id,
project_domain_id=request.user.domain_id, project_domain_id=request.user.domain_id,
token=request.user.token.unscoped_token, auth_token=request.user.token.unscoped_token,
auth_url=request.user.endpoint), auth_url=request.user.endpoint),
app_name='octavia-dashboard', app_name='octavia-dashboard',
app_version=octavia_dashboard.__version__) app_version=octavia_dashboard.__version__)

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixed an authentication issue with the OpenStack services. The dashboard
could not get the list of load balancers.