cmd/juju/storage: "volume list" YAML/JSON format is non-obvious
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Andrew Wilkins | ||
1.25 |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
$ juju bootstrap
$ juju deploy --repository ~/projects/charms local:trusty/
$ juju storage volume list --format=yaml
"1":
storagetest/0:
filesystem/0:
size: 0
persistent: false
read-only: false
volume: 1/0
status:
current: pending
since: 14 Sep 2015 09:32:01+08:00
"2":
storagetest/1:
filesystem/1:
size: 0
persistent: false
read-only: false
volume: 2/1
status:
current: pending
since: 14 Sep 2015 09:32:03+08:00
-------
What are the "1" and "2" IDs? At first you might think they are the volume IDs, but no, they are machine IDs. This is confusing. Storage is meant to be stable from 1.25 onwards, so we have a small window of opportunity to fix this before 1.25 is released.
Changed in juju-core: | |
milestone: | 1.25-beta1 → 1.26-alpha1 |
status: | In Progress → Triaged |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Proposed format:
-------------------
volumes:
read- only: false
storagetest/ 0:
read- only: false
storagetest/ 1:
1/0:
provider-id: volume-1-0
storage: filesystem/0
attachments:
machines:
"1":
device: loop0
units:
machine: "1"
location: /srv/filesystem/0
size: 1024
persistent: false
status:
current: attached
since: 15 Sep 2015 19:13:50+08:00
2/1:
provider-id: volume-2-1
storage: filesystem/1
attachments:
machines:
"2":
device: loop1
units:
machine: "2"
size: 1024
persistent: false
status:
current: attached
since: 15 Sep 2015 19:14:02+08:00