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

Issue 10667043: Display machine hardware info in status (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:
mp+171710, thumper, fwereade, dimitern
Visibility:
Public.

Description

Display machine hardware info in status Now that state stores the hardware characteristics of provisioned machines, we can show that information in juju status. https://code.launchpad.net/~wallyworld/juju-core/machine-characteristics-in-status/+merge/171710 Requires: https://code.launchpad.net/~wallyworld/juju-core/instance-metadata-in-state/+merge/170740 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -51 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status.go View 4 chunks +17 lines, -3 lines 9 comments Download
M cmd/juju/status_test.go View 29 chunks +73 lines, -27 lines 0 comments Download
M environs/dummy/environs.go View 1 chunk +25 lines, -20 lines 0 comments Download
M instance/instance.go View 2 chunks +29 lines, -0 lines 0 comments Download
M worker/provisioner/provisioner_task.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7
wallyworld
Please take a look.
10 years, 10 months ago (2013-06-27 04:23:27 UTC) #1
dimitern
I'm a bit at a loss about how "hardware" is different from "constraints" in the ...
10 years, 10 months ago (2013-06-27 14:43:53 UTC) #2
wallyworld
Hardware != constraints because the constraints specify the minimum requirements for an instance; hardware is ...
10 years, 10 months ago (2013-06-27 20:46:49 UTC) #3
thumper
LGTM https://codereview.appspot.com/10667043/diff/1/cmd/juju/status.go File cmd/juju/status.go (right): https://codereview.appspot.com/10667043/diff/1/cmd/juju/status.go#newcode190 cmd/juju/status.go:190: inst, ok := context.instances[instid] On 2013/06/27 20:46:49, wallyworld ...
10 years, 10 months ago (2013-06-27 23:06:04 UTC) #4
fwereade
LGTM, nice
10 years, 10 months ago (2013-06-28 12:46:00 UTC) #5
fwereade
On 2013/06/28 12:46:00, fwereade wrote: > LGTM, nice ...except... I'm concerned it's a bit unkind ...
10 years, 10 months ago (2013-06-28 12:50:09 UTC) #6
wallyworld
10 years, 10 months ago (2013-06-30 23:44:58 UTC) #7
On 2013/06/28 12:50:09, fwereade wrote:
> On 2013/06/28 12:46:00, fwereade wrote:
> > LGTM, nice
> 
> ...except... I'm concerned it's a bit unkind to inject our own format into
> supposed "json" or "yaml". Would you please export hardware characteristics as
> dicts? As an ideal, I'd like us to be able to output everything in arbitrary
> formats.
> 
> It's fine to do this in a followup, so long as we don't do any new releases in
> between this landing and the followup doing so. Please coordinate with dave if
> you land this as is.

I thought about a dict but wanted the output to be concise (ie all on one line).
I also made the output the same as we do for printing constraints since the
concepts are similar. I'd like to discuss this please. The landing is being done
just after a release so we will have time to bikeshed it before the next one.
Sign in to reply to this message.

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