yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #51285
[Bug 1583069] Re: neutron.tests.unit.agent.ovsdb.native.test_connection raises exception in different thread
Reviewed: https://review.openstack.org/317929
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=99f2224e6b0ceeff952d8eca615baf5326bb498a
Submitter: Jenkins
Branch: master
commit 99f2224e6b0ceeff952d8eca615baf5326bb498a
Author: Jakub Libosvar <libosvar@xxxxxxxxxx>
Date: Wed May 18 09:36:13 2016 +0000
Mock out poller in ovsdb unittests
The second thread running in ovsdb connection crashed due to not passing
file descriptor to poller. This patch mocks out the poller as it's not
used in the tests to avoid false tracebacks in the logs.
Change-Id: I62e87e3248d176e5db7fe57bfb4467176ba05392
Closes-Bug: 1583069
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1583069
Title:
neutron.tests.unit.agent.ovsdb.native.test_connection raises exception
in different thread
Status in neutron:
Fix Released
Bug description:
neutron.tests.unit.agent.ovsdb.native.test_connection raises following
exception due to mock object passed to poll() function.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 804, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 757, in run
self.__target(*self.__args, **self.__kwargs)
File "neutron/agent/ovsdb/native/connection.py", line 110, in safe_run
self.run()
File "neutron/agent/ovsdb/native/connection.py", line 122, in run
self.poller.fd_wait(self.txns.alert_fileno, poller.POLLIN)
File "/usr/lib/python2.7/site-packages/ovs/poller.py", line 122, in fd_wait
self.poll.register(fd, events)
File "/usr/lib/python2.7/site-packages/ovs/poller.py", line 55, in register
assert isinstance(fd, int)
AssertionError
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1583069/+subscriptions
References