diff options
| author | Trey Morris <trey.morris@rackspace.com> | 2011-05-24 16:21:47 -0500 |
|---|---|---|
| committer | Trey Morris <trey.morris@rackspace.com> | 2011-05-24 16:21:47 -0500 |
| commit | 2b0af0ccf792dd2f0420fd8eaa6bc8be8a8671bf (patch) | |
| tree | 56d5d0933b98ee61f9b7efad15f91975910bdca7 /nova/compute | |
| parent | d3c6f77f287f8078606ca7fc99a8121cadb76fd4 (diff) | |
| parent | 781ed70a4035fe507e2e1e83dcd5262c81792b5a (diff) | |
merge trunk
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/api.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/compute/api.py b/nova/compute/api.py index 2dc083e9e..29650e782 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -233,11 +233,18 @@ class API(base.Base): uid = context.user_id LOG.debug(_("Casting to scheduler for %(pid)s/%(uid)s's" " instance %(instance_id)s") % locals()) + + # NOTE(sandy): For now we're just going to pass in the + # instance_type record to the scheduler. In a later phase + # we'll be ripping this whole for-loop out and deferring the + # creation of the Instance record. At that point all this will + # change. rpc.cast(context, FLAGS.scheduler_topic, {"method": "run_instance", "args": {"topic": FLAGS.compute_topic, "instance_id": instance_id, + "instance_type": instance_type, "availability_zone": availability_zone, "injected_files": injected_files}}) |
