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

Issue 102830044: various: Introduce networks constraints (Closed)

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

Description

various: Introduce networks constraints Following the removal of --exclude-networks argument from juju deploy, now we're introducting a complete way to specify networks with constraints: --constraints networks=net1,net2,^net3,^net4 Means "find a machine with net1 and net2 networks, but not with net3 or net4 networks". Changes are in 3 places: constraints package, state (for saving/loading) and cmd/juju/deploy for the CLI. Now, to specify networks to include/exclude on deploy: juju deploy svc --networks=logging,db --constraints networks=^dmz,storage Means: "deploy svc on machines with logging, db, and storage networks, but not with dmz network". Only the those, specified with --networks will be enabled on the machine, once the networker worker is done. The ones specified with constraints are used as a filter for instance selection. https://code.launchpad.net/~dimitern/juju-core/460-network-constraints/+merge/221390 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 19
Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -131 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/deploy.go View 5 chunks +42 lines, -15 lines 14 comments Download
M cmd/juju/deploy_test.go View 1 chunk +8 lines, -5 lines 0 comments Download
M cmd/juju/help_topics.go View 1 chunk +7 lines, -0 lines 0 comments Download
M constraints/constraints.go View 9 chunks +68 lines, -10 lines 2 comments Download
M constraints/constraints_test.go View 16 chunks +96 lines, -63 lines 0 comments Download
M state/constraints.go View 3 chunks +3 lines, -0 lines 2 comments Download
M state/constraintsvalidation_test.go View 3 chunks +45 lines, -38 lines 1 comment Download

Messages

Total messages: 4
dimitern
Please take a look.
9 years, 11 months ago (2014-05-29 14:19:03 UTC) #1
fwereade
If you dropped the changes to cmd/juju I'd approve this (with just a little bit ...
9 years, 11 months ago (2014-05-29 18:22:36 UTC) #2
dimitern
Sorry, what I meant by "follow-up" is actually a prerequisite: https://codereview.appspot.com/93670046 What I've said below ...
9 years, 11 months ago (2014-06-02 09:27:24 UTC) #3
dimitern
9 years, 11 months ago (2014-06-04 11:17:44 UTC) #4
This got migrated to github:

https://github.com/juju/juju/pull/13

Lots of changes done, suggestions applied.
Sign in to reply to this message.

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