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

Bug #1771644 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
Undecided
Unassigned
R5.0
Fix Committed
Undecided
Unassigned
Trunk
Fix Committed
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'

Tags: config
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

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

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/43257
Submitter: Shivayogi Ugaji (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R5.0

Review in progress for https://review.opencontrail.org/43265
Submitter: Vinay Vithal Mahuli (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/43090
Committed: http://github.com/Juniper/contrail-controller/commit/2fb333311b8f05539a7b828e2cbf7320da3bd0c6
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 2fb333311b8f05539a7b828e2cbf7320da3bd0c6
Author: Édouard Thuleau <email address hidden>
Date: Wed May 16 20:24:51 2018 +0200

[config] Follow gevent deprecated code

New gevent release 1.3 removed old deprecated wsgi code [1] used by
config unit test framework.
As that 1.3 gevent version also break the kazoo library [2], we restrict
our unit test framework to use precedent version until kazoo fix [3]
is released.

[1] http://www.gevent.org/changelog.html#b2-2018-05-03
[2] https://github.com/python-zk/kazoo/issues/505
[3] https://github.com/python-zk/kazoo/commit/257b58961f7ddd9db04d6efa070739a1b0404487

Change-Id: Iec9c02cc9b8a76d78edeabfc5c29117832983c5e
Closes-Bug: #1771644

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/43265
Committed: http://github.com/Juniper/contrail-controller/commit/7e5212706401826b37d6f653ecd43f646befb3b1
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit 7e5212706401826b37d6f653ecd43f646befb3b1
Author: Édouard Thuleau <email address hidden>
Date: Wed May 16 20:24:51 2018 +0200

[config] Follow gevent deprecated code

New gevent release 1.3 removed old deprecated wsgi code [1] used by
config unit test framework.
As that 1.3 gevent version also break the kazoo library [2], we restrict
our unit test framework to use precedent version until kazoo fix [3]
is released.

[1] http://www.gevent.org/changelog.html#b2-2018-05-03
[2] https://github.com/python-zk/kazoo/issues/505
[3] https://github.com/python-zk/kazoo/commit/257b58961f7ddd9db04d6efa070739a1b0404487

Change-Id: Iec9c02cc9b8a76d78edeabfc5c29117832983c5e
Closes-Bug: #1771644

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/43257
Committed: http://github.com/Juniper/contrail-controller/commit/0cb8a12da2ba9d431e99b0214b142dafc58f6eba
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 0cb8a12da2ba9d431e99b0214b142dafc58f6eba
Author: Édouard Thuleau <email address hidden>
Date: Wed May 16 20:24:51 2018 +0200

[config] Follow gevent deprecated code

New gevent release 1.3 removed old deprecated wsgi code [1] used by
config unit test framework.
As that 1.3 gevent version also break the kazoo library [2], we restrict
our unit test framework to use precedent version until kazoo fix [3]
is released.

[1] http://www.gevent.org/changelog.html#b2-2018-05-03
[2] https://github.com/python-zk/kazoo/issues/505
[3] https://github.com/python-zk/kazoo/commit/257b58961f7ddd9db04d6efa070739a1b0404487

Closes-Bug: #1771644

Conflicts:
 src/config/api-server/requirements.txt

Change-Id: Ic3df0c9036ff9b1e063e3e6f333506af807e41cf

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.