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

Kieran Spear kispear at gmail.com
Thu Jan 24 00:58:00 UTC 2013


On 24/01/13 11:13, Vishvananda Ishaya 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.

I think sometimes we need to though, e.g., when we show the flavor 
details for an existing instance that was built using the deleted flavor.

I noticed a "disabled" column was added to instance_types at some point, 
but I haven't looked into how that is used.

Kieran

>
> Vish
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>




More information about the OpenStack-dev mailing list