Hook scheduler should have on disk persistence
Bug #773600 reported by
Kapil Thangavelu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
William Reade |
Bug Description
To enable recovery/restart of the unit agent. We should persist the hook scheduler state.
Additionally it needs to be able to interpret state differentials from the loaded state to the current state. Perhaps problematic, but we need both membership diff and relation settings node version diff for all members of the relation. Possibly this could be wired into the unit relation watch where it loads the state and passes along the version.
Related branches
lp:~fwereade/pyjuju/resolve-unit-relation-diffs
- Kapil Thangavelu (community): Approve
- Jim Baker (community): Approve
-
Diff: 1281 lines (+536/-171)8 files modifiedjuju/control/tests/test_resolved.py (+4/-4)
juju/hooks/scheduler.py (+111/-42)
juju/hooks/tests/test_scheduler.py (+247/-22)
juju/state/relation.py (+28/-23)
juju/state/tests/test_relation.py (+134/-69)
juju/unit/lifecycle.py (+7/-4)
juju/unit/tests/test_lifecycle.py (+1/-0)
juju/unit/tests/test_workflow.py (+4/-7)
Changed in ensemble: | |
milestone: | none → dublin |
Changed in ensemble: | |
milestone: | dublin → none |
Changed in juju: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in juju: | |
status: | Confirmed → In Progress |
assignee: | nobody → William Reade (fwereade) |
milestone: | none → florence |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.