yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08574
[Bug 1259227] Re: Bug in Glance Simple DB while applying filters on properties
** Changed in: glance
Status: Fix Committed => Fix Released
** Changed in: glance
Milestone: None => icehouse-2
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1259227
Title:
Bug in Glance Simple DB while applying filters on properties
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
This bug in simple db fails to filter images based on extra properties when images have more on than one extra properties. At the following location in simple db code, a dict is created for each extra property. This overwrites the previous properties and the resultant dict ends up holding only the last extra property. As a result, this works only when the images have exactly one extra property.
https://github.com/openstack/glance/blob/master/glance/db/simple/api.py#L280
This bug can be reproduced by adding a second extra property to one of
the fixtures used in unit tests at
https://github.com/openstack/glance/blob/master/glance/tests/unit/v2/test_images_resource.py#L142.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1259227/+subscriptions
References