yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #07038
[Bug 1259227] [NEW] Bug in Glance Simple DB while applying filters on properties
Public bug reported:
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.
** Affects: glance
Importance: Undecided
Assignee: Hemanth Makkapati (hemanth-makkapati)
Status: New
** Changed in: glance
Assignee: (unassigned) => Hemanth Makkapati (hemanth-makkapati)
--
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):
New
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
Follow ups
References