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

Issue 11019044: New assignment policy is AssignCleanEmpty (Closed)

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

Description

New assignment policy is AssignCleanEmpty Add container support to AssignClean(Empty) policies and make the default policy AssignCleanEmpty. This allows manual deployment of charms into existing clean and empty containers/instances, with the fallback that a new container/instance is created if none are available. The system behaves the same as previously if a simple bootstrap and deploy is performed, but if add-machine is used to create some containers/instances, then those are no longer ignored. https://code.launchpad.net/~wallyworld/juju-core/clean-policy-container/+merge/173633 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : New assignment policy is AssignCleanEmpty #

Total comments: 10

Patch Set 3 : New assignment policy is AssignCleanEmpty #

Total comments: 20

Patch Set 4 : New assignment policy is AssignCleanEmpty #

Patch Set 5 : New assignment policy is AssignCleanEmpty #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -64 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M constraints/constraints.go View 1 2 3 1 chunk +5 lines, -0 lines 1 comment Download
M constraints/constraints_test.go View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M juju/conn.go View 1 chunk +2 lines, -3 lines 0 comments Download
M state/assign_test.go View 1 2 3 6 chunks +163 lines, -6 lines 0 comments Download
M state/state.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M state/unit.go View 1 2 3 4 9 chunks +187 lines, -53 lines 0 comments Download

Messages

Total messages: 11
wallyworld
Please take a look.
10 years, 10 months ago (2013-07-09 02:56:45 UTC) #1
wallyworld
Please take a look.
10 years, 10 months ago (2013-07-11 02:26:55 UTC) #2
fwereade
There's an awful lot of container-specificity here, and they're apparently being paid attention to *instead ...
10 years, 10 months ago (2013-07-11 03:44:37 UTC) #3
wallyworld
Container constraints are the only ones supported in the mp. The others (mem etc) are ...
10 years, 10 months ago (2013-07-11 04:05:34 UTC) #4
fwereade
OK, LGTM, so long as we're dealing with *constraints* and the use of the container ...
10 years, 10 months ago (2013-07-11 04:19:49 UTC) #5
wallyworld
I've addressed the issues raised.
10 years, 10 months ago (2013-07-11 05:05:38 UTC) #6
wallyworld
Please take a look.
10 years, 10 months ago (2013-07-11 05:06:55 UTC) #7
dimitern
LGTM with a few suggestions. https://codereview.appspot.com/11019044/diff/11001/juju/conn.go File juju/conn.go (right): https://codereview.appspot.com/11019044/diff/11001/juju/conn.go#newcode301 juju/conn.go:301: // Hard code for ...
10 years, 10 months ago (2013-07-11 20:25:51 UTC) #8
wallyworld
Please take a look. https://codereview.appspot.com/11019044/diff/11001/juju/conn.go File juju/conn.go (right): https://codereview.appspot.com/11019044/diff/11001/juju/conn.go#newcode301 juju/conn.go:301: // Hard code for now ...
10 years, 10 months ago (2013-07-12 02:27:28 UTC) #9
wallyworld
Please take a look.
10 years, 10 months ago (2013-07-12 03:42:20 UTC) #10
dimitern
10 years, 10 months ago (2013-07-12 07:22:02 UTC) #11
Thanks, just a fix a small typo.

https://codereview.appspot.com/11019044/diff/20001/constraints/constraints.go
File constraints/constraints.go (right):

https://codereview.appspot.com/11019044/diff/20001/constraints/constraints.go...
constraints/constraints.go:218: // HasContainer returns true is the
constraints.Value specifies a container.
s/is/if/
Sign in to reply to this message.

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