The testcase `test_schedule_to_all_nodes` should consider the compute hosts with `ironic` driver

Bug #1953000 reported by Eric Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Expired
Undecided
Unassigned

Bug Description

There are one compute host with `ironic` not `libvirt`, get error when executing the testcase `tempest.scenario.test_server_multinode.TestServerMultinode.test_schedule_to_all_nodes`.

The log:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/tempest/common/utils/__init__.py", line 89, in wrapper
    return f(*func_args, **func_kwargs)
  File "/usr/local/lib/python3.8/dist-packages/tempest/scenario/test_server_multinode.py", line 69, in test_schedule_to_all_nodes
    inst = self.create_server(
  File "/usr/local/lib/python3.8/dist-packages/tempest/scenario/manager.py", line 294, in create_server
    body, _ = compute.create_test_server(
  File "/usr/local/lib/python3.8/dist-packages/tempest/common/compute.py", line 270, in create_test_server
    LOG.exception('Server %s failed to delete in time',
  File "/usr/local/lib/python3.8/dist-packages/oslo_utils/excutils.py", line 227, in __exit__
    self.force_reraise()
  File "/usr/local/lib/python3.8/dist-packages/oslo_utils/excutils.py", line 200, in force_reraise
    raise self.value
  File "/usr/local/lib/python3.8/dist-packages/tempest/common/compute.py", line 241, in create_test_server
    waiters.wait_for_server_status(
  File "/usr/local/lib/python3.8/dist-packages/tempest/common/waiters.py", line 75, in wait_for_server_status
    raise exceptions.BuildErrorException(body['fault'],
tempest.exceptions.BuildErrorException: Server af29f0fa-2e56-406e-9683-1656d1e6fd9c failed to build and is in ERROR status
Details: {'code': 500, 'created': '2021-12-02T03:51:12Z', 'message': 'No valid host was found. No such host - host: mgt06 node: None ', 'details': 'Traceback (most recent call last):\n File "/var/lib/openstack/lib/python3.8/site-packages/nova/conductor/manager.py", line 1516, in schedule_and_build_instances\n host_lists = self._schedule_instances(context, request_specs[0],\n File "/var/lib/openstack/lib/python3.8/site-packages/nova/conductor/manager.py", line 887, in _schedule_instances\n host_lists = self.query_client.select_destinations(\n File "/var/lib/openstack/lib/python3.8/site-packages/nova/scheduler/client/query.py", line 41, in select_destinations\n return self.scheduler_rpcapi.select_destinations(context, spec_obj,\n File "/var/lib/openstack/lib/python3.8/site-packages/nova/scheduler/rpcapi.py", line 160, in select_destinations\n return cctxt.call(ctxt, \'select_destinations\', **msg_args)\n File "/var/lib/openstack/lib/python3.8/site-packages/oslo_messaging/rpc/client.py", line 175, in call\n self.transport._send(self.target, msg_ctxt, msg,\n File "/var/lib/openstack/lib/python3.8/site-packages/oslo_messaging/transport.py", line 123, in _send\n return self._driver.send(target, ctxt, message,\n File "/var/lib/openstack/lib/python3.8/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 652, in send\n return self._send(target, ctxt, message, wait_for_reply, timeout,\n File "/var/lib/openstack/lib/python3.8/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 644, in _send\n raise result\nnova.exception_Remote.NoValidHost_Remote: No valid host was found. No such host - host: mgt06 node: None \nTraceback (most recent call last):\n\n File "/var/lib/openstack/lib/python3.8/site-packages/oslo_messaging/rpc/server.py", line 241, in inner\n return func(*args, **kwargs)\n\n File "/var/lib/openstack/lib/python3.8/site-packages/nova/scheduler/manager.py", line 154, in select_destinations\n resources = utils.resources_from_request_spec(\n\n File "/var/lib/openstack/lib/python3.8/site-packages/nova/scheduler/utils.py", line 664, in resources_from_request_spec\n raise exception.NoValidHost(reason=reason)\n\nnova.exception.NoValidHost: No valid host was found. No such host - host: mgt06 node: None \n\n'}

Revision history for this message
Lukas Piwowarski (lukas-piwowarski) wrote :

Hi, thanks for the report. Can you provide more detailed information about how to reproduce the error? It would be helpful if you went through these steps:

1) Describe the error and the expected behaviour.
2) What OS did you run into the issue on?
3) Specify the steps to reproduce the bug.
4) Attach tempest.conf. (Extra options -> Attachment)

Revision history for this message
Lukas Piwowarski (lukas-piwowarski) wrote :

I'm moving this to Incomplete due to long inactivity and missing information. Feel free to reopen this at any time.

Changed in tempest:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tempest because there has been no activity for 60 days.]

Changed in tempest:
status: Incomplete → Expired
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.