[octavia-dashboard] barbicanclient is broken

Bug #2023534 reported by Gregory Thiemonge
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
octavia
Fix Committed
Medium
Tom Weininger

Bug Description

in octavia-dashboard, the internal plugin for barbican is broken.
When creating a listener, the TERMINATED-HTTPS protocol cannot be selected (it is disabled in case of issues with barbicanclient)

In the horizon logs (/var/log/httpd/horizon_error.log):

2023-06-12 07:50:50.603951 /usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py:244: UserWarning: Using keystoneclient sessions has been deprecated. Please update your software to use keystoneauth1.
2023-06-12 07:50:50.603970 warnings.warn('Using keystoneclient sessions has been deprecated. '
2023-06-12 07:50:50.604096 DEBUG keystoneclient.session REQ: curl -g -i -X GET http://192.168.1.101/key-manager/v1/secrets -H "Accept: application/json" -H "X-Auth-Token: {SHA1}e684993378ff205d2adc4ddc8f74059e35e47169" -H "User-Agent: python-keystoneclient"
2023-06-12 07:50:50.604527 ERROR openstack_dashboard.api.rest.utils error invoking apiclient
2023-06-12 07:50:50.604534 Traceback (most recent call last):
2023-06-12 07:50:50.604536 File "/opt/stack/horizon/openstack_dashboard/api/rest/utils.py", line 128, in _wrapped
2023-06-12 07:50:50.604538 data = function(self, request, *args, **kw)
2023-06-12 07:50:50.604540 File "/opt/stack/octavia-dashboard/octavia_dashboard/api/rest/barbican.py", line 86, in get
2023-06-12 07:50:50.604542 result = secrets._api.get('secrets', params=params)
2023-06-12 07:50:50.604544 File "/usr/local/lib/python3.9/site-packages/barbicanclient/client.py", line 70, in get
2023-06-12 07:50:50.604546 return super(_HTTPClient, self).get(*args, **kwargs).json()
2023-06-12 07:50:50.604548 File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 395, in get
2023-06-12 07:50:50.604550 return self.request(url, 'GET', **kwargs)
2023-06-12 07:50:50.604552 File "/usr/local/lib/python3.9/site-packages/barbicanclient/client.py", line 62, in request
2023-06-12 07:50:50.604554 resp = super(_HTTPClient, self).request(*args, **kwargs)
2023-06-12 07:50:50.604556 File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 257, in request
2023-06-12 07:50:50.604558 return self.session.request(url, method, **kwargs)
2023-06-12 07:50:50.604560 File "/usr/local/lib/python3.9/site-packages/keystoneclient/session.py", line 428, in request
2023-06-12 07:50:50.604561 resp = send(**kwargs)
2023-06-12 07:50:50.604563 File "/usr/local/lib/python3.9/site-packages/keystoneclient/session.py", line 462, in _send_request
2023-06-12 07:50:50.604565 resp = self.session.request(method, url, **kwargs)
2023-06-12 07:50:50.604567 TypeError: request() got an unexpected keyword argument 'microversion'
2023-06-12 07:50:50.604933 ERROR django.request Internal Server Error: /dashboard/api/octavia-barbican/secrets/

Changed in octavia:
status: New → In Progress
Tom Weininger (tweining)
Changed in octavia:
assignee: nobody → Tom Weininger (tweining)
importance: Undecided → Medium
Revision history for this message
Tom Weininger (tweining) wrote :
Revision history for this message
Tom Weininger (tweining) wrote :

The fix was merged and backported to 2023.1.

Changed in octavia:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/octavia-dashboard 12.0.0.0rc1

This issue was fixed in the openstack/octavia-dashboard 12.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to octavia-dashboard (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/octavia-dashboard/+/887027
Committed: https://opendev.org/openstack/octavia-dashboard/commit/fa8fbcfcf83a0d3ea7b3431d8381d6bd13bfca1a
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit fa8fbcfcf83a0d3ea7b3431d8381d6bd13bfca1a
Author: Tom Weininger <email address hidden>
Date: Tue Jun 13 11:05:13 2023 +0200

    Fix error related to barbicanclient

    Octavia Dashboard used protected barbicanclient API that seems to be
    broken now. Fixing that by replacing barbicanclient by future-proof
    openstacksdk.

    Closes-Bug: #2023534
    Change-Id: I882869ef0f5b6381372e3447af7ca1981ca02d65
    (cherry picked from commit 6fb6871ee0fe22b4e661edf8edc5a93129affa98)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.