nova/nova
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
..
CA
api Merge "Replace deprecated LOG.warn with LOG.warning" 2016-07-20 16:31:12 +00:00
cells Refactor block_device_mapping handling during boot 2016-07-05 14:38:21 -04:00
cert
cloudpipe Port test_pipelib and test_policy to Python 3 2016-06-23 10:38:10 +02:00
cmd Merge "Deprecate nova-manage vm list command" 2016-07-11 15:23:47 +00:00
common
compute Update instance node on rebuild only when it is recreate 2016-07-22 18:22:26 +03:00
conductor Merge "Stop instance build if BuildRequest deleted" 2016-07-21 00:30:55 +00:00
conf Merge "Config option update tasks for availability_zone" 2016-07-20 21:14:08 +00:00
console Merge "Remove invalid test methods for config option port_range" 2016-07-09 03:58:23 +00:00
consoleauth Avoid unconditional warnings in nova-consoleauth 2016-04-26 23:52:49 +02:00
db Merge "Add block_device_mappings to BuildRequest" 2016-07-19 21:03:35 +00:00
hacking Merge "Port test_hacking to Python 3" 2016-07-22 02:36:22 +00:00
image Adding missing log translation hints 2016-06-23 01:14:28 -07:00
ipv6 Fix test_ipv6 and simplify to_global() 2016-06-28 20:42:32 +02:00
keymgr Replace key manager with Castellan 2016-04-27 14:37:06 -04:00
locale Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
network Merge "Update binding:profile for SR-IOV ports" 2016-07-21 23:30:40 +00:00
notifications Merge "Make notifications module use flavor capacity attributes" 2016-07-20 01:52:06 +00:00
objects Merge "Bump service version for BuildRequest deletion" 2016-07-21 00:44:34 +00:00
pci Merge "pci: Remove unused 'all_devs' method" 2016-06-10 19:40:47 +00:00
policies policy: clean-up 2016-06-30 19:56:14 +00:00
scheduler Merge "Replace deprecated LOG.warn with LOG.warning" 2016-07-20 16:31:12 +00:00
servicegroup Config options: Centralize servicegroup options 2016-05-04 15:57:29 +00:00
tests Update instance node on rebuild only when it is recreate 2016-07-22 18:22:26 +03:00
virt Merge "libvirt: update guest time after suspend" 2016-07-22 05:03:05 +00:00
vnc
volume Merge "cinder: accommodate v1 cinder client in detach call" 2016-07-08 15:29:57 +00:00
wsgi
__init__.py
availability_zones.py
baserpc.py config options: Centralize upgrade_levels section 2016-04-04 18:35:27 +00:00
block_device.py Add tag column to vifs and bdm 2016-04-01 08:46:54 -07:00
cache_utils.py Config options: centralize cache options 2016-05-13 12:27:52 +07:00
config.py Config options: move set default opt of db section to centralized place 2016-05-18 12:58:00 +07:00
context.py Pass kwargs through to base context 2016-07-14 12:04:21 +10:00
crypto.py Drop paramiko < 2 compat code 2016-05-10 12:01:22 -05:00
debugger.py Use oslo_log instead of logging 2016-05-27 12:18:32 +00:00
exception.py Update binding:profile for SR-IOV ports 2016-07-19 15:23:28 +03:00
exception_wrapper.py Transform wrap_exception notification to versioned format 2016-06-21 09:39:47 +02:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py Config options: Centralize netconf options 2016-04-24 18:15:05 +00:00
opts.py config options: centralize exception options 2016-05-18 14:21:05 +02:00
policy.py Merge "Use oslo_log instead of logging" 2016-07-22 02:17:35 +00:00
quota.py Quota changes for the nova-manage quota_usage_refresh command 2016-07-06 22:21:39 +00:00
rpc.py Transform wrap_exception notification to versioned format 2016-06-21 09:39:47 +02:00
safe_utils.py
service.py Device tagging API support 2016-06-29 20:55:16 -07:00
signature_utils.py Trivial-Fix: Fix typos 2016-06-13 06:41:08 +00:00
test.py Remove mox from unit/compute/test_compute.py (8) 2016-06-28 02:49:25 +00:00
utils.py Merge "Use oslo_log instead of logging" 2016-07-22 02:17:35 +00:00
version.py Use oslo_log instead of logging 2016-05-27 12:18:32 +00:00
weights.py
wsgi.py