Service Unit Agent must manage a formula
Bug #617581 reported by
Gustavo Niemeyer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Kapil Thangavelu |
Bug Description
The foundational work for the Service Unit Agent (SUA) was defined in bug #617575. Once that is in place, the SUA must be enhanced so that it can actually do the task it's responsible for: controlling the formula which was handed over by the Machine Agent (bug #617042).
Initially, this will encompass the following tasks:
1) Expanding the formula into its runtime directory
2) Running the "start" hook which was placed under the "hooks/" directory from the formula.
The next task is to report on the success of the deployment based on the result of running start. This feedback procedure is covered in bug #617587.
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 → Medium |
description: | updated |
Changed in ensemble: | |
assignee: | nobody → Kapil Thangavelu (hazmat) |
status: | Confirmed → In Progress |
Changed in ensemble: | |
milestone: | none → 0.3 |
Changed in ensemble: | |
status: | In Progress → Fix Committed |
Changed in ensemble: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.