nova/nova/tests/unit/compute
Vladyslav Drok 97d784b454 Update instance node on rebuild only when it is recreate
When using ironic virt driver, if scheduled_node is not specified
in rebuild_instance compute manager method (as it happens in case
of instance rebuild), the first ironic node is selected:

 computes = ComputeNodeList.get_all_by_host(context, host, use_slave)
 return computes[0]

After the first rebuild, instance.node is updated to be this first
ironic node, which causes subsequent rebuilds to fail, as virt driver
tries to set instance_uuid on a newly selected ironic node and fails.

Closes-bug: #1564921
Change-Id: I2fe6e439135ba6aa4120735d030ced31081ef202
(cherry picked from commit 54b122caec)
2016-09-23 16:33:40 -04: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 Remove extensible resource tracking 2016-04-01 16:45:34 +01:00
test_arch.py
test_claims.py Use flavor attributes instead of deprecated instance resources 2016-07-12 08:47:56 -07:00
test_compute.py Merge "Move cell message queue switching and add caching" 2016-09-01 21:49:23 +00:00
test_compute_api.py Update BuildRequest if instance currently being scheduled 2016-09-12 22:31:50 +02:00
test_compute_cells.py Handle ObjectActionError during cells instance delete 2016-09-08 15:42:36 -04:00
test_compute_mgr.py Update instance node on rebuild only when it is recreate 2016-09-23 16:33:40 -04:00
test_compute_utils.py Transform instance.delete notifications 2016-06-30 16:54:51 +02:00
test_compute_xen.py Merge "Remove mox from tests/unit/compute/test_compute_xen.py" 2016-05-18 12:25:03 +00:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Remove compute host from all host aggregates when compute service is deleted 2016-07-16 22:19:44 +03:00
test_hvtype.py Add 'lxd' to the list of recognized hypervisors 2015-11-17 08:56:20 +00:00
test_keypairs.py 'limit' and 'marker' support for db_api and keypair_obj 2016-07-12 14:25:33 +03:00
test_multiple_nodes.py remove the use of import_object_ns 2016-04-22 13:44:39 -04:00
test_resource_tracker.py Ensure ResourceProvider/Inventory created before add Allocations record 2016-09-08 19:57:49 +08:00
test_rpcapi.py Move cell message queue switching and add caching 2016-08-31 22:33:17 +00:00
test_shelve.py Transform instance.shelve notifications 2016-07-07 09:44:11 +02:00
test_stats.py Address nits in Ia2296302 2016-03-08 16:48:08 +00:00
test_virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00
test_vmmode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00