diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-09-17 16:02:06 -0700 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-09-17 17:46:45 -0700 |
commit | 91734bad9139555294fe088d2c2d77a9712652ab (patch) | |
tree | 5f3418cf120f74b0d0e70bf4ca04f7bb11e0e4ee /nova/scheduler/manager.py | |
parent | 725c99b2a9a05c905b6ff9455d47917c39be9f57 (diff) | |
download | nova-91734bad9139555294fe088d2c2d77a9712652ab.tar.gz nova-91734bad9139555294fe088d2c2d77a9712652ab.tar.xz nova-91734bad9139555294fe088d2c2d77a9712652ab.zip |
Fixes error handling during schedule_run_instance
If there are not enough hosts available during a multi-instance launch,
every failing instance should be updated to error state, instead of
just the first instance. Currently only the first instance is set
to Error and the rest stay in building.
This patch makes a number of fixes to error handling during scheduling.
* Moves instance faults into compute utils so they can be created
from the scheduler.
* Moves error handling into the driver so that each instance can be
updated separately.
* Sets an instance fault for failed scheduling
* Sets task state back to none if there is a scheduling failure
* Modifies chance scheduler to stop returning a list of instances
as it is not used.
* Modifies tests to check for these states.
In addition to the included tests, the code was manually verified on
a devstack install
Fixes bug 1051066
Fixes bug 1019017
Change-Id: I49267ce4a21e2f7cc7a996fb2ed5d625f6794730
Diffstat (limited to 'nova/scheduler/manager.py')
0 files changed, 0 insertions, 0 deletions