Make upgrade action error out when not paused
Bug #1460592 reported by
Данило Шеган
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Charm |
Fix Released
|
Medium
|
Данило Шеган |
Bug Description
upgrade action should error out when we are not in the paused state.
With recent changes, "pause" calls "lsctl stop" which introduces maintenance.txt file, so we should use that as an indicator if the unit is paused or not.
Related branches
lp:~danilo/landscape-charm/upgrade-only-in-maintenance
- Chris Glass (community): Approve
- Benji York (community): Approve
- 🤖 Landscape Builder: Approve (test results)
-
Diff: 133 lines (+51/-5)4 files modifiedlib/paths.py (+6/-0)
lib/tests/test_paths.py (+9/-0)
lib/tests/test_upgrade.py (+27/-3)
lib/upgrade.py (+9/-2)
tags: | removed: kanban |
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.