Descriptionstate: service API changes
Removed:
* Service.EnsureDying
* Service.EnsureDead
* State.RemoveService
Added:
* Service.Destroy
Service.Destroy will remove the service and all its relations, if possible;
any that cannot be will be set to Dying. Service removal is now handled via
Service.RemoveUnit (which should become Unit.Remove, but this CL is big
enough already) and RelationUnit.LeaveScope, each of which will remove any
Dying service to which they hold the last reference.
In addition to the motivating lp:1089285 (service API), this inevitably
addresses lp:1089284 (service removal on LeaveScope) and lp:1100070 (unit
removal failure).
Reviewers unfamiliar with the details of the existing operations are likely
to be best served by reading doc/draft/death-and-destruction.txt, and to
compare the implementation against the model described therein, rather than
to worry *too* much about the previous implementation.
https://code.launchpad.net/~fwereade/juju-core/state-service-api/+merge/143394
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : state: service API changes #Patch Set 3 : state: service API changes #Patch Set 4 : state: service API changes #
Total comments: 28
Patch Set 5 : state: service API changes #
Total comments: 39
Patch Set 6 : state: service API changes #
Total comments: 12
Patch Set 7 : state: service API changes #
Total comments: 2
Patch Set 8 : state: service API changes #Patch Set 9 : state: service API changes #Patch Set 10 : state: service API changes #
MessagesTotal messages: 20
|