Reviewed: https://review.openstack.org/38587 Committed: http://github.com/openstack/nova/commit/c30e03e2aa1acc0207be47b3acc156ddcfd94947 Submitter: Jenkins Branch: stable/grizzly
commit c30e03e2aa1acc0207be47b3acc156ddcfd94947 Author: Kieran Spear <email address hidden> Date: Mon Jul 15 22:00:19 2013 +1000
Fix filtering aggregate metadata by key
Filtering by metadata key has no effect in the following two functions:
aggregate_metadata_get_by_host aggregate_host_get_by_metadata_key
Rely on the explicit join instead of joinedload to load the _metadata relationship in these functions (indicated by the contains_eager option), so that filtering by key still applies when the metadata is collected.
Fixes bug 1201283.
Conflicts:
nova/tests/db/test_db_api.py
Change-Id: I3e44b5db8d67787bfa14f0e57d30a02a271a8833 (cherry picked from commit 7e8fa8f3e6acac0e510cd1fc5af591f9a321d03a)
Reviewed: https:/ /review. openstack. org/38587 github. com/openstack/ nova/commit/ c30e03e2aa1acc0 207be47b3acc156 ddcfd94947
Committed: http://
Submitter: Jenkins
Branch: stable/grizzly
commit c30e03e2aa1acc0 207be47b3acc156 ddcfd94947
Author: Kieran Spear <email address hidden>
Date: Mon Jul 15 22:00:19 2013 +1000
Fix filtering aggregate metadata by key
Filtering by metadata key has no effect in the following two functions:
Rely on the explicit join instead of joinedload to load the _metadata
relationship in these functions (indicated by the contains_eager
option), so that filtering by key still applies when the metadata is
collected.
Fixes bug 1201283.
Conflicts:
nova/ tests/db/ test_db_ api.py
Change-Id: I3e44b5db8d6778 7bfa14f0e57d30a 02a271a8833 e510cd1fc5af591 f9a321d03a)
(cherry picked from commit 7e8fa8f3e6acac0