In http://git.openstack.org/cgit/openstack/nova/tree/nova/db/sqlalchemy/api.py#n2150 we did copied the filters dict in http://git.openstack.org/cgit/openstack/nova/tree/nova/db/sqlalchemy/api.py#n2188 and http://git.openstack.org/cgit/openstack/nova/tree/nova/db/sqlalchemy/api.py#n2209 we pop the first tag in tags to do SQL query, as we didn't do deep copy, the "tags" or "not-tags" key will be still in filters dict but the value has been removed, as we loop through every cell, Error will happen, and also, the result is incorrect.
In http:// git.openstack. org/cgit/ openstack/ nova/tree/ nova/db/ sqlalchemy/ api.py# n2150 git.openstack. org/cgit/ openstack/ nova/tree/ nova/db/ sqlalchemy/ api.py# n2188 and git.openstack. org/cgit/ openstack/ nova/tree/ nova/db/ sqlalchemy/ api.py# n2209
we did copied the filters dict
in http://
http://
we pop the first tag in tags to do SQL query, as we didn't do deep copy, the
"tags" or "not-tags" key will be still in filters dict but the value has been removed,
as we loop through every cell, Error will happen, and also, the result is incorrect.