[openstack-dev] [nova] Do we still want to lowercase metadata keys?

Matthew Booth mbooth at redhat.com
Mon Aug 13 15:36:42 UTC 2018


On Mon, 13 Aug 2018 at 15:27, Jay Pipes <jaypipes at gmail.com> wrote:
> Do you want case-insensitive keys or do you not want case-insensitive keys?
>
> It seems to me that people complain that MySQL is case-insensitive by
> default but actually *like* the concept that a metadata key of "abc"
> should be "equal to" a metadata key of "ABC".
>
> In other words, it seems to me that users actually expect that:
>
>  > nova aggregate-create agg1
>  > nova aggregate-set-metadata agg1 abc=1
>  > nova aggregate-set-metadata agg1 ABC=2
>
> should result in the original "abc" metadata item getting its value set
> to "2".

Incidentally, this particular example won't work today: it will just
throw an error. I believe the same would apply to user metadata on an
instance. IOW this particular example doesn't regress if you fix the
bug. The regression would be anything user-facing which queries by
metadata key. What does that?

Matt
-- 
Matthew Booth
Red Hat OpenStack Engineer, Compute DFG

Phone: +442070094448 (UK)



More information about the OpenStack-dev mailing list