gateway device UT failure

Bug #1696389 reported by YAMAMOTO Takashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

the following tests are failing.

test_create_gateway_device_hw_vtep
test_list_gateway_devices
test_show_gateway_device_hw_vtep

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

ft1.20: midonet.neutron.tests.unit.test_extension_gateway_device.GatewayDeviceTestCaseWithML2.test_create_gateway_device_hw_vtep_StringException: stderr: {{{
Traceback (most recent call last):
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 457, in fire_timers
    timer()
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/eventlet/hubs/timer.py", line 58, in __call__
    cb(*args, **kw)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
    result = function(*args, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
    return f(*args, **kwargs)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/plugins/ml2/ovo_rpc.py", line 98, in dispatch_events
    obj = self._obj_class.get_object(context, id=resource_id)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/objects/base.py", line 441, in get_object
    return cls._load_object(context, db_obj)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/objects/base.py", line 399, in _load_object
    obj.from_db_object(db_obj)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/objects/subnet.py", line 248, in from_db_object
    super(Subnet, self).from_db_object(db_obj)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/objects/base.py", line 343, in from_db_object
    self.load_synthetic_db_fields(db_obj)
  File "/home/jenkins/workspace/gate-networking-midonet-python27-ubuntu-xenial/.tmp/tmp.NahFG7mu4Z/openstack/neutron/neutron/objects/base.py", line 592, in load_synthetic_db_fields
    foreign_keys = objclass.foreign_keys.get(clsname)
AttributeError: type object 'Route' has no attribute 'foreign_keys'
}}}

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_gateway_device.py", line 460, in test_create_gateway_device_hw_vtep
    with self.gateway_device_type_hw_vtep() as gw_dev:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "midonet/neutron/tests/unit/test_extension_gateway_device.py", line 74, in gateway_device_type_hw_vtep
    tunnel_ips)
  File "midonet/neutron/tests/unit/test_extension_gateway_device.py", line 104, in _make_gateway_device_hw_vtep
    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.

tags: added: gate-failure midokura-jira-tracked
Changed in networking-midonet:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
importance: Undecided → Critical
milestone: none → 5.0.0
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (master)

Fix proposed to branch: master
Review: https://review.openstack.org/472523

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/475245

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/475245
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=09b0e58bda7ced114943a3e1463f897ec1aaf29a
Submitter: Jenkins
Branch: master

commit 09b0e58bda7ced114943a3e1463f897ec1aaf29a
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon Jun 19 15:07:46 2017 +0900

    tox.ini: Disable failing unit tests

    These are failing due to changes in neutron-fwaas.

    Also, workaround a recent devstack issue by defining
    dummy AGENT_BINARY. This part is basically a copy-and-paste
    from https://review.openstack.org/#/c/474784/ .

    Related-Bug: #1696376
    Realted-Bug: #1696389
    Related-Bug: #1698129
    Co-Authored-By: Isaku Yamahata <email address hidden>
    Change-Id: Iecb6a43be01cbd4057470d56cd7a2e59ceebfcb4

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/472523
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=a8ab6b536b293aade750faf7267a98acf3b1c92b
Submitter: Jenkins
Branch: master

commit a8ab6b536b293aade750faf7267a98acf3b1c92b
Author: YAMAMOTO Takashi <email address hidden>
Date: Fri Jun 9 13:38:34 2017 +0900

    gateway_device: Fix management_port validator

    Also, improve a few UTs to avoid false positives.

    Closes-Bug: #1696389
    Related-Bug: #1696682
    Change-Id: Ibfd24be2375de16b78ba21cedaa2ae20160c0261

Changed in networking-midonet:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-midonet 5.0.0.0b3

This issue was fixed in the openstack/networking-midonet 5.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.