removed charm components are not cleaned up when upgrading
Bug #791035 reported by
Clint Byrum
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Kapil Thangavelu |
Bug Description
I recently removed a hook from a formula and then used upgrade-formula. To my surprise, the removed hook was still there and being executed, along side the new code.
Related branches
lp:~hazmat/pyjuju/formula-upgrade-removes-obsolete
- Gustavo Niemeyer: Needs Information
-
Diff: 295 lines (+141/-9)9 files modifiedensemble/agents/tests/test_unit.py (+50/-4)
ensemble/agents/unit.py (+19/-3)
ensemble/formula/base.py (+7/-0)
ensemble/formula/bundle.py (+7/-0)
ensemble/formula/directory.py (+21/-1)
ensemble/formula/tests/test_base.py (+4/-0)
ensemble/formula/tests/test_bundle.py (+7/-0)
ensemble/formula/tests/test_directory.py (+17/-1)
ensemble/unit/tests/test_lifecycle.py (+9/-0)
Changed in ensemble: | |
milestone: | none → dublin |
importance: | Undecided → Medium |
Changed in ensemble: | |
status: | New → In Progress |
assignee: | nobody → Kapil Thangavelu (hazmat) |
Changed in ensemble: | |
status: | In Progress → Confirmed |
Changed in ensemble: | |
milestone: | dublin → eureka |
summary: |
- removed formula components are not cleaned up when upgrading + removed charm components are not cleaned up when upgrading |
Changed in juju: | |
milestone: | eureka → florence |
Changed in juju: | |
milestone: | florence → eureka |
Changed in juju: | |
milestone: | eureka → florence |
Changed in juju: | |
milestone: | florence → galapagos |
Changed in juju: | |
milestone: | galapagos → honolulu |
Changed in juju: | |
milestone: | 0.6 → none |
Changed in juju: | |
status: | Confirmed → Triaged |
To post a comment you must log in.
Note that we can't just delete the charm and overwrite it -- some charms store state within themselves.