[openstack-dev] [nova] OSAPI and deleted flavors

Vishvananda Ishaya vishvananda at gmail.com
Thu Jan 24 00:17:47 UTC 2013


On Jan 23, 2013, at 4:13 PM, Vishvananda Ishaya <vishvananda at gmail.com> wrote:

> 
> On Jan 23, 2013, at 3:38 PM, Kieran Spear <kispear at gmail.com> wrote:
> 
>> Hi all,
>> 
>> I'm investigating:
>> https://bugs.launchpad.net/horizon/+bug/1100444
>> 
>> Curling v2/tenant_id/flavors/1 we get a previously deleted flavor even if a "newer" flavor exists with the same flavor id. This makes it impossible to retrieve the newer flavor directly by ID.
>> 
>> We use UUIDs for flavor ids now in Horizon, so it's not an issue, but novaclient still allows the flavor id to be specified manually.
>> 
>> Does nova itself still allow you to create flavors with the same flavor id as a deleted flavor?
> 
> 
> Yes it does. Although you shouldn't be able to access deleted flavors that way so that sounds like a bug.
> 
> Vish


Looks like https://github.com/openstack/nova/blob/master/nova/api/openstack/compute/flavors.py#L87
should have a read_deleted="no" kwarg passed.

Vish


More information about the OpenStack-dev mailing list