Upgrade charm should work from any state
Bug #934350 reported by
Kapil Thangavelu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Kapil Thangavelu |
Bug Description
To allow for easier development iteration, upgrade-charm should allow for --force flag which will allow the upgrade to proceed from any state. Unless the unit is in the 'started' state the upgrade-charm hook won't be called on force.
Related branches
lp://staging/~hazmat/pyjuju/force-upgrade
- Benjamin Saller (community): Approve
-
Diff: 456 lines (+155/-41) (has conflicts)12 files modified.bzrignore (+6/-0)
juju/agents/tests/test_unit.py (+30/-1)
juju/agents/unit.py (+4/-0)
juju/control/tests/test_destroy_environment.py (+2/-0)
juju/control/tests/test_upgrade_charm.py (+16/-0)
juju/control/upgrade_charm.py (+13/-3)
juju/state/errors.py (+12/-0)
juju/state/service.py (+31/-10)
juju/state/tests/test_errors.py (+9/-1)
juju/state/tests/test_service.py (+22/-10)
juju/unit/lifecycle.py (+3/-3)
juju/unit/tests/test_lifecycle.py (+7/-13)
Changed in juju: | |
milestone: | none → florence |
assignee: | nobody → Kapil Thangavelu (hazmat) |
importance: | Undecided → Medium |
Changed in juju: | |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.