Implement schedule_prep_resize()

Implement schedule_prep_resize() in the distributed scheduler.  Adds
a request_spec argument to enable the current host of an instance
to be excluded for resizes.  Corrects bug 888236.

Change-Id: Ia52415e79639275a06bef59f1e13ca64bf7243ee
This commit is contained in:
Kevin L. Mitchell
2011-11-17 13:47:56 -06:00
parent db660b81b9
commit 0a831abcb7
4 changed files with 156 additions and 14 deletions

View File

@@ -38,6 +38,7 @@ flags.DEFINE_string('volume_scheduler_driver',
# A mapping of methods to topics so we can figure out which driver to use.
_METHOD_MAP = {'run_instance': 'compute',
'start_instance': 'compute',
'prep_resize': 'compute',
'create_volume': 'volume',
'create_volumes': 'volume'}