yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #62781
[Bug 1677636] [NEW] TestTrackedResource.test_resync failed with AttributeError: 'NoneType' object has no attribute '_get_collection_query'
Public bug reported:
http://logs.openstack.org/18/442518/11/gate/neutron-coverage-ubuntu-
xenial/e0c4f27/console.html
2017-03-30 11:30:54.119979 | Traceback (most recent call last):
2017-03-30 11:30:54.120013 | File "neutron/tests/base.py", line 116, in func
2017-03-30 11:30:54.120036 | return f(self, *args, **kwargs)
2017-03-30 11:30:54.120070 | File "neutron/tests/unit/quota/test_resource.py", line 255, in test_resync
2017-03-30 11:30:54.120091 | res.mark_dirty(self.context)
2017-03-30 11:30:54.120120 | File "neutron/quota/resource.py", line 190, in mark_dirty
2017-03-30 11:30:54.120151 | quota_api.set_quota_usage_dirty(context, self.name, tenant_id)
2017-03-30 11:30:54.120177 | File "neutron/db/api.py", line 163, in wrapped
2017-03-30 11:30:54.120199 | return method(*args, **kwargs)
2017-03-30 11:30:54.120266 | File "/home/jenkins/workspace/neutron-coverage-ubuntu-xenial/.tox/cover/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 963, in wrapper
2017-03-30 11:30:54.120302 | return fn(*args, **kwargs)
2017-03-30 11:30:54.120338 | File "neutron/db/quota/api.py", line 119, in set_quota_usage_dirty
2017-03-30 11:30:54.120366 | context, resource=resource, project_id=tenant_id)
2017-03-30 11:30:54.120394 | File "neutron/objects/base.py", line 425, in get_object
2017-03-30 11:30:54.120417 | **cls.modify_fields_to_db(kwargs)
2017-03-30 11:30:54.120446 | File "neutron/objects/db/api.py", line 32, in get_object
2017-03-30 11:30:54.120476 | return _get_filter_query(context, model, **kwargs).first()
2017-03-30 11:30:54.120506 | File "neutron/objects/db/api.py", line 27, in _get_filter_query
2017-03-30 11:30:54.120542 | query = plugin._get_collection_query(context, model, filters)
2017-03-30 11:30:54.120580 | AttributeError: 'NoneType' object has no attribute '_get_collection_query'
** Affects: neutron
Importance: High
Assignee: Ihar Hrachyshka (ihar-hrachyshka)
Status: Confirmed
** Tags: gate-failure unittest
** Changed in: neutron
Status: New => Confirmed
** Changed in: neutron
Importance: Undecided => High
** Tags added: gate-failure unittest
** Changed in: neutron
Assignee: (unassigned) => Ihar Hrachyshka (ihar-hrachyshka)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1677636
Title:
TestTrackedResource.test_resync failed with AttributeError: 'NoneType'
object has no attribute '_get_collection_query'
Status in neutron:
Confirmed
Bug description:
http://logs.openstack.org/18/442518/11/gate/neutron-coverage-ubuntu-
xenial/e0c4f27/console.html
2017-03-30 11:30:54.119979 | Traceback (most recent call last):
2017-03-30 11:30:54.120013 | File "neutron/tests/base.py", line 116, in func
2017-03-30 11:30:54.120036 | return f(self, *args, **kwargs)
2017-03-30 11:30:54.120070 | File "neutron/tests/unit/quota/test_resource.py", line 255, in test_resync
2017-03-30 11:30:54.120091 | res.mark_dirty(self.context)
2017-03-30 11:30:54.120120 | File "neutron/quota/resource.py", line 190, in mark_dirty
2017-03-30 11:30:54.120151 | quota_api.set_quota_usage_dirty(context, self.name, tenant_id)
2017-03-30 11:30:54.120177 | File "neutron/db/api.py", line 163, in wrapped
2017-03-30 11:30:54.120199 | return method(*args, **kwargs)
2017-03-30 11:30:54.120266 | File "/home/jenkins/workspace/neutron-coverage-ubuntu-xenial/.tox/cover/local/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 963, in wrapper
2017-03-30 11:30:54.120302 | return fn(*args, **kwargs)
2017-03-30 11:30:54.120338 | File "neutron/db/quota/api.py", line 119, in set_quota_usage_dirty
2017-03-30 11:30:54.120366 | context, resource=resource, project_id=tenant_id)
2017-03-30 11:30:54.120394 | File "neutron/objects/base.py", line 425, in get_object
2017-03-30 11:30:54.120417 | **cls.modify_fields_to_db(kwargs)
2017-03-30 11:30:54.120446 | File "neutron/objects/db/api.py", line 32, in get_object
2017-03-30 11:30:54.120476 | return _get_filter_query(context, model, **kwargs).first()
2017-03-30 11:30:54.120506 | File "neutron/objects/db/api.py", line 27, in _get_filter_query
2017-03-30 11:30:54.120542 | query = plugin._get_collection_query(context, model, filters)
2017-03-30 11:30:54.120580 | AttributeError: 'NoneType' object has no attribute '_get_collection_query'
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1677636/+subscriptions
Follow ups