Public bug reported:

It looks like the quota unit tests might be depending on the other unit tests 
for setup.
Failure spotted in py35 on https://review.openstack.org/#/c/451208/5

http://logs.openstack.org/08/451208/5/check/gate-neutron-
python35/023b962/testr_results.html.gz


ft694.12: 
neutron.tests.unit.quota.test_resource.TestTrackedResource.test_count_with_dirty_false_StringException:
 Empty attachments:
  pythonlogging:''
  stderr
  stdout

Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/tests/base.py", 
line 116, in func
    return f(self, *args, **kwargs)
  File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/tests/unit/quota/test_resource.py",
 line 147, in test_count_with_dirty_false
    res = self._test_count()
  File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/tests/unit/quota/test_resource.py",
 line 142, in _test_count
    self.context, res.name, self.tenant_id, in_use=0)
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", line 
163, in wrapped
    return method(*args, **kwargs)
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", line 
93, in wrapped
    setattr(e, '_RETRY_EXCEEDED', True)
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 220, in __exit__
    self.force_reraise()
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/six.py",
 line 686, in reraise
    raise value
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", line 
89, in wrapped
    return f(*args, **kwargs)
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py",
 line 151, in wrapper
    ectxt.value = e.inner_exc
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 220, in __exit__
    self.force_reraise()
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/six.py",
 line 686, in reraise
    raise value
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py",
 line 139, in wrapper
    return f(*args, **kwargs)
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", line 
128, in wrapped
    LOG.debug("Retry wrapper got retriable exception: %s", e)
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 220, in __exit__
    self.force_reraise()
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/six.py",
 line 686, in reraise
    raise value
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", line 
124, in wrapped
    return f(*dup_args, **dup_kwargs)
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/quota/api.py", 
line 90, in set_quota_usage
    context, resource=resource, project_id=tenant_id)
  File "/home/jenkins/workspace/gate-neutron-python35/neutron/objects/base.py", 
line 425, in get_object
    **cls.modify_fields_to_db(kwargs)
  File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/objects/db/api.py", line 
32, in get_object
    return _get_filter_query(context, model, **kwargs).first()
  File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/objects/db/api.py", line 
27, in _get_filter_query
    query = plugin._get_collection_query(context, model, filters)
AttributeError: 'NoneType' object has no attribute '_get_collection_query'

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: gate-failure

** Tags added: gate-failure

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1677784

Title:
  quota unit test failing because of missing setup

Status in neutron:
  New

Bug description:
  It looks like the quota unit tests might be depending on the other unit tests 
for setup.
  Failure spotted in py35 on https://review.openstack.org/#/c/451208/5

  http://logs.openstack.org/08/451208/5/check/gate-neutron-
  python35/023b962/testr_results.html.gz

  
  ft694.12: 
neutron.tests.unit.quota.test_resource.TestTrackedResource.test_count_with_dirty_false_StringException:
 Empty attachments:
    pythonlogging:''
    stderr
    stdout

  Traceback (most recent call last):
    File "/home/jenkins/workspace/gate-neutron-python35/neutron/tests/base.py", 
line 116, in func
      return f(self, *args, **kwargs)
    File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/tests/unit/quota/test_resource.py",
 line 147, in test_count_with_dirty_false
      res = self._test_count()
    File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/tests/unit/quota/test_resource.py",
 line 142, in _test_count
      self.context, res.name, self.tenant_id, in_use=0)
    File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", 
line 163, in wrapped
      return method(*args, **kwargs)
    File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", 
line 93, in wrapped
      setattr(e, '_RETRY_EXCEEDED', True)
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 220, in __exit__
      self.force_reraise()
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/six.py",
 line 686, in reraise
      raise value
    File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", 
line 89, in wrapped
      return f(*args, **kwargs)
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py",
 line 151, in wrapper
      ectxt.value = e.inner_exc
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 220, in __exit__
      self.force_reraise()
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/six.py",
 line 686, in reraise
      raise value
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_db/api.py",
 line 139, in wrapper
      return f(*args, **kwargs)
    File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", 
line 128, in wrapped
      LOG.debug("Retry wrapper got retriable exception: %s", e)
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 220, in __exit__
      self.force_reraise()
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/oslo_utils/excutils.py",
 line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File 
"/home/jenkins/workspace/gate-neutron-python35/.tox/py35/lib/python3.5/site-packages/six.py",
 line 686, in reraise
      raise value
    File "/home/jenkins/workspace/gate-neutron-python35/neutron/db/api.py", 
line 124, in wrapped
      return f(*dup_args, **dup_kwargs)
    File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/db/quota/api.py", line 
90, in set_quota_usage
      context, resource=resource, project_id=tenant_id)
    File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/objects/base.py", line 
425, in get_object
      **cls.modify_fields_to_db(kwargs)
    File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/objects/db/api.py", line 
32, in get_object
      return _get_filter_query(context, model, **kwargs).first()
    File 
"/home/jenkins/workspace/gate-neutron-python35/neutron/objects/db/api.py", line 
27, in _get_filter_query
      query = plugin._get_collection_query(context, model, filters)
  AttributeError: 'NoneType' object has no attribute '_get_collection_query'

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1677784/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to