one unittest fails with test run in one thread
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
High
|
Valeriy Ponomaryov |
Bug Description
If run unittests with "./run_tests.sh" (1 thread by default), we get next error:
=======
FAIL: manila.
-------
Traceback (most recent call last):
_StringException: pythonlogging:'': {{{Starting manila-share node (version 2013.2)}}}
Traceback (most recent call last):
File "/home/
self.
File "/home/
svc.start()
File "/home/
self.
File "/home/
share_
File "/home/
raise exception.
ManilaException: Share server backend details missing.
But if run with "./run_tests.sh --concurrency 4" no error appears. Thats why bug did not appear in master via tox, tox uses bunch of threads by default.
Also, adding some new tests makes it appear.
So, we have some combination of tests with some influence, if they are in one thread.
It is caused by merge of https:/
description: | updated |
description: | updated |
description: | updated |
Changed in manila: | |
importance: | Undecided → High |
summary: |
- unittest bug that can be cathed with run_tests.sh + one unittest fails with one thread test run |
summary: |
- one unittest fails with one thread test run + one unittest fails with test run in one thread |
description: | updated |
description: | updated |
description: | updated |
Changed in manila: | |
assignee: | nobody → Valeriy Ponomaryov (vponomaryov) |
status: | New → In Progress |
Changed in manila: | |
status: | Fix Committed → Fix Released |
Changed in manila: | |
milestone: | none → juno-3 |
Reviewed: https:/ /review. openstack. org/115354 /git.openstack. org/cgit/ stackforge/ manila/ commit/ ?id=ecea45689fd ebf409b06311cc8 e84b2e609967e1
Committed: https:/
Submitter: Jenkins
Branch: master
commit ecea45689fdebf4 09b06311cc8e84b 2e609967e1
Author: vponomaryov <email address hidden>
Date: Tue Aug 19 20:29:59 2014 +0300
Fix failing of unittests in one thread
With change of default driver, that is used for unittests one additional
method 'ensure_share' was not mocked, that caused problems running
unittests in one thread.
Change-Id: Iea08207bb6200c 37f5608d222dccd fbdc509b234
Closes-Bug: #1358854