MongoDB connection failures when entire test suite is run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Critical
|
Mehdi Abaakouk |
Bug Description
When I run the Ceilometer test suite with the command "tox -e py27", I get 159 ConnectionFailure errors for the MongoDB tests.
The traceback for all of these errors is:
Traceback (most recent call last):
File "/opt/stack/
return func(*args, **kwargs)
File "/opt/stack/
super(
File "/opt/stack/
self.conn = storage.
File "/opt/stack/
return get_engine(
File "/opt/stack/
return Connection(conf)
File "/opt/stack/
self.conn = self.CONNECTION
File "/opt/stack/
safe=True)
File "/opt/stack/
raise ConnectionFailu
ConnectionFailure: connection closed
There is also an odd message "No module named deprecated" at the end of the test results.
It seems that there are two ways to get around this:
1) If I increase the maximum number of MongoDB connections from 128 to 256 in the --maxConns argument to mongod in run-tests.sh, the errors go away, but I still get the "No module named deprecated" message.
2) If I only run a part of the test suite (e.g. "tox -e py27 -- storage"), the errors also disappear, though I still get the "No module named deprecated" message.
Changed in ceilometer: | |
status: | New → Confirmed |
description: | updated |
Changed in ceilometer: | |
assignee: | nobody → Mehdi Abaakouk (sileht) |
status: | Confirmed → In Progress |
Changed in ceilometer: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
importance: | Undecided → Critical |
milestone: | havana-3 → havana-rc1 |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | havana-rc1 → 2013.2 |
Reviewed: https:/ /review. openstack. org/44465 github. com/openstack/ ceilometer/ commit/ 2152627f1aea1bd 8c976b49c7c7a4d ecd3b22721
Committed: http://
Submitter: Jenkins
Branch: master
commit 2152627f1aea1bd 8c976b49c7c7a4d ecd3b22721
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Aug 30 13:52:41 2013 +0200
Disable the pymongo pooling feature for tests
Because pymongo doesn't close connection on .close() when we use its
pool, we disable the MongoClient pooling feature for running tests.
This allow to use a normal number of connection in mongod for test.
Fixes bug #1218488
Change-Id: Ie4c74620937816 ed0592f5ac72de9 9dee3173ad8