nova cli allows to create a server name with all blank space/characters

Bug #1175956 reported by Prem Karat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Prem Karat

Bug Description

xxxx@xxxxx:~$ nova boot --image "xxx" --flavor "xxx" " "

xxxx@xxxxx:~$ nova list
+--------------------------------------+------+--------+------------------+
| ID | Name | Status | Networks |
+--------------------------------------+------+--------+------------------+
| 29688fe9-2c33-4635-8f13-04efb16ee5dc | | ACTIVE | private=10.0.0.2 |
+--------------------------------------+------+--------+------------------+
As you can see above, nova cli lets a user create a server name with all blank spaces.

Revision history for this message
Prem Karat (prem-karat) wrote :

Am working on to provide a fix. Patch will be submitted soon.

Changed in nova:
assignee: nobody → Prem Karat (prem-karat)
status: New → In Progress
description: updated
Revision history for this message
Prem Karat (prem-karat) wrote :

Also nova cli allow as server name to be renamed with all blank characters.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/28183

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/28183
Committed: http://github.com/openstack/nova/commit/98ff29d13af9e0c1fa96e49e68939634c24ad2c3
Submitter: Jenkins
Branch: master

commit 98ff29d13af9e0c1fa96e49e68939634c24ad2c3
Author: Prem Karat <email address hidden>
Date: Fri May 3 22:36:04 2013 +0530

    Fix to disallow server name with all blank spaces

    * Nova CLI allows server name to be created with all blank characters.
      This fix will disallow a server name with all blank spaces during
      server/instance creation as well as while updating/renaming a server
    * Adding unit tests to test the above scenarios (create & rename
      server with blank spaces)

    Fixes bug 1175956

    Change-Id: I58af207c4a6b8579bb172d4bb612e0aa2aa6b498

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-2 → 2013.2
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.