~corywright/nova/ovs-vif-rules

« back to all changes in this revision

Viewing changes to nova/compute/api.py

  • Committer: Cory Wright
  • Date: 2011-05-20 21:30:39 UTC
  • mfrom: (828.1.270 nova)
  • Revision ID: cory.wright@rackspace.com-20110520213039-m9kb2f9ks21xwyvu
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
            uid = context.user_id
252
252
            LOG.debug(_("Casting to scheduler for %(pid)s/%(uid)s's"
253
253
                    " instance %(instance_id)s") % locals())
 
254
 
 
255
            # NOTE(sandy): For now we're just going to pass in the
 
256
            # instance_type record to the scheduler. In a later phase
 
257
            # we'll be ripping this whole for-loop out and deferring the
 
258
            # creation of the Instance record. At that point all this will
 
259
            # change.
254
260
            rpc.cast(context,
255
261
                     FLAGS.scheduler_topic,
256
262
                     {"method": "run_instance",
257
263
                      "args": {"topic": FLAGS.compute_topic,
258
264
                               "instance_id": instance_id,
 
265
                               "instance_type": instance_type,
259
266
                               "availability_zone": availability_zone,
260
267
                               "injected_files": injected_files}})
261
268