e2c2b1d586
Some callers of instance_get_all_by_host are passing
in columns_to_join=[], like the _sync_scheduler_instance_info
periodic task in the compute manager, to avoid unnecessary
joins with other tables.
The problem was columns_to_join wasn't being passed through
to _instance_get_all_query which builds the actual query
method, and defaults to join on info_cache and security_groups.
This fixes the problem by passing through columns_to_join and
provides tests to show it working both with and without the joins.
Change-Id: I69f2ddca8fb0935e03b0f426891d01360940a85a
Closes-Bug: #1680616
(cherry picked from commit
|
||
---|---|---|
.. | ||
__init__.py | ||
fakes.py | ||
test_db_api.py | ||
test_migration_utils.py | ||
test_migrations.py | ||
test_models.py | ||
test_sqlalchemy_migration.py |