yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #18484
[Bug 1352193] [NEW] The nova API service can’t hand image metadata properly when metadata key contains uppercase letter
Public bug reported:
OS: centos 6.5 64bit
openstack release: icehouse
Steps to reproduce:
1. Call the image metadata API of nova using the following command:
curl -X 'POST' -v http://IP:PORT/v2/${tenant_id}/images/${image_id}/metadata -H "X-Auth-Token: $token" -H 'Content-type: application/json' -d '{"metadata":{"Key1":"Value1"}}' | python -mjson.tool
2. Execute the above command again:
curl -X 'POST' -v http://IP:PORT/v2/${tenant_id}/images/${image_id}/metadata -H "X-Auth-Token: $token" -H 'Content-type: application/json' -d '{"metadata":{"Key1":"Value1"}}' | python -mjson.tool
Expected result:
In step1, the json response should be:
{"metadata":{"Key1":"Value1"}}
In setp2, the json response should be:
{"metadata":{"Key1":"Value1"}}
Observed result:
In step1, the json response is:
{"metadata":{"key1":"Value1"}}
In setp2, the json response is:
{"metadata":{"key1":"Value1,Value1"}}
Besides, we can observer that each image metadata key in table
image_properties of glance DB is converted to lowercase even if the key
user inputted contains uppercase letter.
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1352193
Title:
The nova API service can’t hand image metadata properly when metadata
key contains uppercase letter
Status in OpenStack Compute (Nova):
New
Bug description:
OS: centos 6.5 64bit
openstack release: icehouse
Steps to reproduce:
1. Call the image metadata API of nova using the following command:
curl -X 'POST' -v http://IP:PORT/v2/${tenant_id}/images/${image_id}/metadata -H "X-Auth-Token: $token" -H 'Content-type: application/json' -d '{"metadata":{"Key1":"Value1"}}' | python -mjson.tool
2. Execute the above command again:
curl -X 'POST' -v http://IP:PORT/v2/${tenant_id}/images/${image_id}/metadata -H "X-Auth-Token: $token" -H 'Content-type: application/json' -d '{"metadata":{"Key1":"Value1"}}' | python -mjson.tool
Expected result:
In step1, the json response should be:
{"metadata":{"Key1":"Value1"}}
In setp2, the json response should be:
{"metadata":{"Key1":"Value1"}}
Observed result:
In step1, the json response is:
{"metadata":{"key1":"Value1"}}
In setp2, the json response is:
{"metadata":{"key1":"Value1,Value1"}}
Besides, we can observer that each image metadata key in table
image_properties of glance DB is converted to lowercase even if the
key user inputted contains uppercase letter.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1352193/+subscriptions
Follow ups
References