'juju status' difficult to read and provides unneccessary information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Low
|
Unassigned | ||
juju-core (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
From using 'juju status' it provides me with a lot of detail, but most of it I don't care about. I care about the following:
* Are my machines up.
* Are my charms connected.
* Where can access my service online?
To illustrate this I deployed two wordpress charms with mysql. This is what 'juju status' gives me:
jono@forge:~$ juju status
machines:
"0":
agent-state: started
agent-version: 1.10.0
dns-name: ec2-107-
instance-id: i-d5db6fbf
series: precise
"1":
agent-state: started
agent-version: 1.10.0
dns-name: ec2-54-
instance-id: i-74500d1c
series: precise
"2":
agent-state: started
agent-version: 1.10.0
dns-name: ec2-54-
instance-id: i-5a500d32
series: precise
"3":
agent-state: started
agent-version: 1.10.0
dns-name: ec2-54-
instance-id: i-13169273
series: precise
services:
mysql:
charm: cs:precise/mysql-19
exposed: false
relations:
db:
- wordpress
units:
mysql/0:
machine: "2"
wordpress:
charm: cs:precise/
exposed: true
relations:
db:
- mysql
loadbalancer:
- wordpress
units:
wordpress/0:
machine: "1"
wordpress/1:
machine: "3"
I just took a few minutes to play with an alternative way of presenting this information based upon the information I really care about (I think all the detail shown above should be accessible with 'juju status -v').
I think this is a better way of displaying it:
jono@forge:~$ juju status
Overview:
[All services started]
wordpress/0: ec2-54-
wordpress/1: ec2-54-
mysql: ec2-54-
Topology:
mysql/0 --|-- wordpress/0
|-- wordpress/1
Machines:
"0" (i-d5db6fbf) [STARTED]
Version: 1.10.0
DNS: ec2-107-
Series: precise
"1" (i-74500d1c) [STARTED]
Version: 1.10.0
DNS: ec2-54-
Series: precise
"2" (i-5a500d32) [STARTED]
Version: 1.10.0
DNS: ec2-54-
Series: precise
"3" (i-5a500d32) [STARTED]
Version: 1.10.0
DNS: ec2-54-
Series: precise
The 'Overview' section tells me if everything is up and where to access my things. The 'Topology' section makes it clear that everything is connected. The 'Machines' section gives me details about the individual machines, but I re-formatted these to highlight the status (I put all status indications in square brackets in this mock-up).
I would strongly recommend we display this (or another improved) simplified status as the default and show the detail with -v.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: juju-core 1.10.0.1-0ubuntu3
ProcVersionSign
Uname: Linux 3.9.0-2-generic i686
ApportVersion: 2.10.2-0ubuntu1
Architecture: i386
Date: Wed May 22 14:35:59 2013
InstallationDate: Installed on 2013-05-05 (17 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha i386 (20130504)
MarkForUpload: True
SourcePackage: juju-core
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in juju-core (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Wishlist |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
tags: |
added: ui removed: cli-ui |
tags: | added: improvement |
Changed in juju-core: | |
importance: | Wishlist → Low |
Changed in juju-core (Ubuntu): | |
status: | Triaged → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.