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

Issue 12859043: Add an os-disk constraint

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by sidnei.da.silva
Modified:
10 years, 8 months ago
Reviewers:
mp+179931, natefinch, fwereade, gz, dimitern, rog
Visibility:
Public.

Description

Add an os-disk constraint The various providers supported have different ways of selecting an instance type or starting a specific instance with a custom OS/root disk size (see discussion at LP:1201503). This branch implements the basic constraint type, and follow up branches will expose the provider-specific information for the actual constraint matching. https://code.launchpad.net/~sidnei/juju-core/os-disk-constraint/+merge/179931 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add an os-disk constraint #

Patch Set 3 : Add an os-disk constraint #

Total comments: 10

Patch Set 4 : Add an os-disk constraint #

Total comments: 23

Patch Set 5 : Add an os-disk constraint #

Patch Set 6 : Add an os-disk constraint #

Patch Set 7 : Add an os-disk constraint #

Total comments: 3

Patch Set 8 : Add an os-disk constraint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -100 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status_test.go View 1 2 3 4 5 10 chunks +14 lines, -14 lines 0 comments Download
M constraints/constraints.go View 1 2 3 4 5 7 chunks +48 lines, -15 lines 0 comments Download
M constraints/constraints_test.go View 1 2 3 4 5 6 chunks +92 lines, -32 lines 0 comments Download
M environs/azure/instancetype.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M environs/azure/instancetype_test.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M environs/ec2/instancetype.go View 1 2 3 4 5 6 7 19 chunks +23 lines, -0 lines 0 comments Download
M environs/ec2/live_test.go View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M environs/instances/instancetype.go View 1 2 3 4 5 6 4 chunks +13 lines, -2 lines 0 comments Download
M environs/instances/instancetype_test.go View 1 2 3 4 5 12 chunks +26 lines, -0 lines 0 comments Download
M environs/jujutest/tests.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M environs/maas/environ.go View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M environs/maas/environ_test.go View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M environs/openstack/image.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M environs/openstack/provider.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M instance/instance.go View 1 2 3 4 5 5 chunks +37 lines, -23 lines 0 comments Download
M instance/instance_test.go View 1 2 3 4 5 1 chunk +46 lines, -2 lines 0 comments Download
M state/assign_test.go View 1 2 3 4 5 6 7 1 chunk +18 lines, -6 lines 0 comments Download
M state/constraints.go View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M state/machine.go View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M state/unit.go View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18
sidnei.da.silva
Please take a look.
10 years, 8 months ago (2013-08-13 14:29:17 UTC) #1
fwereade
EC2 instance type data is missing, and I'd prefer not to merge into trunk without ...
10 years, 8 months ago (2013-08-13 17:27:00 UTC) #2
sidnei.da.silva
Please take a look. https://codereview.appspot.com/12859043/diff/1/constraints/constraints.go File constraints/constraints.go (right): https://codereview.appspot.com/12859043/diff/1/constraints/constraints.go#newcode46 constraints/constraints.go:46: OsDisk *uint64 `json:"os-disk,omitempty" yaml:"os-disk,omitempty"` On ...
10 years, 8 months ago (2013-08-13 18:00:55 UTC) #3
sidnei.da.silva
Please take a look.
10 years, 8 months ago (2013-08-13 21:50:59 UTC) #4
rog
LGTM with some thoughts below. https://codereview.appspot.com/12859043/diff/7001/cmd/juju/status_test.go File cmd/juju/status_test.go (right): https://codereview.appspot.com/12859043/diff/7001/cmd/juju/status_test.go#newcode100 cmd/juju/status_test.go:100: "hardware": "arch=amd64 cpu-cores=1 mem=1024M ...
10 years, 8 months ago (2013-08-14 15:47:10 UTC) #5
sidnei.da.silva
Please take a look. https://codereview.appspot.com/12859043/diff/7001/cmd/juju/status_test.go File cmd/juju/status_test.go (right): https://codereview.appspot.com/12859043/diff/7001/cmd/juju/status_test.go#newcode100 cmd/juju/status_test.go:100: "hardware": "arch=amd64 cpu-cores=1 mem=1024M os-disk=1024M", ...
10 years, 8 months ago (2013-08-14 16:45:26 UTC) #6
dimitern
LGTM with a few suggestions. I still don't get what's the distinction between hardware characteristics ...
10 years, 8 months ago (2013-08-14 17:08:59 UTC) #7
gz
I'm pretty strongly against naming this 'os-disk'. My first thought looking at the proposal was ...
10 years, 8 months ago (2013-08-14 17:15:09 UTC) #8
sidnei.da.silva
Please take a look. https://codereview.appspot.com/12859043/diff/13001/constraints/constraints_test.go File constraints/constraints_test.go (right): https://codereview.appspot.com/12859043/diff/13001/constraints/constraints_test.go#newcode10 constraints/constraints_test.go:10: . "launchpad.net/gocheck" On 2013/08/14 17:08:59, ...
10 years, 8 months ago (2013-08-14 17:17:17 UTC) #9
sidnei.da.silva
Please take a look.
10 years, 8 months ago (2013-08-14 17:35:39 UTC) #10
natefinch
Mostly OK, please read through my comments, nothing huge. https://codereview.appspot.com/12859043/diff/13001/constraints/constraints.go File constraints/constraints.go (right): https://codereview.appspot.com/12859043/diff/13001/constraints/constraints.go#newcode178 constraints/constraints.go:178: ...
10 years, 8 months ago (2013-08-14 17:39:59 UTC) #11
natefinch
One more thing, somehow I lost the comment - I, too, think os-disk is not ...
10 years, 8 months ago (2013-08-14 17:45:03 UTC) #12
sidnei.da.silva
Please take a look. https://codereview.appspot.com/12859043/diff/13001/constraints/constraints.go File constraints/constraints.go (right): https://codereview.appspot.com/12859043/diff/13001/constraints/constraints.go#newcode178 constraints/constraints.go:178: case "os-disk": On 2013/08/14 17:39:59, ...
10 years, 8 months ago (2013-08-14 17:58:13 UTC) #13
natefinch
https://codereview.appspot.com/12859043/diff/13001/constraints/constraints.go File constraints/constraints.go (right): https://codereview.appspot.com/12859043/diff/13001/constraints/constraints.go#newcode275 constraints/constraints.go:275: func (v *Value) setMem(str string) (err error) { On ...
10 years, 8 months ago (2013-08-14 18:21:02 UTC) #14
natefinch
meant to say - LGTM modulo others looking at the couple of points on overwriting ...
10 years, 8 months ago (2013-08-14 18:25:26 UTC) #15
fwereade
This is great; LGTM. Just one request: https://codereview.appspot.com/12859043/diff/44001/environs/ec2/instancetype.go File environs/ec2/instancetype.go (right): https://codereview.appspot.com/12859043/diff/44001/environs/ec2/instancetype.go#newcode35 environs/ec2/instancetype.go:35: RootDisk: 8192, ...
10 years, 8 months ago (2013-08-15 13:58:37 UTC) #16
gz
Thanks for doing the rename. With the one last fix, LGTM. https://codereview.appspot.com/12859043/diff/44001/state/machine.go File state/machine.go (right): ...
10 years, 8 months ago (2013-08-15 14:16:57 UTC) #17
sidnei.da.silva
10 years, 8 months ago (2013-08-15 14:40:17 UTC) #18
Please take a look.

https://codereview.appspot.com/12859043/diff/44001/environs/ec2/instancetype.go
File environs/ec2/instancetype.go (right):

https://codereview.appspot.com/12859043/diff/44001/environs/ec2/instancetype....
environs/ec2/instancetype.go:35: RootDisk: 8192,
On 2013/08/15 13:58:37, fwereade wrote:
> Can we have a quick comment in this file referencing lp:1212688, and possibly
> explaining that we'll be dropping the field again when we're able to directly
> specify size via constraint?

Done.
Sign in to reply to this message.

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