diff options
| author | Andrew Clay Shafer <acs@parvuscaptus.com> | 2012-03-01 22:41:15 -0500 |
|---|---|---|
| committer | Andrew Clay Shafer <acs@parvuscaptus.com> | 2012-03-06 16:24:18 -0500 |
| commit | 3d4213d1faa76179a6fafba653845ede1c73a7bb (patch) | |
| tree | 1b3c9ec8a94bd5e9b6b79ba3b1f506e6d1712a39 /bin/nova-api-ec2 | |
| parent | 922420faf353f0296eacee00e8c0ba372c04fbea (diff) | |
| download | nova-3d4213d1faa76179a6fafba653845ede1c73a7bb.tar.gz nova-3d4213d1faa76179a6fafba653845ede1c73a7bb.tar.xz nova-3d4213d1faa76179a6fafba653845ede1c73a7bb.zip | |
Reset instance to ACTIVE when no hosts found
bug 928521
modified nova/scheduler/manager.py to reset vm_state to ACTIVE and set
task_state to None when prep_resize raises a NoHostsFound
refactored run_instance and prep_resize so they don't go through
_schedule and now must be implemented in driver
Changed behavior to set vm_state to error on any other exception in
prep_resize.
Change behavior to change instance vm_state to ERROR on exceptions
Added tests that the vm_state gets updated
Added tests that schedule_prep_resize and schedule_run_instance
have no implementation in the Driver base class
Had to adjust methods and tests for Multi scheduler to reflect the
new Scheduler contract
Change-Id: Ibcac7ef0df3456793a2132beb7a711849510da80
Diffstat (limited to 'bin/nova-api-ec2')
0 files changed, 0 insertions, 0 deletions
