Merge lp:~cbehrens/nova/passwd-with-spawn into lp:~hudson-openstack/nova/trunk
Proposed by
Chris Behrens
Status: | Merged |
---|---|
Approved by: | Josh Kearney |
Approved revision: | 1115 |
Merged at revision: | 1111 |
Proposed branch: | lp:~cbehrens/nova/passwd-with-spawn |
Merge into: | lp:~hudson-openstack/nova/trunk |
Diff against target: |
193 lines (+41/-23) 5 files modified
nova/api/openstack/servers.py (+2/-4) nova/compute/api.py (+10/-13) nova/compute/manager.py (+17/-4) nova/tests/api/openstack/test_servers.py (+1/-2) nova/virt/xenapi/vmops.py (+11/-0) |
To merge this branch: | bzr merge lp:~cbehrens/nova/passwd-with-spawn |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Josh Kearney (community) | Approve | ||
Ed Leafe (community) | Approve | ||
Johannes Erdfelt (community) | Approve | ||
Review via email: mp+62236@code.launchpad.net |
Description of the change
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.
To post a comment you must log in.
Line 86 of the diff: ref.admin_ password = ... ref.admin_ pass = ...
instance_
should be:
instance_