When there is an ironic hypervisor, test_schedule_to_all_nodes cannot pass

Bug #1926403 reported by Min Li
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Confirmed
Undecided
Unassigned

Bug Description

tempest.scenario.test_server_multinode.TestServerMultinode.test_schedule_to_all_nodes will create a vm on all the compute nodes included in az, but when there is an ironic type hypervisor, the test fails.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tempest (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/788417

Revision history for this message
Martin Kopec (mkopec) wrote :
Changed in tempest:
status: New → In Progress
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

can you please paste the error logs or traceback

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/791349

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by "Min Li <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/791349

Revision history for this message
Min Li (limin0801) wrote :
Download full text (5.2 KiB)

The nova-compute in my environment:
$ openstack compute service list --service nova-compute
+------+--------------+-----------+-------------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+------+--------------+-----------+-------------+---------+-------+----------------------------+
| 244 | nova-compute | compute02 | az1 | enabled | up | 2021-05-14T02:50:55.000000 |
| 247 | nova-compute | compute01 | az1 | enabled | up | 2021-05-14T02:50:54.000000 |
| 3381 | nova-compute | mgt06 | az1 | enabled | up | 2021-05-14T02:50:53.000000 |
+------+--------------+-----------+-------------+---------+-------+----------------------------+
The service on the mgt06 node is nova-compute of ironic.

When I execute command, `tempest run --regex test_server_multinode.TestServerMultinode.test_schedule_to_all_nodes`, it failed,error logs are:

==============================
Failed 1 tests - output below:
==============================

tempest.scenario.test_server_multinode.TestServerMultinode.test_schedule_to_all_nodes[compute,id-9cecbe35-b9d4-48da-a37e-7ce70aa43d30,network,smoke]
----------------------------------------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/tempest/common/utils/__init__.py", line 89, in wrapper
    return f(*func_args, **func_kwargs)

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/tempest/scenario/test_server_multinode.py", line 71, in test_schedule_to_all_nodes
    availability_zone='%(zone)s:%(host_name)s' % host)

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/tempest/scenario/manager.py", line 214, in create_server
    image_id=image_id, **kwargs)

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/tempest/common/compute.py", line 258, in create_test_server
    server['id'])

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/six.py", line 703, in reraise
    raise value

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/tempest/common/compute.py", line 229, in create_test_server
    clients.servers_client, server['id'], wait_until)

      File "/opt/venvs/tempestenv/lib/python3.6/site-packages/tempest/common/waiters.py", line 76, in wait_for_server_status
    server_id=server_id)

    tempest.exceptions.BuildErrorException: Server ab7ccd0e-e2b2-4b45-9943-ee19044150d5 failed to build and is in ERROR status
Details: {'code': 500, 'created': '2021-05-14T02:35:59Z', '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/...

Read more...

Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

not sure which flavor you are saying is not valid for Ironic. Tempest test use configured flavor in tempest.conf CONF.compute.flavor_ref.

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

This bug report is inactive for more than a year, nobody is assigned to it, and it looks like nobody is working on it. Moving to Confirmed.

Changed in tempest:
status: In Progress → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Change abandoned by "Ghanshyam Mann <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tempest/+/788417
Reason: No activities on this since long time, feel free to restore it if needed.

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.