Comment 2 for bug 1049665

Revision history for this message
Arathi (arathi-darshanam) wrote :

Able to create volumes with special characters.
root@ubuntu1204:~# nova volume-create 0 --display_name '!@#$%^&' --display_description '^&*()$%&'
root@ubuntu1204:~# nova volume-list
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| 0a505889-1fcf-419d-89d9-ec9095ca7efb | available | !@#$%^& | 0 | None | |

root@ubuntu1204:~# nova volume-show 0a505889-1fcf-419d-89d9-ec9095ca7efb
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| created_at | 2012-09-13 09:59:28 |
| display_description | ^&*()$%& |
| display_name | !@#$%^& |
| id | 0a505889-1fcf-419d-89d9-ec9095ca7efb |
| metadata | {} |
| size | 0 |
| snapshot_id | None |
| status | available |
| volume_type | None |
+---------------------+--------------------------------------+
root@ubuntu1204:~#

root@ubuntu1204:~# nova volume-snapshot-create 0a505889-1fcf-419d-89d9-ec9095ca7efb --display_name '%^^&*()#$%' --display_description '$#%$^%&%^&%'
root@ubuntu1204: nova volume-snapshot-list
+--------------------------------------+--------------------------------------+-----------+--------------+------+
| ID | Volume ID | Status | Display Name | Size |
+--------------------------------------+--------------------------------------+-----------+--------------+------+
| e34766a8-d18f-46e9-b4fd-4b63500ac6ca | 0a505889-1fcf-419d-89d9-ec9095ca7efb | available | %^^&*()#$% | 0 |
+--------------------------------------+--------------------------------------+-----------+--------------+------+
root@ubuntu1204:~# nova volume-snapshot-show e34766a8-d18f-46e9-b4fd-4b63500ac6ca
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| created_at | 2012-09-13 10:10:25 |
| display_description | $#%$^%&%^&% |
| display_name | %^^&*()#$% |
| id | e34766a8-d18f-46e9-b4fd-4b63500ac6ca |
| size | 0 |
| status | available |
| volume_id | 0a505889-1fcf-419d-89d9-ec9095ca7efb |
+---------------------+--------------------------------------+