test_unshelve_to_specific_host tries to unshelve vm to host from different aggregate

Bug #2055863 reported by Cyprian Kleist
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
New
Undecided
Unassigned

Bug Description

In case of OpenStack deployment with multiple host aggregates (e.g. computes with local disk nova backend and rbd nova backend) and flavors specific for each aggregate, the `test_unshelve_to_specific_host` randomly fails. The reason is that method `get_host_other_than` pick hypervisor randomly, and sometimes it pick one from other aggregate than original. As a consequence the unshelving fails, because hypervisor does not match flavor of VM.

The expected behaviour is that other host is picked from the same aggregate and test passes every time.

Steps to reproduce:

* Create OpenStack deployment with two host aggregates (A and B) and corresponding flavors (flavA and flavB)
* Use in tempest config flavor (flavA) corresponding with one of the aggregates (A)
* run `test_unshelve_to_specific_host` to observe random failing
* disable all computes from aggregate B
* run test again to observe that now it's passing every time

Versions:
* tempest 36.0.0
* openstack 2023.2 bobcat

Revision history for this message
Cyprian Kleist (ckleist) wrote :
Cyprian Kleist (ckleist)
description: updated
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.