Intermitent Selenium unit test timout error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Medium
|
Unassigned | ||
Juno |
Won't Fix
|
Undecided
|
Unassigned | ||
Mitaka |
Invalid
|
Medium
|
Unassigned |
Bug Description
I have the following error *SOMETIMES* (eg: sometimes it does work, sometimes it doesn't):
This is surprising, because the python-selenium, which is non-free, isn't installed in my environment, and we were supposed to have a patch to not use it if it was detected it wasn't there.
Since there's a 2 seconds timeout, probably it happens when my server is busy. I would suggest to first try increasing this timeout to something like 5 seconds or something similar...
ERROR: test suite for <class
'openstack_
-------
Traceback (most recent call last):
File "/usr/lib/
self.tearDown()
File "/usr/lib/
tearDown
self.
File "/usr/lib/
teardownContext
try_
File "/usr/lib/
return func()
File
"/home/
line 179, in tearDownClass
super(
File "/usr/lib/
1170, in tearDownClass
cls.
File "/usr/lib/
1094, in join
self.
File "/usr/lib/
984, in shutdown
"Failed to shutdown the live test server in 2 seconds. The "
RuntimeError: Failed to shutdown the live test server in 2 seconds. The
server might be stuck or generating a slow response.
The same way, there's this one, which must be related (or shall I say, due to the previous error?):
ERROR: test suite for <class
'openstack_
-------
Traceback (most recent call last):
File "/usr/lib/
self.setUp()
File "/usr/lib/
self.
File "/usr/lib/
setupContext
try_
File "/usr/lib/
return func()
File
"/home/
line 173, in setUpClass
super(
File "/usr/lib/
1160, in setUpClass
raise cls.server_
WSGIServerExcep
Changed in horizon: | |
status: | New → Triaged |
Changed in horizon: | |
status: | Triaged → Confirmed |
Changed in horizon: | |
assignee: | nobody → Maria Nita (maria-nita-dn) |
Changed in horizon: | |
assignee: | Maria Nita (maria-nita-dn) → nobody |
tags: | added: icehouse-backport-potential |
Changed in horizon: | |
milestone: | none → juno-1 |
Changed in horizon: | |
assignee: | Matthias Runge (mrunge) → nobody |
status: | In Progress → Triaged |
milestone: | juno-1 → none |
I just got that issue, even when running:
./run_tests.sh -N -P
which shouldn't execute selenium tests at all.
Running Horizon application tests python2. 7/site- packages/ compressor/ cache.py: 8: DeprecationWarning: django. utils.simplejso n is deprecated; use json instead. ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....SSSE ======= ======= ======= ======= ======= ======= ======= ======= ======= test.tests. selenium. BrowserTests' > ------- ------- ------- ------- ------- ------- ------- ------- ------- python2. 7/site- packages/ nose/suite. py", line 227, in run python2. 7/site- packages/ nose/suite. py", line 350, in tearDown teardownContext (ancestor) python2. 7/site- packages/ nose/suite. py", line 366, in teardownContext run(context, names) python2. 7/site- packages/ nose/util. py", line 469, in try_run build/BUILD/ horizon- 2014.1. b3/horizon/ test/helpers. py", line 176, in tearDownClass SeleniumTestCas e, cls).tearDownCl ass() python2. 7/site- packages/ django/ test/testcases. py", line 1207, in tearDownClass _tearDownClassI nternal( ) python2. 7/site- packages/ django/ test/testcases. py", line 1197, in _tearDownClassI nternal server_ thread. join() python2. 7/site- packages/ django/ test/testcases. py", line 1118, in join httpd.shutdown( ) python2. 7/site- packages/ django/ test/testcases. py", line 1010, in shutdown ------- ------- ------- ------- ------- ------- ------- ------- -------
./usr/lib/
from django.utils import simplejson
.......
=======
ERROR: test suite for <class 'horizon.
-------
Traceback (most recent call last):
File "/usr/lib/
self.tearDown()
File "/usr/lib/
self.
File "/usr/lib/
try_
File "/usr/lib/
return func()
File "/builddir/
super(
File "/usr/lib/
cls.
File "/usr/lib/
cls.
File "/usr/lib/
self.
File "/usr/lib/
"Failed to shutdown the live test server in 2 seconds. The "
RuntimeError: Failed to shutdown the live test server in 2 seconds. The server might be stuck or generating a slow response.
-------
Ran 106 tests in 27.316s
FAILED (SKIP=3, errors=1)