nova/nova/tests/unit/virt/ironic
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
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_client_wrapper.py Use unittest.mock instead of third party mock 2022-08-01 17:46:26 +02:00
test_driver.py Ironic: retry when node not available 2022-12-15 16:33:43 +00:00
test_patcher.py Pushing image traits to ironic node 2018-05-18 18:05:25 -07:00
utils.py Introduces SDK to IronicDriver and uses for node.get 2019-08-23 14:23:43 -05:00