When using nova version 2.56, tempest failed

Bug #1914890 reported by Min Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
New
Undecided
Unassigned

Bug Description

I did this test based on the watcher victoria version,since the Nova version Watcher neede is at least 2.56, I configured CONF.compute.min_microversion to 2.56, but in the scenario test, the following error occurred:

  File "/usr/local/lib/python3.8/dist-packages/watcher_tempest_plugin/tests/scenario/base.py", line 238, in _create_one_instance_per_host_with_statistic
    instance = self.create_server(
  File "/usr/local/lib/python3.8/dist-packages/watcher_tempest_plugin/tests/scenario/manager.py", line 191, in create_server
    tenant_network = self.get_tenant_network()
  File "/usr/local/lib/python3.8/dist-packages/tempest/test.py", line 876, in get_tenant_network
    return fixed_network.get_tenant_network(
  File "/usr/local/lib/python3.8/dist-packages/tempest/lib/common/fixed_network.py", line 104, in get_tenant_network
    network = get_network_from_name(shared_network_name,
  File "/usr/local/lib/python3.8/dist-packages/tempest/lib/common/fixed_network.py", line 40, in get_network_from_name
    networks = compute_networks_client.list_networks()['networks']
  File "/usr/local/lib/python3.8/dist-packages/tempest/lib/services/compute/networks_client.py", line 25, in list_networks
    resp, body = self.get("os-networks")
  File "/usr/local/lib/python3.8/dist-packages/tempest/lib/common/rest_client.py", line 313, in get
    return self.request('GET', url, extra_headers, headers)
  File "/usr/local/lib/python3.8/dist-packages/tempest/lib/services/compute/base_compute_client.py", line 47, in request
    resp, resp_body = super(BaseComputeClient, self).request(
  File "/usr/local/lib/python3.8/dist-packages/tempest/lib/common/rest_client.py", line 702, in request
    self._error_checker(resp, resp_body)
  File "/usr/local/lib/python3.8/dist-packages/tempest/lib/common/rest_client.py", line 808, in _error_checker
    raise exceptions.NotFound(resp_body, resp=resp)
tempest.lib.exceptions.NotFound: Object not found
Details: {'code': 404, 'message': 'The resource could not be found.'}

This is because the "os-networks" api was deprecated since Nova version 2.36. Does this mean that watcher-tempest-plugin is not compatible with tempest?
Refer to: https://docs.openstack.org/api-ref/compute/#list-networks

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.