Merge lp://staging/~adam-collard/charms/trusty/swift-proxy/add-pause-resume-actions into lp://staging/~openstack-charmers-archive/charms/trusty/swift-proxy/next
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 109 | ||||
Proposed branch: | lp://staging/~adam-collard/charms/trusty/swift-proxy/add-pause-resume-actions | ||||
Merge into: | lp://staging/~openstack-charmers-archive/charms/trusty/swift-proxy/next | ||||
Diff against target: |
493 lines (+395/-19) 7 files modified
actions.yaml (+11/-0) actions/actions.py (+83/-0) charmhelpers/core/host.py (+32/-16) metadata.yaml (+2/-1) tests/basic_deployment.py (+54/-2) tests/charmhelpers/contrib/amulet/utils.py (+9/-0) unit_tests/test_actions.py (+204/-0) |
||||
To merge this branch: | bzr merge lp://staging/~adam-collard/charms/trusty/swift-proxy/add-pause-resume-actions | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Glass (community) | Approve | ||
Geoff Teale (community) | Approve | ||
Review via email:
|
Description of the change
This branch adds actions for pausing and resuming services on swift-storage units.
In addition to just stopping the services, the actions also set the status of the unit to be "maintenance" with a message on how to resume.
Further refinements to the charm to support pause mode will be coming in follow-up branches, notably guarding calls to service_start and service_restart to prevent config-changed, *-relation-changed and other hooks from (re)-starting a unit which should be paused.
It's a mirror of https:/
Note that this depends on charm-helpers from https:/
charm_lint_check #9595 swift-proxy-next for adam-collard mp270407
LINT OK: passed
Build: http:// 10.245. 162.77: 8080/job/ charm_lint_ check/9595/