From 26b7c43ca1fe94f937d6a6d89b3114ce9931c74d Mon Sep 17 00:00:00 2001 From: Chris Behrens Date: Sat, 21 Jan 2012 08:04:19 +0000 Subject: Make start_instance cast directly to compute host Fixes bug 918615 start_instance doesn't need to go through scheduler because it still has instance['host'] set and resources are still accounted for in the scheduler, which means there's still room to restart it on its assigned host (even though it is deleted from the virt layer) Change-Id: I3cdd73b7ad2297b57f7e36be84819ff233ac8f08 --- nova/compute/api.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'nova/compute') diff --git a/nova/compute/api.py b/nova/compute/api.py index f154103cf..ca28f3871 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -948,11 +948,7 @@ class API(base.Base): # TODO(yamahata): injected_files isn't supported right now. # It is used only for osapi. not for ec2 api. # availability_zone isn't used by run_instance. - rpc.cast(context, - FLAGS.scheduler_topic, - {"method": "start_instance", - "args": {"topic": FLAGS.compute_topic, - "instance_uuid": instance_uuid}}) + self._cast_compute_message('start_instance', context, instance) #NOTE(bcwaldon): no policy check here since it should be rolled in to # search_opts in get_all -- cgit