← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1696376] [NEW] logging resource ut failures

 

Public bug reported:

logging resource unit tests including test_create_firewall_log_diff_log_res_diff_tenant_same_firewall
are failing on gate.

eg. http://logs.openstack.org/87/199387/75/check/gate-networking-
midonet-python27-ubuntu-xenial/48614e7/testr_results.html.gz

ft3.1: midonet.neutron.tests.unit.test_extension_logging_resource.LoggingResourceTestCase.test_create_firewall_log_diff_log_res_diff_tenant_same_firewall_StringException: pythonlogging:'': {{{
WARNING [neutron.quota.resource_registry] floatingip is already registered
 WARNING [neutron.quota.resource_registry] router is already registered
 WARNING [neutron.quota.resource_registry] firewall is already registered
 WARNING [neutron.quota.resource_registry] firewall_policy is already registered
 WARNING [neutron.quota.resource_registry] firewall_rule is already registered
 WARNING [neutron.quota.resource_registry] firewall_log is already registered
   ERROR [neutron.api.v2.resource] create failed: No details.
Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/resource.py", line 93, in resource
    result = method(request=request, **args)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 435, in create
    return self._create(request, body, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 94, in wrapped
    setattr(e, '_RETRY_EXCEEDED', True)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 90, in wrapped
    return f(*args, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 150, in wrapper
    ectxt.value = e.inner_exc
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
    return f(*args, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 129, in wrapped
    LOG.debug("Retry wrapper got retriable exception: %s", e)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 125, in wrapped
    return f(*dup_args, **dup_kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 548, in _create
    obj = do_create(body)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 530, in do_create
    request.context, reservation.reservation_id)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
    self.force_reraise()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
    six.reraise(self.type_, self.value, self.tb)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 523, in do_create
    return obj_creator(request.context, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_log/helpers.py", line 48, in wrapper
    return method(*args, **kwargs)
  File "midonet/neutron/services/logging_resource/plugin.py", line 103, in create_logging_resource_firewall_log
    context, f_log, logging_resource_id)
  File "midonet/neutron/services/logging_resource/plugin.py", line 173, in _make_info_for_midonet
    f_log_info['firewall'] = fw_plugin.get_firewall(
AttributeError: 'NoneType' object has no attribute 'get_firewall'
}}}

Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/tests/base.py", line 115, in func
    return f(self, *args, **kwargs)
  File "midonet/neutron/tests/unit/test_extension_logging_resource.py", line 291, in test_create_firewall_log_diff_log_res_diff_tenant_same_firewall
    firewall_id=self._fw_id1):
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "midonet/neutron/tests/unit/test_extension_logging_resource.py", line 135, in firewall_log
    desc, tenant_id, fw_event)
  File "midonet/neutron/tests/unit/test_extension_logging_resource.py", line 143, in _make_firewall_log
    raise webob.exc.HTTPClientError(code=res.status_int)
webob.exc.HTTPClientError: The server could not comply with the request since it is either malformed or otherwise incorrect.

** Affects: neutron
     Importance: Critical
     Assignee: YAMAMOTO Takashi (yamamoto)
         Status: In Progress


** Tags: fwaas gate-failure midokura-jira-tracked

** Changed in: networking-midonet
   Importance: Undecided => Critical

** Changed in: networking-midonet
       Status: New => In Progress

** Changed in: networking-midonet
    Milestone: None => 5.0.0

** Changed in: networking-midonet
     Assignee: (unassigned) => YAMAMOTO Takashi (yamamoto)

** Tags added: gate-failure

** Tags added: midokura-jira-tracked

** Project changed: networking-midonet => neutron

** Changed in: neutron
    Milestone: 5.0.0 => None

** Tags added: fwaas

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

Title:
  logging resource ut failures

Status in neutron:
  In Progress

Bug description:
  logging resource unit tests including test_create_firewall_log_diff_log_res_diff_tenant_same_firewall
  are failing on gate.

  eg. http://logs.openstack.org/87/199387/75/check/gate-networking-
  midonet-python27-ubuntu-xenial/48614e7/testr_results.html.gz

  ft3.1: midonet.neutron.tests.unit.test_extension_logging_resource.LoggingResourceTestCase.test_create_firewall_log_diff_log_res_diff_tenant_same_firewall_StringException: pythonlogging:'': {{{
  WARNING [neutron.quota.resource_registry] floatingip is already registered
   WARNING [neutron.quota.resource_registry] router is already registered
   WARNING [neutron.quota.resource_registry] firewall is already registered
   WARNING [neutron.quota.resource_registry] firewall_policy is already registered
   WARNING [neutron.quota.resource_registry] firewall_rule is already registered
   WARNING [neutron.quota.resource_registry] firewall_log is already registered
     ERROR [neutron.api.v2.resource] create failed: No details.
  Traceback (most recent call last):
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/resource.py", line 93, in resource
      result = method(request=request, **args)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 435, in create
      return self._create(request, body, **kwargs)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 94, in wrapped
      setattr(e, '_RETRY_EXCEEDED', True)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 90, in wrapped
      return f(*args, **kwargs)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 150, in wrapper
      ectxt.value = e.inner_exc
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
      return f(*args, **kwargs)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 129, in wrapped
      LOG.debug("Retry wrapper got retriable exception: %s", e)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/db/api.py", line 125, in wrapped
      return f(*dup_args, **dup_kwargs)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 548, in _create
      obj = do_create(body)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 530, in do_create
      request.context, reservation.reservation_id)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
      self.force_reraise()
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
      six.reraise(self.type_, self.value, self.tb)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/api/v2/base.py", line 523, in do_create
      return obj_creator(request.context, **kwargs)
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_log/helpers.py", line 48, in wrapper
      return method(*args, **kwargs)
    File "midonet/neutron/services/logging_resource/plugin.py", line 103, in create_logging_resource_firewall_log
      context, f_log, logging_resource_id)
    File "midonet/neutron/services/logging_resource/plugin.py", line 173, in _make_info_for_midonet
      f_log_info['firewall'] = fw_plugin.get_firewall(
  AttributeError: 'NoneType' object has no attribute 'get_firewall'
  }}}

  Traceback (most recent call last):
    File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/tests/base.py", line 115, in func
      return f(self, *args, **kwargs)
    File "midonet/neutron/tests/unit/test_extension_logging_resource.py", line 291, in test_create_firewall_log_diff_log_res_diff_tenant_same_firewall
      firewall_id=self._fw_id1):
    File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
      return self.gen.next()
    File "midonet/neutron/tests/unit/test_extension_logging_resource.py", line 135, in firewall_log
      desc, tenant_id, fw_event)
    File "midonet/neutron/tests/unit/test_extension_logging_resource.py", line 143, in _make_firewall_log
      raise webob.exc.HTTPClientError(code=res.status_int)
  webob.exc.HTTPClientError: The server could not comply with the request since it is either malformed or otherwise incorrect.

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


Follow ups