flavor created successfully when flavorid neither integer nor UUID

Bug #1426806 reported by Eric Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Low
Abhishek Talwar

Bug Description

version: 2014.1 icehouse-stable

# nova help flavor-create
...
  <id> Unique ID (integer or UUID) for the new flavor. If
                        specifying 'auto', a UUID will be generated as id
...

"id" should be integer or UUID.

But when the "id" was set to non-integer or non-UUID, the flavor was also created successfully.

# nova flavor-create flv-testdddfasdfsfdsfdsf jljdfsfojgnngllllllll 512 1 1
+-----------------------+--------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+-----------------------+--------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| jljdfsfojgnngllllllll | flv-testdddfasdfsfdsfdsf | 512 | 1 | 0 | | 1 | 1.0 | True |
+-----------------------+--------------------------+-----------+------+-----------+------+-------+-------------+-----------+

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Changed in nova:
assignee: nobody → Anand Shanmugam (anand1712)
Changed in nova:
status: Confirmed → In Progress
Changed in nova:
assignee: Anand Shanmugam (anand1712) → nobody
Changed in nova:
status: In Progress → Confirmed
Changed in nova:
assignee: nobody → Amandeep (rattenpal-amandeep)
Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Amandeep (rattenpal-amandeep) wrote :
Revision history for this message
melanie witt (melwitt) wrote :

Is this bug supposed to be under nova? It's either a novaclient help message issue or a Wishlist for the nova API.

Nova API allows non-integer non-uuid flavorids, so changing this at the nova API level would be an API change with microversion needed.

Revision history for this message
Diana Clarke (diana-clarke) wrote :

I agree with Melanie – the help message should be changed rather than introducing a backward incompatible change to the nova API.

Here's a bug & patch to fix the help message. If the patch for bug 1503503 gets merged, then this bug can be closed.

    https://bugs.launchpad.net/python-novaclient/+bug/1503503

Thanks folks!

Changed in nova:
assignee: Amandeep (rattenpal-amandeep) → Abhishek Talwar (abhishek-talwar)
Revision history for this message
Abhishek Talwar (abhishek-talwar) wrote :
Revision history for this message
Diana Clarke (diana-clarke) wrote :

Closing this bug since the help message in python-novaclient was updated to reflect the actual behaviour.

    Before: "Unique ID (integer or UUID) for the new flavor. If specifying 'auto', a UUID will be generated as ID."
    After: "Unique ID of the new flavor. Specifying 'auto' will generated a UUID for the ID."

https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=d10486f064630bb04d0e084df456514770e62160

Changed in nova:
status: In Progress → Invalid
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.