Random failure of test test_aggregate_basic_ops with host already has 1 instance(s). Changing the AZ of an existing instance is not supported by this action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Failing as:-
2025-02-05 09:06:26.660305 | controller | Traceback (most recent call last):
2025-02-05 09:06:26.660311 | controller |
2025-02-05 09:06:26.660315 | controller | File "/opt/stack/
2025-02-05 09:06:26.660326 | controller | return f(*func_args, **func_kwargs)
2025-02-05 09:06:26.660330 | controller |
2025-02-05 09:06:26.660334 | controller | File "/opt/stack/
2025-02-05 09:06:26.660338 | controller | self._add_
2025-02-05 09:06:26.660342 | controller |
2025-02-05 09:06:26.660346 | controller | File "/opt/stack/
2025-02-05 09:06:26.660350 | controller | aggregate = (self.aggregate
2025-02-05 09:06:26.660354 | controller |
2025-02-05 09:06:26.660358 | controller | File "/opt/stack/
2025-02-05 09:06:26.660362 | controller | resp, body = self.post(
2025-02-05 09:06:26.660366 | controller |
2025-02-05 09:06:26.660370 | controller | File "/opt/stack/
2025-02-05 09:06:26.660373 | controller | resp_header, resp_body = self.request(
2025-02-05 09:06:26.660377 | controller |
2025-02-05 09:06:26.660381 | controller | File "/opt/stack/
2025-02-05 09:06:26.660386 | controller | resp, resp_body = super(BaseCompu
2025-02-05 09:06:26.660390 | controller |
2025-02-05 09:06:26.660393 | controller | File "/opt/stack/
2025-02-05 09:06:26.660397 | controller | self._error_
2025-02-05 09:06:26.660401 | controller |
2025-02-05 09:06:26.660405 | controller | File "/opt/stack/
2025-02-05 09:06:26.660409 | controller | raise exceptions.
2025-02-05 09:06:26.660412 | controller |
2025-02-05 09:06:26.660416 | controller | tempest.
2025-02-05 09:06:26.660433 | controller | Details: {'code': 409, 'message': "Cannot add host to aggregate 19. Reason: The host cannot be added to the aggregate as the availability zone of the host would change from 'None' to 'foo_zone' but the host already has 1 instance(s). Changing the AZ of an existing instance is not supported by this action. Move the instances away from this host then try again. If you need to move the instances between AZs then you can use shelve_offload and unshelve to achieve this.."}
Example failures:
https:/
https:/
https:/
https:/
https:/
The tests are running serially but the previous tests not waiting for instance Delete[1] so this test fails as expect no instance to be running. I see there is a method[2] in base class which also wait for server delete, using that should resolve it.
[1] https:/
[2] https:/
Fix proposed to branch: master /review. opendev. org/c/openstack /tempest/ +/941077
Review: https:/