diff options
author | Chris Behrens <cbehrens@codestud.com> | 2013-01-10 01:18:33 +0000 |
---|---|---|
committer | Chris Behrens <cbehrens@codestud.com> | 2013-01-10 08:16:05 +0000 |
commit | d25991b41b5f476c293a6cf62361b115a160c64a (patch) | |
tree | d579d163bf69c08423e891e861f08538e57b68c7 /nova/exception.py | |
parent | 664ea40ebb0ee29a5fd11effeeed279ddc543f89 (diff) | |
download | nova-d25991b41b5f476c293a6cf62361b115a160c64a.tar.gz nova-d25991b41b5f476c293a6cf62361b115a160c64a.tar.xz nova-d25991b41b5f476c293a6cf62361b115a160c64a.zip |
Fix init_host checking moved instances
Commit 6fc00d3465185 (https://review.openstack.org/#/c/18486/)
introduced a couple of problems.
1) It introduced a method to try to deduce instance integer id from
a name the driver reports and using instance_name_template. This
fails badly when you're using something like 'instance-%(uuid)s' for
instance_name_template. It's only used when the driver does not
support the 'list_instance_uuids' method.. but XenAPI happens to
not implement this method.
2) There's a call to _get_instance_volume_block_device_info() that is
passing an instance_uuid when the method wants an instance.
Fixes bug 1097987 (#1 above) by doing a brute force match against
all instances' names.
Fixes bug 1097978 (#2 above)
Change-Id: I2da7658dd906fa06f0e867a2b22bf14e7f34cb12
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions