Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4631)

Issue 13426045: api(server)/uniter: Added DestroyAllSubordinates (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dimitern
Modified:
10 years, 8 months ago
Reviewers:
mp+183474, fwereade
Visibility:
Public.

Description

api(server)/uniter: Added DestroyAllSubordinates Because the uniter needs to remove both the (principal) unit it's running with, and any of its subordinates, this change was needed. Added a new API call: DestroyAllSubordinates(), as agreed online. We need to change the uniter code to use it instead of Destroy() when dealing with subordinates (uniter/modes.go:298), so added a TODO for that. https://code.launchpad.net/~dimitern/juju-core/113-api-uniter-unit-destroy-fix/+merge/183474 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : api(server)/uniter: Added DestroyAllSubordinates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -8 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/uniter/unit.go View 1 1 chunk +13 lines, -0 lines 0 comments Download
M state/api/uniter/uniter_test.go View 2 chunks +28 lines, -8 lines 0 comments Download
M state/apiserver/uniter/uniter.go View 1 chunk +37 lines, -0 lines 0 comments Download
M state/apiserver/uniter/uniter_test.go View 1 1 chunk +36 lines, -0 lines 0 comments Download
M worker/uniter/modes.go View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 3
dimitern
Please take a look.
10 years, 8 months ago (2013-09-02 14:12:52 UTC) #1
fwereade
LGTM, sorry delay https://codereview.appspot.com/13426045/diff/1/state/apiserver/uniter/uniter_test.go File state/apiserver/uniter/uniter_test.go (right): https://codereview.appspot.com/13426045/diff/1/state/apiserver/uniter/uniter_test.go#newcode592 state/apiserver/uniter/uniter_test.go:592: // Verify wordpressUnit's subordinates were destroyed ...
10 years, 8 months ago (2013-09-02 14:49:00 UTC) #2
dimitern
10 years, 8 months ago (2013-09-02 15:01:33 UTC) #3
Please take a look.

https://codereview.appspot.com/13426045/diff/1/state/apiserver/uniter/uniter_...
File state/apiserver/uniter/uniter_test.go (right):

https://codereview.appspot.com/13426045/diff/1/state/apiserver/uniter/uniter_...
state/apiserver/uniter/uniter_test.go:592: // Verify wordpressUnit's
subordinates were destroyed and removed.
On 2013/09/02 14:49:00, fwereade wrote:
> s/ and removed//

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b