[openstack-dev] [nova] ExtraSpecs format bug

Matt Riedemann mriedem at linux.vnet.ibm.com
Tue Dec 10 21:47:31 UTC 2013



On Thursday, December 05, 2013 1:38:45 PM, Costantino, Leandro I wrote:
> Hi!
>
> i am working on the Horizon 'side' of
> https://bugs.launchpad.net/nova/+bug/1256119 , where basically
> if you create a ExtraSpec key containing '/', then it cannot be
> deleted anymore.
>
> Is there any restriction about this?
> Shall the format of the keys be limited to some specific format or any
> combination should be valid?
>
> For instance, heat use this pattern for stack names:
> [a-zA-Z][a-zA-Z0-9_.-]* .
>
>
> Regards
> Leandro
>
>
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

My response when this was brought up in IRC:

(3:12:11 PM) mriedem: lcostantino: looks like flavorid is checked 
against a regex in the code
(3:12:11 PM) mriedem: 
https://github.com/openstack/nova/blob/master/nova/compute/flavors.py#L57
(3:12:18 PM) mriedem: would think you could do the same for extra specs

I don't see any specific rules for extra_specs in the API docs or 
validation happening in the code.

--

Thanks,

Matt Riedemann




More information about the OpenStack-dev mailing list