Volume type 'None' gives indistinguishable CLI output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Low
|
Unassigned |
Bug Description
If I create a volume type with name 'None'
$ cinder type-create None
And then create a volume with type 'None' and another volume without any type:
$ cinder create 1
$ cinder create 1 --volume-type None
And then when I list out the volumes:
$ cinder list
+----
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+----
| 0754f0a6-
| 1ac61e36-
+----
I am unable to distinguish which one is of which type.
tags: | added: api |
Changed in cinder: | |
status: | New → Confirmed |
milestone: | none → icehouse-2 |
Changed in cinder: | |
assignee: | nobody → Rohan (kanaderohan) |
Changed in cinder: | |
assignee: | Rohan (kanaderohan) → Shrirang Phadke (shrirangphadke) |
Changed in python-cinderclient: | |
assignee: | nobody → Rohan (kanaderohan) |
no longer affects: | cinder |
@Mike, any thought on what should be the solution? Should we just disallow the string 'None' for volume type, or make the CLI output appear different for volume type 'None' and no volume type?
Note that currently there is no way in Cinder API to list all the volumes created with no type. When we call '/v2/<tenantID> /volumes? volume_ type=None' , all the volumes with 'None' volume type are returned.
This makes me lean towards the first solution. Thoughts?