nova/nova/tests/unit/compute
Jim Rollenhagen 6be5a27b36 ironic: add instance_uuid before any other spawn activity
In the baremetal use case, it is necessary to allow a remote
source of truth assert information about a physical node,
as opposed to a client asserting desired configuration.

As such, the prepare_networks_before_block_device_mapping virt
driver method was added, however in doing so network VIF attaching
was moved before actual hardware reservation. As ironic only
supports users to have a number of VIFs limited by the number
of network interfaces in the physical node, VIF attach actions
cannot be performed without first asserting control over the node.

Adding an "instance_uuid" upfront allows other ironic API consumers
to be aware that a node is now in use. Alternatively it also allows
nova to become aware prior to adding network information on the node
that the node may already be in use by an external user.

Co-Authored-By: Julia Kreger <juliaashleykreger@gmail.com>

Conflicts:
    nova/tests/unit/compute/test_compute_mgr.py

NOTE(melwitt): The conflict is because change
I755b6fdddc9d754326cd9c81b6880581641f73e8 is not in Queens.

Closes-Bug: #1766301
Change-Id: I87f085589bb663c519650f307f25d087c88bbdb1
(cherry picked from commit e45c5ec819)
2020-07-28 10:40:05 +01:00
..
monitors Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py
eventlet_utils.py
fake_resource_tracker.py rt: explicitly pass compute node to _update() 2017-01-12 11:30:03 -08:00
test_claims.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
test_compute.py Replace non-nova server fault message 2019-08-06 12:02:34 -04:00
test_compute_api.py Fix non-existent method of Mock 2019-08-16 10:27:22 +09:00
test_compute_cells.py Fix host validity check for live-migration 2018-08-09 16:31:58 +05:30
test_compute_mgr.py ironic: add instance_uuid before any other spawn activity 2020-07-28 10:40:05 +01:00
test_compute_utils.py Bump compute RPC API to version 5.0 2018-02-08 10:43:56 -08:00
test_compute_xen.py Make xen unit tests work with os-xenapi>=0.3.0 2017-09-05 16:06:31 -04:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Make nova service-list use scatter-gather routine 2018-06-29 12:22:37 +00:00
test_instance_list.py Make nova list and migration-list ignore down cells 2018-06-26 18:44:47 +02:00
test_keypairs.py Transform keypair.import notification 2017-10-30 16:44:29 -04:00
test_multi_cell_list.py Some nit fix in multi_cell_list 2017-12-13 14:27:20 +08:00
test_provider_tree.py ProviderTree.get_provider_uuids: Top-down ordering 2018-01-31 08:35:35 -06:00
test_resource_tracker.py rt: only map compute node if we created it 2019-10-23 11:57:45 -04:00
test_rpcapi.py Compute RPC client bump to 5.0 2018-02-08 12:10:04 -08:00
test_shelve.py Fix shelving a paused instance 2018-05-20 22:11:04 +00:00
test_stats.py Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
test_virtapi.py Fix cancel_all_events event name parsing 2018-08-21 11:04:00 -07:00