service lifecycle API is wrong
Bug #1089285 reported by
William Reade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
William Reade |
Bug Description
Services don't have associated agents, and need to be removed differently to units and machines -- much like relations.
The right API is, I believe:
Service.Destroy() -- like Relation.Destroy, may set Dying or may remove entirely, depending on whether units exist.
Service.AddUnit() -- needs to check for Dying (may do so already)
Service.
Changed in juju-core: | |
importance: | Undecided → High |
assignee: | nobody → William Reade (fwereade) |
Changed in juju-core: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Making this as triaged, WIlliam if we need to do this before 2.0 then when is a good time?