nova/nova/tests
Vladyslav Drok 54b122caec 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
2016-07-22 18:22:26 +03:00
..
functional Merge "Add block_device_mappings to BuildRequest" 2016-07-19 21:03:35 +00:00
live_migration/hooks Merge "Skip NFS and Ceph in live migration job test run" 2016-06-14 19:48:46 +00:00
unit Update instance node on rebuild only when it is recreate 2016-07-22 18:22:26 +03:00
__init__.py
fixtures.py Transform instance.delete notifications 2016-06-30 16:54:51 +02:00
uuidsentinel.py Add uuidsentinel test module 2015-12-14 11:28:55 +01:00