Unexpected content type provided for tempest alarm related tests

Bug #1980535 reported by Konstantinos Kaskavelis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
New
Undecided
Unassigned

Bug Description

We are getting failures in the following tests:

test_alarm_list, test_create_update_get_delete_alarm, test_set_get_alarm_state, test_get_non_existent_alarm

with the following error:

Traceback (most recent call last):
  File "/home/ubuntu/snap/fcbtest/29/.rally/verification/verifier-34427a6e-ad45-4f69-9442-776135b973b6/repo/tempest/test.py", line 181, in setUpClass
    raise value.with_traceback(trace)
  File "/home/ubuntu/snap/fcbtest/29/.rally/verification/verifier-34427a6e-ad45-4f69-9442-776135b973b6/repo/tempest/test.py", line 174, in setUpClass
    cls.resource_setup()
  File "/snap/fcbtest/29/lib/python3.6/site-packages/telemetry_tempest_plugin/aodh/api/test_alarming_api.py", line 38, in resource_setup
    cls.create_alarm(event_rule=cls.rule)
  File "/snap/fcbtest/29/lib/python3.6/site-packages/telemetry_tempest_plugin/aodh/api/base.py", line 49, in create_alarm
    type=type, **kwargs)
  File "/snap/fcbtest/29/lib/python3.6/site-packages/telemetry_tempest_plugin/aodh/service/client.py", line 78, in create_alarm
    resp, body = self.post(uri, body)
  File "/home/ubuntu/snap/fcbtest/29/.rally/verification/verifier-34427a6e-ad45-4f69-9442-776135b973b6/repo/tempest/lib/common/rest_client.py", line 299, in post
    return self.request('POST', url, extra_headers, headers, body, chunked)
  File "/home/ubuntu/snap/fcbtest/29/.rally/verification/verifier-34427a6e-ad45-4f69-9442-776135b973b6/repo/tempest/lib/common/rest_client.py", line 703, in request
    self._error_checker(resp, resp_body)
  File "/home/ubuntu/snap/fcbtest/29/.rally/verification/verifier-34427a6e-ad45-4f69-9442-776135b973b6/repo/tempest/lib/common/rest_client.py", line 794, in _error_checker
    resp=resp)
tempest.lib.exceptions.UnexpectedContentType: Unexpected content type provided
Details: 400

Logs from nova-compute.log:

2022-06-29 23:20:58.979 235346 ERROR nova Traceback (most recent call last):
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/identity/generic/base.py", line 136, in _do_create_plugin
2022-06-29 23:20:58.979 235346 ERROR nova disc = self.get_discovery(session,
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 608, in get_discovery
2022-06-29 23:20:58.979 235346 ERROR nova return discover.get_discovery(session=session, url=url,
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/discover.py", line 1452, in get_discovery
2022-06-29 23:20:58.979 235346 ERROR nova disc = Discover(session, url, authenticated=authenticated)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/discover.py", line 535, in __init__
2022-06-29 23:20:58.979 235346 ERROR nova self._data = get_version_data(session, url,
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/discover.py", line 102, in get_version_data
2022-06-29 23:20:58.979 235346 ERROR nova resp = session.get(url, headers=headers, authenticated=authenticated)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1123, in get
2022-06-29 23:20:58.979 235346 ERROR nova return self.request(url, 'GET', **kwargs)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 968, in request
2022-06-29 23:20:58.979 235346 ERROR nova raise exceptions.from_response(resp, method, url)
2022-06-29 23:20:58.979 235346 ERROR nova keystoneauth1.exceptions.http.BadRequest: Bad Request (HTTP 400)
2022-06-29 23:20:58.979 235346 ERROR nova
2022-06-29 23:20:58.979 235346 ERROR nova During handling of the above exception, another exception occurred:
2022-06-29 23:20:58.979 235346 ERROR nova
2022-06-29 23:20:58.979 235346 ERROR nova Traceback (most recent call last):
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/bin/nova-compute", line 10, in <module>
2022-06-29 23:20:58.979 235346 ERROR nova sys.exit(main())
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/nova/cmd/compute.py", line 56, in main
2022-06-29 23:20:58.979 235346 ERROR nova server = service.Service.create(binary='nova-compute',
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/nova/service.py", line 266, in create
2022-06-29 23:20:58.979 235346 ERROR nova service_obj = cls(host, binary, topic, manager,
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/nova/service.py", line 128, in __init__
2022-06-29 23:20:58.979 235346 ERROR nova self.manager = manager_class(host=self.host, *args, **kwargs)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/nova/compute/manager.py", line 569, in __init__
2022-06-29 23:20:58.979 235346 ERROR nova self.reportclient = report.SchedulerReportClient()
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/nova/scheduler/client/report.py", line 186, in __init__
2022-06-29 23:20:58.979 235346 ERROR nova self._client = self._create_client()
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/nova/scheduler/client/report.py", line 229, in _create_client
2022-06-29 23:20:58.979 235346 ERROR nova client = self._adapter or utils.get_sdk_adapter('placement')
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/nova/utils.py", line 1079, in get_sdk_adapter
2022-06-29 23:20:58.979 235346 ERROR nova return getattr(conn, service_type)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/openstack/service_description.py", line 93, in __get__
2022-06-29 23:20:58.979 235346 ERROR nova endpoint = proxy_mod.Proxy.get_endpoint(proxy)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 282, in get_endpoint
2022-06-29 23:20:58.979 235346 ERROR nova return self.session.get_endpoint(auth or self.auth, **kwargs)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1225, in get_endpoint
2022-06-29 23:20:58.979 235346 ERROR nova return auth.get_endpoint(self, **kwargs)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 375, in get_endpoint
2022-06-29 23:20:58.979 235346 ERROR nova endpoint_data = self.get_endpoint_data(
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 271, in get_endpoint_data
2022-06-29 23:20:58.979 235346 ERROR nova service_catalog = self.get_access(session).service_catalog
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 134, in get_access
2022-06-29 23:20:58.979 235346 ERROR nova self.auth_ref = self.get_auth_ref(session)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/identity/generic/base.py", line 206, in get_auth_ref
2022-06-29 23:20:58.979 235346 ERROR nova self._plugin = self._do_create_plugin(session)
2022-06-29 23:20:58.979 235346 ERROR nova File "/usr/lib/python3/dist-packages/keystoneauth1/identity/generic/base.py", line 158, in _do_create_plugin
2022-06-29 23:20:58.979 235346 ERROR nova raise exceptions.DiscoveryFailure(
2022-06-29 23:20:58.979 235346 ERROR nova keystoneauth1.exceptions.discovery.DiscoveryFailure: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Bad Request (HTTP 400)

Test run:

https://solutions.qa.canonical.com/testruns/testRun/c552543f-1e0b-4793-bfa5-1a90d35abf9f

tags: added: cdo-qa
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.