Merge lp://staging/~sinzui/charmworld/release-port into lp://staging/~juju-jitsu/charmworld/trunk
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | 192 |
Merged at revision: | 197 |
Proposed branch: | lp://staging/~sinzui/charmworld/release-port |
Merge into: | lp://staging/~juju-jitsu/charmworld/trunk |
Diff against target: |
42 lines (+19/-11) 2 files modified
scripts/clear-cache (+0/-10) scripts/stop (+19/-1) |
To merge this branch: | bzr merge lp://staging/~sinzui/charmworld/release-port |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Richard Harding | Pending | ||
Review via email: mp+158965@code.staging.launchpad.net |
This proposal supersedes a proposal from 2013-04-11.
Commit message
Ensure charmworld releases it's port when stopped.
Description of the change
Ensure charmworld releases it's port when stopped.
RULES
* Juju depolys often see errors when mongodb joins because the port was
not released before start was called again.
* Stop must ensure the port is released before calling scripts can
proceed with their actions and restart.
ADDENDUM
* Removed the nginx cache script sicne it is not needed.
QA
* Verified that the port clears normally as we always assumed would happen.
* Verified that the port clears if ther eis no pid file (and that is not
and error condition)
* Verified a slow termination will clear after a few seconds.
* Verified if the port does not clear in 5 minutes, the script exits
any and and explains the badness.
LGTM I'm going to assume your sed work is tested out and works well.