Merge lp://staging/~doanac/ubuntu-ci-services-itself/bsbuilder into lp://staging/ubuntu-ci-services-itself
Status: | Merged |
---|---|
Approved by: | Francis Ginther |
Approved revision: | 25 |
Merged at revision: | 28 |
Proposed branch: | lp://staging/~doanac/ubuntu-ci-services-itself/bsbuilder |
Merge into: | lp://staging/ubuntu-ci-services-itself |
Diff against target: |
800 lines (+720/-2) 12 files modified
README (+31/-2) branch-source-builder/bsbuilder/__init__.py (+17/-0) branch-source-builder/bsbuilder/amqp_utils.py (+108/-0) branch-source-builder/bsbuilder/resources/root.py (+30/-0) branch-source-builder/bsbuilder/resources/v1.py (+53/-0) branch-source-builder/bsbuilder/tests/test_utils.py (+165/-0) branch-source-builder/bsbuilder/tests/test_v1.py (+70/-0) branch-source-builder/bsbuilder/utils.py (+78/-0) branch-source-builder/bsbuilder/wsgi.py (+48/-0) branch-source-builder/run_worker (+47/-0) branch-source-builder/setup.py (+44/-0) juju-deployer/branch-source-builder.yaml (+29/-0) |
To merge this branch: | bzr merge lp://staging/~doanac/ubuntu-ci-services-itself/bsbuilder |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis Ginther | Approve | ||
Review via email:
|
Commit message
Implements the webservice portion of the branch source builder
This creates a simple app using restish that takes a build_source request and sends it to rabbitmq. On the other end we have a simple worker script, branch-
The MP itself is bigger than the service because of the groundwork I did for the restish service.
Description of the change
Implements the webservice portion of the branch source builder
This creates a simple app using restish that takes a build_source request and sends it to rabbitmq. On the other end we have a simple worker script, branch-
The MP itself is bigger than the service because of the groundwork I did for the restish service.
There are some caveats to getting the juju-deployer portion of this working:
1) the rabbitmq-server charm is broke. It seems to be the .deb itself, but you have to edit /etc/hosts and add the host name to the 127.0.0.1 entry so the install will work. If you are fast and do that before juju-deployer gets to the bsb-rabbit unit the deployer will work. Otherwise you have to make that change, run "juju resolved --retry bsb-rabbit/0". then re-run the deployer script.
2) the bsb-worker script doesn't work out the first time. For some reason even with upstart respawing it, it won't start until you run: sudo stop bsb_worker; sudo start bsb_worker
At this point the service should be running and you can test with:
curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"source_ packages" : "todo_source", "ppa": "todo_ppa", "progress_trigger": "todo_trigger"}' http://<BSB RESTISH IP>:8080/ api/v1/ build_source
then on the bsb_worker node, you'll see a TODO printed in /var/log/ upstart/ bsb_worker. log