pyroute2 usage makes binding lib users fail on unit tests

Bug #1651770 reported by Irena Berezovsky
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

when unit tests for kuryr binding lib users are executed on other than linux environment (MacOS/Win), it failes:

Captured traceback:
    Traceback (most recent call last):
    ImportError: Failed to import test module: kuryr_kubernetes.tests.unit.test_os_vif_util
    Traceback (most recent call last):
      File "/Users/irenab/Work/kuryr-kubernetes/.tox/py27/lib/python2.7/site-packages/unittest2/", line 456, in _find_test_path
        module = self._get_module_from_name(name)
      File "/Users/irenab/Work/kuryr-kubernetes/.tox/py27/lib/python2.7/site-packages/unittest2/", line 395, in _get_module_from_name
      File "kuryr_kubernetes/tests/unit/", line 26, in <module>
        from kuryr_kubernetes import os_vif_util as ovu
      File "kuryr_kubernetes/", line 19, in <module>
        from kuryr.lib.binding.drivers import utils as kl_utils
      File "/Users/irenab/Work/kuryr-kubernetes/.tox/py27/lib/python2.7/site-packages/kuryr/lib/binding/drivers/", line 15, in <module>
        from pyroute2.netlink.rtnl import ifinfmsg
      File "/Users/irenab/Work/kuryr-kubernetes/.tox/py27/lib/python2.7/site-packages/pyroute2/netlink/rtnl/ifinfmsg/", line 11, in <module>
        from socket import AF_BRIDGE
    ImportError: cannot import name AF_BRIDGE

Changed in kuryr:
importance: Undecided → Low
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.