volume name and snapshot name should be validated before creating them

Bug #1049665 reported by Arathi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

In volume-create action validate
1. volume-name
2. description

In snapshot-create action validate
1.Snapshot-name
2.Snapshot-description

Changed in nova:
assignee: nobody → Arathi (arathi-darshanam)
Revision history for this message
Brian Waldon (bcwaldon) wrote :

What validation do you expect to happen?

Changed in nova:
status: New → Incomplete
summary: - Volume-name and volume-name should be validated before creating them
+ volume name and snapshot name should be validated before creating them
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 |
+---------------------+--------------------------------------+

Changed in nova:
status: Incomplete → In Progress
Revision history for this message
Arathi (arathi-darshanam) wrote :

As per Bug: 1032066, special characters should be allowed . Closing this as invalid.

Changed in nova:
status: In Progress → Invalid
assignee: Arathi (arathi-darshanam) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.