Service Unit Agent must report result of starting formula
Bug #617587 reported by
Gustavo Niemeyer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Low
|
Kapil Thangavelu |
Bug Description
When a Service Unit Agent (SUA) starts the formula (bug #617581), it will run the "hooks/start" script. Once that's done, the SUA must report the result of this procedure back to the administrator managing Ensemble deployment. This is done through the integrated logging mechanism (these changes are covered in bug #XXXXXX), and is reported back to the user through the command line interface (enhancements defined in bug #XXXXXX).
Related branches
lp:~hazmat/pyjuju/unit-agent
- Jim Baker (community): Approve
- Benjamin Saller (community): Approve
-
Diff: 1846 lines (+915/-151)20 files modifiedensemble/agents/base.py (+13/-3)
ensemble/agents/machine.py (+10/-12)
ensemble/agents/tests/common.py (+5/-2)
ensemble/agents/tests/test_base.py (+63/-5)
ensemble/agents/tests/test_machine.py (+13/-12)
ensemble/agents/tests/test_unit.py (+202/-0)
ensemble/agents/unit.py (+87/-0)
ensemble/hooks/scheduler.py (+11/-2)
ensemble/hooks/tests/test_scheduler.py (+15/-0)
ensemble/lib/statemachine.py (+38/-4)
ensemble/lib/tests/test_statemachine.py (+27/-2)
ensemble/machine/tests/test_unit_deployment.py (+3/-1)
ensemble/machine/unit.py (+1/-4)
ensemble/state/errors.py (+1/-0)
ensemble/state/relation.py (+4/-0)
ensemble/state/tests/test_relation.py (+6/-0)
ensemble/unit/lifecycle.py (+86/-30)
ensemble/unit/tests/test_lifecycle.py (+92/-28)
ensemble/unit/tests/test_workflow.py (+175/-31)
ensemble/unit/workflow.py (+63/-15)
Changed in ensemble: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in ensemble: | |
assignee: | nobody → Kapil Thangavelu (hazmat) |
milestone: | none → 0.3 |
status: | Confirmed → In Progress |
Changed in ensemble: | |
status: | In Progress → Fix Committed |
Changed in ensemble: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.