Missing service_type in endpoint filtering data

Bug #1942330 reported by Ayumu Ueha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blazar
Fix Released
Critical
Sam Morrison

Bug Description

Hi, Blazar team,
I'm Ueha from tacker team, we are using python-blazarclient and we started getting errors a few days ago.

I see below patch [1] that merged in Aug 27.

[1] https://review.opendev.org/c/openstack/python-blazarclient/+/781592

As a patch[1] change, "service_type" is added to the argument of the Client class, but it is not used in the Client class.
Originally, "service_type" was specified in *args, but the patch seems to prevent "service_type" from being passed to "importutils.import_object()".

This causes the following error:

```
tacker.tests.functional.legacy.vnfm.test_tosca_vnf_reservation.VnfTestReservationMonitor.test_vnf_alarm_scale_with_instance_reservationtesttools.testresult.real._StringException: pythonlogging:'': {{{2021-08-31 15:23:05,503 73222 WARNING [keystoneauth.identity.base] Plugin cannot return an endpoint without knowing the service type that is required. Add service_type to endpoint filtering data.}}}

Traceback (most recent call last):

  File "/home/zuul/src/opendev.org/openstack/tacker/tacker/tests/functional/legacy/vnfm/test_tosca_vnf_reservation.py", line 224, in test_vnf_alarm_scale_with_instance_reservation
    instance_reservation, blazar_host = self._get_instance_reservation()
  File "/home/zuul/src/opendev.org/openstack/tacker/tacker/tests/functional/legacy/vnfm/test_tosca_vnf_reservation.py", line 197, in _get_instance_reservation
    blazar_host = blazarclient.host.create(
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/dsvm-functional-legacy/lib/python3.8/site-packages/blazarclient/v1/hosts.py", line 27, in create
    resp, body = self.request_manager.post('/os-hosts', body=values)
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/dsvm-functional-legacy/lib/python3.8/site-packages/keystoneauth1/adapter.py", line 401, in post
    return self.request(url, 'POST', **kwargs)
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/dsvm-functional-legacy/lib/python3.8/site-packages/blazarclient/base.py", line 117, in request
    resp, body = super(SessionClient, self).request(
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/dsvm-functional-legacy/lib/python3.8/site-packages/keystoneauth1/adapter.py", line 554, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/dsvm-functional-legacy/lib/python3.8/site-packages/keystoneauth1/adapter.py", line 257, in request
    return self.session.request(url, method, **kwargs)
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/dsvm-functional-legacy/lib/python3.8/site-packages/keystoneauth1/session.py", line 815, in request
    raise exceptions.EndpointNotFound()
keystoneauth1.exceptions.catalog.EndpointNotFound: Could not find requested endpoint in Service Catalog.
```

Thanks.

Pierre Riteau (priteau)
Changed in blazar:
status: New → Incomplete
status: Incomplete → Confirmed
importance: Undecided → Critical
assignee: nobody → Sam Morrison (sorrison)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-blazarclient 3.3.1

This issue was fixed in the openstack/python-blazarclient 3.3.1 release.

Revision history for this message
Ayumu Ueha (ueha) wrote :

Thanks for the quick fix! The error no longer occurs now.

Revision history for this message
Pierre Riteau (priteau) wrote :

Thanks a lot for the report!

Pierre Riteau (priteau)
Changed in blazar:
status: Confirmed → Fix Released
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.