nova/nova/tests/unit/virt
John Garbutt 8a476061c5 Ironic: retry when node not available
After a baremetal instance is deleted, and its allocation is removed
in placement, the ironic node might start cleaning. Eventually nova
will notice and update the inventory to be reserved.
During this window, a new instance may have already picked this
ironic node.

When that race happens today the build fails with an error:
"Failed to reserve node ..."

This change tries to ensure the remaining alternative hosts are
attempted before aborting the build.
Clearly the race is still there, but this makes it less painful.

Related-Bug: #1974070
Change-Id: Ie5cdc17219c86927ab3769605808cb9d9fa9fa4d
2022-12-15 16:33:43 +00:00
..
disk Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
hyperv Remove double mocking 2022-08-02 15:31:15 +02:00
image
ironic Ironic: retry when node not available 2022-12-15 16:33:43 +00:00
libvirt Merge "Adds check for VM snapshot fail while quiesce" 2022-12-03 13:11:20 +00:00
vmwareapi update default overcommit 2022-10-06 12:50:56 +01:00
zvm Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
__init__.py
fakelibosinfo.py Stop sending bad values from libosinfo to libvirt 2019-07-04 15:30:51 +01:00
test_block_device.py block_device: Add encryption attributes to image and ephemeral disks 2022-08-02 21:25:48 +00:00
test_configdrive.py image_meta: Provide image_ref as the id when fetching from instance 2021-05-20 16:57:24 +01:00
test_events.py
test_fake.py
test_hardware.py Add locked_memory extra spec and image property 2022-08-24 21:47:32 +08:00
test_imagecache.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_images.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_netutils.py Don't provide MTU value in metadata service if DHCP is enabled 2022-11-29 15:12:24 +00:00
test_osinfo.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_virt.py virt: Add block_device_info helper to find encrypted disks 2022-08-16 08:01:22 +00:00
test_virt_drivers.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00