summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2013-03-05 13:57:10 -0500
committerDan Smith <danms@us.ibm.com>2013-03-08 12:57:37 -0500
commit86e4587fb36aec74102d58c50d614fc6c006ebd3 (patch)
treedccb4901c6d03141905961d1041368c49652429c /nova/openstack
parent5fdcf190aa79eaa04b20cc6acf63dd99bce5e106 (diff)
downloadnova-86e4587fb36aec74102d58c50d614fc6c006ebd3.tar.gz
nova-86e4587fb36aec74102d58c50d614fc6c006ebd3.tar.xz
nova-86e4587fb36aec74102d58c50d614fc6c006ebd3.zip
Remove uses of instance['instance_type'] from nova/compute
Note that some tests were verifying things that can no longer fail, namely rebuilding instances who use flavors that have since been disabled. These tests are removed here. Also, this changes the order of a piece of logic in the resize/migrate path where before we would have ended up checking the instance type that we fetched from sys_meta to see if it was disabled (which makes no sense now). Reversing the check (to see if we're doing a resize or a migrate before checking the new flavor) eliminates the problem of the stashed type not having the 'disabled' attribute. This is one change in a series aimed at removing the use of instance-linked instance_type objects, in favor of the decoupled type data in system_metadata. See bug 1140119 for more details. Change-Id: I214a693e3bb16c0a365eb9b3afe73601beba4a22
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions