Blazar failing with keystoneclient 4.5.0

Bug #1975508 reported by Pierre Riteau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blazar
Fix Released
Undecided
Unassigned

Bug Description

All Blazar commands are failing with Internal Server Error. Trace on the blazar-api side:

ERROR blazar.api.v1.utils [None req-d6a8e149-5b61-451f-9437-fa413ee3f71c service blazar] Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/blazar/api/v1/utils.py", line 94, in handler
    return func(flask.request, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/blazar/api/v1/oshosts/v1_0.py", line 42, in computehosts_create
    return api_utils.render(host=_api.create_computehost(data))
  File "/usr/local/lib/python3.8/dist-packages/blazar/utils/__init__.py", line 32, in __run_method
    return getattr(self.instance, __name)(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/blazar/policy.py", line 119, in wrapped
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/blazar/utils/trusts.py", line 91, in wrapped
    trust = create_trust()
  File "/usr/local/lib/python3.8/dist-packages/blazar/utils/trusts.py", line 36, in create_trust
    trust = client.trusts.create(trustor_user=ctx.user_id,
  File "/usr/local/lib/python3.8/dist-packages/keystoneclient/v3/contrib/trusts.py", line 74, in create
    return super(TrustManager, self).create(
  File "/usr/local/lib/python3.8/dist-packages/keystoneclient/base.py", line 86, in func
    return f(*args, **new_kwargs)
  File "/usr/local/lib/python3.8/dist-packages/keystoneclient/base.py", line 383, in create
    return self._post(
  File "/usr/local/lib/python3.8/dist-packages/keystoneclient/base.py", line 192, in _post
    resp, body = self.client.post(url, body=body, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/keystoneauth1/adapter.py", line 401, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/keystoneauth1/adapter.py", line 554, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/keystoneauth1/adapter.py", line 257, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/keystoneclient/session.py", line 370, in request
    raise exceptions.EndpointNotFound(msg)
keystoneauth1.exceptions.catalog.EndpointNotFound: Endpoint for identity service
: keystoneauth1.exceptions.catalog.EndpointNotFound: Endpoint for identity service

This appears to be caused by the upgrade to python-keystoneclient 4.5.0.

Changed in blazar:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to blazar (master)

Reviewed: https://review.opendev.org/c/openstack/blazar/+/843164
Committed: https://opendev.org/openstack/blazar/commit/ce88bac795c23b775ea750be8c358a4c3e3ba587
Submitter: "Zuul (22348)"
Branch: master

commit ce88bac795c23b775ea750be8c358a4c3e3ba587
Author: Jason Anderson <email address hidden>
Date: Wed Apr 14 17:17:46 2021 -0500

    Update keystone client to use base client kwargs

    Change-Id: I700630802e38c7c930d77f5d23786ad81c42f608
    Closes-Bug: #1975508

Changed in blazar:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/blazar 10.0.0.0rc1

This issue was fixed in the openstack/blazar 10.0.0.0rc1 release candidate.

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.