Merge lp:~canonical-ci-engineering/charms/trusty/core-result-checker/test-with-relations into lp:~canonical-ci-engineering/charms/trusty/core-result-checker/trunk
Status: | Merged |
---|---|
Approved by: | Thomi Richards |
Approved revision: | 3 |
Merged at revision: | 3 |
Proposed branch: | lp:~canonical-ci-engineering/charms/trusty/core-result-checker/test-with-relations |
Merge into: | lp:~canonical-ci-engineering/charms/trusty/core-result-checker/trunk |
Diff against target: |
4 lines (+0/-0) 0 files modified
|
To merge this branch: | bzr merge lp:~canonical-ci-engineering/charms/trusty/core-result-checker/test-with-relations |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Celso Providelo (community) | Approve | ||
Review via email: mp+260095@code.launchpad.net |
Commit message
add missing relation hooks.
Description of the change
Add missing relation-departed and relation-broken hooks.
Do not ask me why I'm doing this. At this point, juju charms have taken my sanity. You can, however read https:/
In case you don't believe me that this works, log in to wendigo, and run:
sh ~/thomi_
This script will deploy a new snappy-
Once that's deployed, log in to the rabbitmq server and count the active connections:
rabbitmqadmin list connections | wc -l
Now destroy the service (you can't use reaper.py just yet, I have another branch that will fix that):
JUJU_HOME=
wait while juju does it's thing. When it's finished (core-result-
If you repeat this experiment with the trunk charm, connections never get cleaned up.
Thanks Obama^Wjuju
Thomi,
As discussed on HO (me, Francis and you), the symlinks do not match our expectation from ServiceManager() [1], something does not fit well. Also we have experienced success with `juju destroy-service ...` last Friday.
There might be, as you suggested, some weird timing issues around this that we cannot easily reproduce.
From everything you have tried, I am ok for you to land this in the snappy- proposed- result- checker charm branch and experiment with reaper.py calling (and waiting) destroy-services before destroying the juju env.
If we get it to work, we can quickly propagate this other snappy-proposed charms
[1] https:/ /pythonhosted. org/charmhelper s/examples/ services. html