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

Issue 13802045: MaaS tag support in constraints

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by natefinch
Modified:
10 years, 7 months ago
Reviewers:
mp+187298, fwereade, gz
Visibility:
Public.

Description

MaaS tag support in constraints Added a new constraint called tags. In MaaS this corresponds to maas-tags, it is currently unsupported in other providers, though it could be implemented in the future to allow a pass-through for provider-specific features. Tags are simply comma-delimited strings. Added code to disable constraints.Value serialization to yaml, since goyaml has bugs with how it handles slices. https://code.launchpad.net/~natefinch/juju-core/013-maas-tags/+merge/187298 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : MaaS tag support in constraints #

Total comments: 1

Patch Set 3 : MaaS tag support in constraints #

Patch Set 4 : MaaS tag support in constraints #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -78 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/addmachine_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M cmd/juju/constraints_test.go View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
M cmd/juju/deploy.go View 1 chunk +1 line, -2 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 2 chunks +2 lines, -1 line 0 comments Download
M constraints/constraints.go View 1 2 3 8 chunks +65 lines, -1 line 1 comment Download
M constraints/constraints_test.go View 1 2 3 7 chunks +122 lines, -44 lines 0 comments Download
M environs/instances/instancetype.go View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download
M instance/instance.go View 1 2 3 4 chunks +28 lines, -5 lines 0 comments Download
M juju/conn.go View 2 chunks +2 lines, -3 lines 0 comments Download
M provider/azure/instancetype.go View 1 chunk +1 line, -0 lines 0 comments Download
M provider/dummy/environs.go View 1 chunk +1 line, -0 lines 0 comments Download
M provider/ec2/ec2.go View 1 chunk +1 line, -0 lines 0 comments Download
M provider/maas/environ.go View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M provider/maas/environ_test.go View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M provider/openstack/image.go View 1 chunk +1 line, -0 lines 0 comments Download
M provider/openstack/provider.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/constraints.go View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M state/initialize_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/machine.go View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M state/machine_test.go View 1 chunk +1 line, -1 line 0 comments Download
M state/service_test.go View 3 chunks +4 lines, -5 lines 0 comments Download
M state/state.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/state_test.go View 1 2 3 9 chunks +7 lines, -10 lines 0 comments Download
M state/unit.go View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11
natefinch
Please take a look.
10 years, 7 months ago (2013-09-24 17:23:38 UTC) #1
natefinch
Note, most of the changed files are small mechanical changes only. I added a constraints.IsEmpty ...
10 years, 7 months ago (2013-09-24 17:39:39 UTC) #2
gz
Looks right overall, I have some doubts about what we want to store constraints as ...
10 years, 7 months ago (2013-09-25 10:50:42 UTC) #3
natefinch
I think we addressed most of this in the standup and later conversations? We seem ...
10 years, 7 months ago (2013-09-25 13:46:24 UTC) #4
fwereade
LGTM assuming you're ok with the following. https://codereview.appspot.com/13802045/diff/1/provider/ec2/ec2.go File provider/ec2/ec2.go (right): https://codereview.appspot.com/13802045/diff/1/provider/ec2/ec2.go#newcode97 provider/ec2/ec2.go:97: // Tags ...
10 years, 7 months ago (2013-09-25 14:48:42 UTC) #5
fwereade
Hmm, I missed a rather important file somehow. Important question which may rescind the approval ...
10 years, 7 months ago (2013-09-25 14:52:54 UTC) #6
natefinch
Please take a look.
10 years, 7 months ago (2013-09-25 17:54:25 UTC) #7
fwereade
LGTM https://codereview.appspot.com/13802045/diff/14001/constraints/constraints_test.go File constraints/constraints_test.go (right): https://codereview.appspot.com/13802045/diff/14001/constraints/constraints_test.go#newcode350 constraints/constraints_test.go:350: {RootDisk: uint64p(109876)}, Add some roundtrip tests with both ...
10 years, 7 months ago (2013-09-25 18:36:34 UTC) #8
natefinch
Please take a look.
10 years, 7 months ago (2013-09-27 15:44:26 UTC) #9
natefinch
Please take a look.
10 years, 7 months ago (2013-09-27 18:08:49 UTC) #10
fwereade
10 years, 7 months ago (2013-09-27 18:23:29 UTC) #11
LGTM as far as it goes, let's get this in.

We also need to return hardware characteristics from StartInstance (and maybe
maas doesn't even do that..?) -- including tags -- and we should try to match
existing machines with tags inside the unit assignment bits in state.

https://codereview.appspot.com/13802045/diff/36001/constraints/constraints.go
File constraints/constraints.go (right):

https://codereview.appspot.com/13802045/diff/36001/constraints/constraints.go...
constraints/constraints.go:50: // empty list will override any default tags,
where a nil list will not.
Add a comment here explaining the sad situation.
Sign in to reply to this message.

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