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

Issue 49510043: Status command shows revision status (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by wallyworld
Modified:
10 years, 3 months ago
Reviewers:
william.reade, mp+200949, thumper
Visibility:
Public.

Description

Status command shows revision status juju status now shows the revision status of the service and unit charms. If a service is running a charm different than the charm store version, as determined by the charm url, "can-upgrade-to" is shown. If a unit has a charm url that is different to its parent service charm url, "upgrading-from" is shown. If a service is running a local charm, no extra status is shown since comparing to a charm store charm url doesn't make sense then. The charm store revisions are updated periodically by a worker which runs on the state server. The worker is implemented in an upstream branch. https://code.launchpad.net/~wallyworld/juju-core/status-charm-version/+merge/200949 Requires: https://code.launchpad.net/~wallyworld/juju-core/charm-version-worker/+merge/200948 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Status command shows revision status #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -58 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status.go View 1 4 chunks +4 lines, -0 lines 0 comments Download
M cmd/juju/status_test.go View 1 35 chunks +250 lines, -34 lines 0 comments Download
M state/api/client.go View 1 2 chunks +2 lines, -0 lines 0 comments Download
M state/statecmd/status.go View 1 9 chunks +56 lines, -24 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
10 years, 3 months ago (2014-01-09 04:12:17 UTC) #1
william.reade
Hmm. "UpgradingFrom" in unit status would match "CanUpgradeTo" in service status, if we decided to ...
10 years, 3 months ago (2014-01-13 09:20:29 UTC) #2
wallyworld
Please take a look.
10 years, 3 months ago (2014-01-16 05:33:17 UTC) #3
wallyworld
I implemented the changes and added more tests https://codereview.appspot.com/49510043/diff/1/cmd/juju/status.go File cmd/juju/status.go (right): https://codereview.appspot.com/49510043/diff/1/cmd/juju/status.go#newcode185 cmd/juju/status.go:185: RevisionStatus ...
10 years, 3 months ago (2014-01-16 22:54:28 UTC) #4
thumper
10 years, 3 months ago (2014-01-17 01:11:42 UTC) #5
On 2014/01/16 22:54:28, wallyworld wrote:
> I implemented the changes and added more tests
> 
> https://codereview.appspot.com/49510043/diff/1/cmd/juju/status.go
> File cmd/juju/status.go (right):
> 
> https://codereview.appspot.com/49510043/diff/1/cmd/juju/status.go#newcode185
> cmd/juju/status.go:185: RevisionStatus string               
> `json:"charm-version,omitempty" yaml:"charm-version,omitempty"`
> On 2014/01/13 09:20:29, william.reade wrote:
> > `CanUpgradeTo string` with an actual charm url, perhaps? 
> 
> Yeah good idea. Done
> 
> https://codereview.appspot.com/49510043/diff/1/cmd/juju/status.go#newcode279
> cmd/juju/status.go:279: RevisionStatus: unit.RevisionStatus,
> On 2014/01/13 09:20:29, william.reade wrote:
> > Huh, I thought we had a Charm in unit status already. I think it's better to
> > expose that, and only fill it in if it differs from its service's charm
> > (indicating an upgrade pending or in progress).
> 
> Also done., It is displayed as "upgrading-from" and shows the current out of
> date charm url.

LGTM
Sign in to reply to this message.

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