volume list does not show attached servers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
Steve Martinelli |
Bug Description
We are gradually moving all of CERN users to the openstack unified cli.
One item was the volume list not showing the servers the volume was attached to. We're running icehouse. the volumes are shown as in-use but no server attached. I could not find a previously reported bug but feel free to close if it is a known problem.
$ openstack volume list
+------
| ID | Display Name | Status | Size | Attached |
+------
| 4e2b46e4-
| d8d8be88-
| 8e9fa4ec-
| 80b725ee-
+------
The server show however has the volume.
$ openstack server show timhwag144
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | CERN_NETWORK=
| config_drive | |
| created | 2014-12-
| flavor | m1.small (2) |
| hostId | 6c54833ea492db0
| id | 4a9eb25f-
| image | TimCC7 (b7463c70-
| key_name | lxplus |
| name | timhwag144 |
| os-extended-
| progress | 0 |
| properties | |
| security_groups | [{u'name': u'default'}] |
| status | ACTIVE |
| tenant_id | 841615a3-
| updated | 2014-12-
| user_id | timbell |
+------
Changed in python-openstackclient: | |
milestone: | none → m7 |
Changed in python-openstackclient: | |
status: | Fix Committed → Fix Released |
Got something going on over here: https:/ /review. openstack. org/#/c/ 143513/
It'll produce output similar to that of horizon:
steve:python- openstackclient $ openstack volume list ------- ------- ------- ------- ----+-- ------- -----+- ------- ---+--- ---+--- ------- ------- ------- ------+ ------- ------- ------- ------- ----+-- ------- -----+- ------- ---+--- ---+--- ------- ------- ------- ------+ 242a-47d7- 893e-8c5a8553f3 1e | v2 | available | 1 | | 4f6c-48a4- a80c-6ec63f182b 0d | vol1 | in-use | 1 | Attached to in2 on /dev/vdb | ------- ------- ------- ------- ----+-- ------- -----+- ------- ---+--- ---+--- ------- ------- ------- ------+
+------
| ID | Display Name | Status | Size | Attached to |
+------
| 5554d8d6-
| 43d1a560-
+------