Merge lp:~sinzui/charmworld/drain-ingest-queue into lp:~juju-jitsu/charmworld/trunk
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | 292 |
Merged at revision: | 289 |
Proposed branch: | lp:~sinzui/charmworld/drain-ingest-queue |
Merge into: | lp:~juju-jitsu/charmworld/trunk |
Diff against target: |
93 lines (+46/-2) 3 files modified
charmworld/jobs/lp.py (+23/-0) charmworld/jobs/tests/test_lp.py (+22/-2) setup.py (+1/-0) |
To merge this branch: | bzr merge lp:~sinzui/charmworld/drain-ingest-queue |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Richard Harding (community) | Approve | ||
Review via email: mp+172353@code.launchpad.net |
Commit message
Add a dequeue script so that the ingest queue can be drained during deploys.
Description of the change
Add a dequeue script so that the ingest queue can be drained during deploys.
RULES
This branch, pre-implementation: abentley
* Add a dequeue script that a user or charm could call to empty
the ingest queue.
Next Branches
* Update the charmworld charm to call dequeue when the revno changes
* Update ingest to only enqueue when the code's revno is => queue's
revno.
* Update the code to not pull from the queue when its revno is lower
the queue's revno.
QA
Using two terminals
* T1: ssh to the staging.
juju ssh -e staging charmworld/6
cd /home/webops_
ls ./bin/dequeue
* T2 ssh to the staging.
juju ssh -e staging mongodb/0
mongo juju --eval 'db["charm-
* T1: Run dequeue
sudo su charmworld -c 'HOME=./ INI=./productio
* T2: Verify the the queue was drained (the count is zero):
mongo juju --eval 'db["charm-
Thanks, looks good to me.