stable/zed nova.tests.functional.wsgi.test_services.TestServicesAPI.test_resize_revert_after_deleted_source_compute sporadic failures
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
A strange failure happens for one of my patches: nova.tests.
Logs and traces are available at https:/
2023-04-21 06:27:36.066489 | ubuntu-focal | Captured traceback:
2023-04-21 06:27:36.066493 | ubuntu-focal | ~~~~~~~~~~~~~~~~~~~
2023-04-21 06:27:36.066497 | ubuntu-focal | Traceback (most recent call last):
2023-04-21 06:27:36.066502 | ubuntu-focal |
2023-04-21 06:27:36.066506 | ubuntu-focal | File "/home/
2023-04-21 06:27:36.066511 | ubuntu-focal | server = self._boot_
2023-04-21 06:27:36.066516 | ubuntu-focal |
2023-04-21 06:27:36.066520 | ubuntu-focal | File "/home/
2023-04-21 06:27:36.066552 | ubuntu-focal | server = self._wait_
2023-04-21 06:27:36.066556 | ubuntu-focal |
2023-04-21 06:27:36.066560 | ubuntu-focal | File "/home/
2023-04-21 06:27:36.066564 | ubuntu-focal | return self._wait_
2023-04-21 06:27:36.066569 | ubuntu-focal |
2023-04-21 06:27:36.066573 | ubuntu-focal | File "/home/
2023-04-21 06:27:36.066578 | ubuntu-focal | server = api.get_
2023-04-21 06:27:36.066582 | ubuntu-focal |
2023-04-21 06:27:36.066586 | ubuntu-focal | File "/home/
2023-04-21 06:27:36.066591 | ubuntu-focal | return self.api_
2023-04-21 06:27:36.066595 | ubuntu-focal |
2023-04-21 06:27:36.066599 | ubuntu-focal | File "/home/
2023-04-21 06:27:36.066603 | ubuntu-focal | return APIResponse(
2023-04-21 06:27:36.066608 | ubuntu-focal |
2023-04-21 06:27:36.066612 | ubuntu-focal | File "/home/
2023-04-21 06:27:36.066616 | ubuntu-focal | raise OpenStackApiNot
2023-04-21 06:27:36.066621 | ubuntu-focal |
2023-04-21 06:27:36.066625 | ubuntu-focal | nova.tests.
In Nova logs I can see that hypervisor and instance itself simply disappeared after successfull startup, so nova-api returned 404:
2023-04-21 06:26:17.760125 | ubuntu-focal | 2023-04-21 06:26:14,598 INFO [nova.api.
2023-04-21 06:26:17.760129 | ubuntu-focal | 2023-04-21 06:26:14,683 INFO [placement.
2023-04-21 06:26:17.760136 | ubuntu-focal | 2023-04-21 06:26:14,711 INFO [nova.scheduler
2023-04-21 06:26:17.760140 | ubuntu-focal | 2023-04-21 06:26:14,718 INFO [placement.
2023-04-21 06:26:17.760148 | ubuntu-focal | 2023-04-21 06:26:14,764 INFO [placement.
2023-04-21 06:26:17.760152 | ubuntu-focal | 2023-04-21 06:26:17,081 INFO [nova.api.
2023-04-21 06:26:17.760156 | ubuntu-focal | 2023-04-21 06:26:17,128 INFO [placement.
2023-04-21 06:26:17.760160 | ubuntu-focal | 2023-04-21 06:26:17,131 INFO [nova.compute.
2023-04-21 06:26:17.760167 | ubuntu-focal | 2023-04-21 06:26:17,169 INFO [placement.
2023-04-21 06:26:17.760171 | ubuntu-focal | 2023-04-21 06:26:17,176 INFO [placement.
2023-04-21 06:26:17.760175 | ubuntu-focal | 2023-04-21 06:26:17,260 INFO [nova.compute.
2023-04-21 06:26:17.760179 | ubuntu-focal | 2023-04-21 06:26:17,281 INFO [nova.compute.
2023-04-21 06:26:17.760183 | ubuntu-focal | 2023-04-21 06:26:17,331 INFO [nova.scheduler
2023-04-21 06:26:17.760187 | ubuntu-focal | 2023-04-21 06:26:17,592 INFO [nova.api.
2023-04-21 06:26:17.760191 | ubuntu-focal | 2023-04-21 06:26:17,594 INFO [nova.api.
I took a look at history of nova-tox- functional- py38 tests for stable/zed and it looks like this failure is rare (I wasn't able to find same failures). At the same time it looks like clear race condition that deserves a second look.