Add a juju action for pausing a unit
Bug #1418101 reported by
Free Ekanayaka
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Charm |
Fix Released
|
Medium
|
Free Ekanayaka |
Bug Description
We should add a ./actions/pause script and associated actions.yaml metadata with code that will essentially call "lsctl stop" in order to stop any Landscape service running on the unit (and disable cron jobs too).
Initially the script can be invoked via juju run, since Juju actions are not yet officially supported.
Related branches
lp:~free.ekanayaka/landscape-charm/pause-action
- Alberto Donato (community): Approve
- Данило Шеган (community): Approve
- 🤖 Landscape Builder: Approve (test results)
-
Diff: 147 lines (+59/-5)9 files modifiedMakefile (+1/-1)
actions.yaml (+4/-0)
actions/pause (+9/-0)
charm-helpers.yaml (+1/-1)
lib/callbacks/scripts.py (+2/-1)
lib/paths.py (+1/-0)
lib/pause.py (+18/-0)
lib/tests/helpers.py (+1/-2)
lib/tests/test_pause.py (+22/-0)
tags: | added: upgradable-charm |
Changed in landscape-charm: | |
milestone: | none → 1.0 |
Changed in landscape-charm: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Free Ekanayaka (free.ekanayaka) |
Changed in landscape-charm: | |
status: | In Progress → Fix Committed |
Changed in landscape-charm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.