unit tests fail

Bug #1789689 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-l2gw
New
Undecided
Unassigned

Bug Description

I'm trying to package 13.0.0 for Ubuntu and am hitting the following test failure:

==============================
Failed 1 tests - output below:
==============================

networking_l2gw.tests.unit.db.ovsdb.test_idl_impl.SimpleIdlTests.test_list_physical_switches
--------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/neutron/tests/base.py", line 140, in func
        return f(self, *args, **kwargs)
      File "networking_l2gw/tests/unit/db/ovsdb/test_idl_impl.py", line 58, in test_list_physical_switches
        return_value=ovs.jsonrpc.Session(None, None)
    TypeError: __init__() takes exactly 4 arguments (3 given)

And when I run tox -e py27 on stable/rocky upstream branch I get 18 failures! The tracebacks all end with:

      File "/home/corey/pkg/rocky/upstream/networking-l2gw/.tox/py27/local/lib/python2.7/site-packages/neutron/plugins/common/constants.py", line 28, in <module>
        'router': constants.L3,
    AttributeError: 'module' object has no attribute 'L3'

description: updated
Revision history for this message
Corey Bryant (corey.bryant) wrote :

The initial error reported above is due to a change in ovs 2.10. Upper-constraints is at 2.9.2 so this doesn't yet officially affect upstream code.

 class Session(object):
     """A JSON-RPC session with reconnection."""

- def __init__(self, reconnect, rpc):
+ def __init__(self, reconnect, rpc, remotes):

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I'm attaching the patch that we'll carry in Ubuntu.

no longer affects: networking-l2gw (Ubuntu)
Revision history for this message
Lajos Katona (lajos-katona) wrote :

Hi Corey, if I understand well this bug can be closed in networking-l2gw, am I right?

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Hi Lajos, I think it needs to be fixed upstream once ovs 2.10 is supported.

Revision history for this message
Lajos Katona (lajos-katona) wrote :

Thanks Corey

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.