AttributeError: 'module' object has no attribute 'Timeout'

Bug #1771644 reported by Édouard Thuleau on 2018-05-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Undecided
Unassigned

Bug Description

Since gevent python library upgrade to 1.3, Contrail API server unit test code failed to run:

Traceback (most recent call last):
  File "/home/zuul/contrail-5.0/build/debug/config/api-server/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/home/zuul/contrail-5.0/build/debug/config/api-server/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "vnc_cfg_api_server/tests/test_addr_mgmt.py", line 14, in <module>
    import test_common
  File "../common/tests/test_common.py", line 23, in <module>
    import cfgm_common.zkclient
  File "/home/zuul/contrail-5.0/build/debug/config/api-server/.tox/py27/local/lib/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/home/zuul/contrail-5.0/build/debug/config/api-server/.tox/py27/local/lib/python2.7/site-packages/cfgm_common/zkclient.py", line 9, in <module>
    import kazoo.handlers.gevent
  File "/home/zuul/contrail-5.0/build/debug/config/api-server/.tox/py27/local/lib/python2.7/site-packages/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/home/zuul/contrail-5.0/build/debug/config/api-server/.tox/py27/local/lib/python2.7/site-packages/kazoo/handlers/gevent.py", line 32, in <module>
    class SequentialGeventHandler(object):
  File "/home/zuul/contrail-5.0/build/debug/config/api-server/.tox/py27/local/lib/python2.7/site-packages/kazoo/handlers/gevent.py", line 63, in SequentialGeventHandler
    class timeout_exception(gevent.event.Timeout):
AttributeError: 'module' object has no attribute 'Timeout'

information type: Proprietary → Public

Review in progress for https://review.opencontrail.org/43090
Submitter: Édouard Thuleau (<email address hidden>)

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

Other bug subscribers