~dan-prince/nova/cleanup_test_libvirt_inst_path

Viewing all changes in revision 1111.

  • Committer: Tarmac
  • Author(s): Chris Behrens
  • Date: 2011-05-25 20:31:05 UTC
  • mfrom: (1108.2.7 passwd-with-spawn)
  • Revision ID: tarmac-20110525203105-ork3h7mw7q1f0rti
During the API create call, the API would kick off a build and then loop in a greenthread waiting for the scheduler to pick a host for the instance.  After API would see a host was picked, it would cast to the compute node's set_admin_password method.

The API server really should not have to do this.  The password to set should be pushed along with the build request, instead.  The compute node can then set the password after it detects the instance has booted.  This removes a greenthread from the API server, a loop that constantly checks the DB for the host, and finally a cast to the compute node.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: