Merge lp:~danilo/landscape-charm/maintenance-hook into lp:~landscape/landscape-charm/trunk
Proposed by
Данило Шеган
Status: | Merged |
---|---|
Approved by: | Данило Шеган |
Approved revision: | 303 |
Merged at revision: | 297 |
Proposed branch: | lp:~danilo/landscape-charm/maintenance-hook |
Merge into: | lp:~landscape/landscape-charm/trunk |
Prerequisite: | lp:~danilo/landscape-charm/upgrade-only-in-maintenance |
Diff against target: |
298 lines (+138/-30) 8 files modified
lib/hook.py (+28/-0) lib/migrate_schema.py (+8/-7) lib/resume.py (+8/-7) lib/tests/stubs.py (+4/-0) lib/tests/test_hook.py (+45/-0) lib/tests/test_migrate_schema.py (+22/-5) lib/tests/test_resume.py (+20/-3) lib/upgrade.py (+3/-8) |
To merge this branch: | bzr merge lp:~danilo/landscape-charm/maintenance-hook |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Benji York (community) | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Chris Glass (community) | Approve | ||
Review via email: mp+260697@code.launchpad.net |
Commit message
Make a generic MaintenanceHook which errors out if not in maintenance mode
Also moves UpgradeAction, MigrateSchemaAction and ResumeAction to the new hook.
Description of the change
Make a generic MaintenanceHook which errors out if not in maintenance mode
Also moves UpgradeAction, MigrateSchemaAction and ResumeAction to the new hook.
For testing, use landscape.yaml from https:/
juju-deployer -vdW -w180 -c landscape.yaml landscape
When playing around, note that if any of the 'upgrade', 'migrate-schema' or 'resume' are run when not in maintenance (iow, after 'pause' action), they should error out and no-op.
To post a comment you must log in.
Command: make ci-test /ci.lscape. net/job/ latch-test/ 1147/
Result: Success
Revno: 300
Branch: lp:~danilo/landscape-charm/maintenance-hook
Jenkins: https:/