diff options
author | Dan Smith <danms@us.ibm.com> | 2013-05-30 13:10:09 -0700 |
---|---|---|
committer | Dan Smith <danms@us.ibm.com> | 2013-06-13 05:16:00 -0700 |
commit | b53f83eaf106bcf37551dac3393c1a3e4a7ac938 (patch) | |
tree | 26dfec9f26a03402922b0c8c0fe0ac0c98fd87e5 /nova/utils.py | |
parent | 27faee004af89be46f931b7ee37c22f0a91ac650 (diff) | |
download | nova-b53f83eaf106bcf37551dac3393c1a3e4a7ac938.tar.gz nova-b53f83eaf106bcf37551dac3393c1a3e4a7ac938.tar.xz nova-b53f83eaf106bcf37551dac3393c1a3e4a7ac938.zip |
Make sync_power_state routines use InstanceList
This makes the periodic sync_power_states task use InstanceList
objects instead of querying conductor directly. This also affects
handle_lifecycle_event() as well, which now uses Instance to
fetch the instance for the event.
Note that none of the power state sync code was covered by unit
tests, so this adds that as well to verify the behavior and instance
object usage. Also note that compute_stop is already instance-object-
ready, so passing one to it is okay.
Related to blueprint unified-object-model
Change-Id: I4e34e0a2b9db77468305aaf1782feb74bcfdccbd
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions