unit agent needs to support upgrades
Bug #750483 reported by
Kapil Thangavelu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
High
|
Kapil Thangavelu |
Bug Description
The unit agent should support upgrades, via watching for the upgrade flag, and then performing the upgrade.
Related branches
lp:~hazmat/pyjuju/unit-agent-formula-upgrade
- Gustavo Niemeyer: Approve
-
Diff: 1659 lines (+923/-179)17 files modifieddocs/source/drafts/formula-upgrades.rst (+27/-31)
docs/source/drafts/upgrades.rst (+4/-4)
ensemble/agents/machine.py (+7/-21)
ensemble/agents/tests/test_machine.py (+0/-1)
ensemble/agents/tests/test_unit.py (+253/-40)
ensemble/agents/unit.py (+119/-7)
ensemble/control/tests/test_upgrade_formula.py (+85/-14)
ensemble/control/upgrade_formula.py (+22/-16)
ensemble/hooks/executor.py (+56/-25)
ensemble/hooks/tests/test_executor.py (+54/-4)
ensemble/state/environment.py (+1/-1)
ensemble/unit/formula.py (+43/-0)
ensemble/unit/lifecycle.py (+22/-6)
ensemble/unit/tests/test_formula.py (+98/-0)
ensemble/unit/tests/test_lifecycle.py (+22/-5)
ensemble/unit/tests/test_workflow.py (+79/-4)
ensemble/unit/workflow.py (+31/-0)
Changed in ensemble: | |
milestone: | none → budapest |
assignee: | nobody → Kapil Thangavelu (hazmat) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in ensemble: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
A suggestion would be to pass to the upgrade hook which version the upgrade process is starting from. This is needed as sometimes the upgrade process depends on the starting version (example upgrade wordpress 2.9 -> 3.0 might involve a DB schema migration, while 3.0 -> 3.1 might not)