aggregate_get_by_host returns aggregates from other hosts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Kieran Spear | ||
Grizzly |
Fix Released
|
High
|
Kieran Spear |
Bug Description
This is basically a continuation of:
https:/
The fix for that bug seems to only fix the case of aggregates with no hosts being included. If aggregates with a different host exist they are also included in the returned list. An inner joinedload happened to fix the no-hosts case but the host filter is still applied inconsistently due to the lack of an explicit join on AggregateHost. By the look of the query generated it also returns deleted hosts.
rmm0811's comment from the other bug:
"""
I encountered the same problem on grizzly version. And I change the api.py follow the commited.
Howerver, it is also not work well.
According the document of sqlalchemy, query options.
query.filter(
http://
nova/db/
The line number 4625 need to change like this:
query = query.join(
nova/tests/
need to add the assert " as is not in result set"
"""
Changed in nova: | |
assignee: | nobody → Kieran Spear (kspear) |
tags: | added: db grizzly-backport-potential |
Changed in nova: | |
importance: | Undecided → High |
tags: | removed: grizzly-backport-potential |
Changed in nova: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | havana-3 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/37026
Review: https:/