Merge lp:~jtv/maas/bug-1059453 into lp:maas/trunk
Proposed by
Jeroen T. Vermeulen
on 2012-10-03
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Gavin Panella on 2012-10-03 | ||||
| Approved revision: | 1142 | ||||
| Merged at revision: | 1147 | ||||
| Proposed branch: | lp:~jtv/maas/bug-1059453 | ||||
| Merge into: | lp:maas/trunk | ||||
| Diff against target: |
145 lines (+27/-40) 3 files modified
src/provisioningserver/start_cluster_controller.py (+11/-8) src/provisioningserver/tests/test_start_cluster_controller.py (+15/-31) src/provisioningserver/utils.py (+1/-1) |
||||
| To merge this branch: | bzr merge lp:~jtv/maas/bug-1059453 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gavin Panella (community) | 2012-10-03 | Approve on 2012-10-03 | |
|
Review via email:
|
|||
Commit Message
Run celeryd synchronously, so Upstart doesn't need to track fork()s (many of which precede the operative one as maas-provision starts up).
Description of the Change
Discussed with Julian and many others. The "maas-provision start-cluster-
Jeroen
To post a comment you must log in.
| Jeroen T. Vermeulen (jtv) wrote : | # |
Changes made. I've got a final test run going that I fully expect to pass; I've set things up to commit and push after a successful run.
lp:~jtv/maas/bug-1059453
updated
on 2012-10-03
- 1142. By Jeroen T. Vermeulen on 2012-10-03
-
Review changes: don't fork, just exec.
review:
Approve


[1]
+ return_code = check_call(command, env=env, preexec_ fn=Become( uid, gid)) return_ code)
+ if return_code != 0:
+ raise SystemExit(
So, we've gone full-circle :) Which means we also get back to my
original comment: just exec here. It's absolutely pointless leaving an
idle Python interpreter around just to wait for a return code.
Also, check_call will raise a CalledProcessError if the process exits
with a non-zero code, so the conditional branch above will never be
taken.