From 92d72f1220efbe6f21181befbdb3de0d28670af2 Mon Sep 17 00:00:00 2001 From: Gregory Thiemonge Date: Sun, 17 Dec 2023 15:17:36 -0500 Subject: [PATCH] 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 --- octavia_dashboard/sdk_connection.py | 2 +- releasenotes/notes/fix-auth-issue-5226777261765699.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/fix-auth-issue-5226777261765699.yaml diff --git a/octavia_dashboard/sdk_connection.py b/octavia_dashboard/sdk_connection.py index fe36f8e2..87e0e52a 100644 --- a/octavia_dashboard/sdk_connection.py +++ b/octavia_dashboard/sdk_connection.py @@ -43,7 +43,7 @@ def get_sdk_connection(request): auth=dict( project_id=request.user.project_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), app_name='octavia-dashboard', app_version=octavia_dashboard.__version__) diff --git a/releasenotes/notes/fix-auth-issue-5226777261765699.yaml b/releasenotes/notes/fix-auth-issue-5226777261765699.yaml new file mode 100644 index 00000000..fd3b0bc6 --- /dev/null +++ b/releasenotes/notes/fix-auth-issue-5226777261765699.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fixed an authentication issue with the OpenStack services. The dashboard + could not get the list of load balancers.