cinder create with name = 'None' and without name is ambiguous
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-cinderclient |
Fix Released
|
Undecided
|
yatin |
Bug Description
The steps to reproduce the bug:
1) necadmin@
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2015-02-
| display_description | None |
| display_name | None |
| encrypted | False |
| id | 4fe8bc26-
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+------
2) necadmin@
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2015-02-
| display_description | None |
| display_name | None |
| encrypted | False |
| id | 87d8d9b0-
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+------
3)necadmin@
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 39151370-
| 4fe8bc26-
| 6f03502d-
| 87d8d9b0-
| aad047de-
+------
We can not descriminate here that the volume has a name None or no name is assigned to it. For Ex:
4) necadmin@
one volume to which we assigned the name 'None' gets deleted.
5)necadmin@
+------
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+------
| 39151370-
| 4fe8bc26-
| 6f03502d-
| aad047de-
+------
6) cinder delete None
Delete for volume None failed: No volume with a name or ID of 'None' exists.
ERROR: Unable to delete any of the specified volumes.
I have also verified the bug with --os-volume-
I think it should not be allowed to create a volume with Name = 'None' and message should be displayed as: 'None' is a reserved word.
Changed in python-cinderclient: | |
assignee: | nobody → Yamini Sardana (yamini-sardana) |
Changed in python-cinderclient: | |
assignee: | Yamini Sardana (yamini-sardana) → Kanchan Gupta (kanchan-gupta1) |
Changed in python-cinderclient: | |
assignee: | Kanchan Gupta (kanchan-gupta1) → yatin (yatinkarel) |
Changed in python-cinderclient: | |
milestone: | none → 1.3.1 |
status: | Fix Committed → Fix Released |
Other components like Nova, Neutron, Glance etc also allows the Name to be used as None.
In this case, when we are not giving any Name to the volume, the display of volume details should show a blank instead of None. So, this in my opinion in a display issue.