Comment 1 for bug 1494841

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

I assume this changed with [1]. The DB api returns the deleted instances by default, as long as the filter says otherwise [2]. "nova-manage" defines this filter in the context, but this context isn't used by the DB api.

[1] commit "Convert nova-manage list to use Instance objects";
    https://git.openstack.org/cgit/openstack/nova/commit/?id=ba5c71d8d38136e804409f93d7dc2cc7a79427fe
[2] method "instance_get_all_by_filters_sort";
    https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L1883