← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1241027] Re: Intermitent Selenium unit test timout error

 

[Expired for OpenStack Dashboard (Horizon) because there has been no
activity for 60 days.]

** Changed in: horizon
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1241027

Title:
  Intermitent Selenium unit test timout error

Status in OpenStack Dashboard (Horizon):
  Expired

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_dashboard.dashboards.admin.users.tests.SeleniumTests'>
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 227, in run
      self.tearDown()
    File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 350, in
  tearDown
      self.teardownContext(ancestor)
    File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 366, in
  teardownContext
      try_run(context, names)
    File "/usr/lib/python2.7/dist-packages/nose/util.py", line 469, in try_run
      return func()
    File
  "/home/zigo/sources/openstack/havana/horizon/build-area/horizon-2013.2~rc3/horizon/test/helpers.py",
  line 179, in tearDownClass
      super(SeleniumTestCase, cls).tearDownClass()
    File "/usr/lib/python2.7/dist-packages/django/test/testcases.py", line
  1170, in tearDownClass
      cls.server_thread.join()
    File "/usr/lib/python2.7/dist-packages/django/test/testcases.py", line
  1094, in join
      self.httpd.shutdown()
    File "/usr/lib/python2.7/dist-packages/django/test/testcases.py", line
  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_dashboard.test.tests.selenium.BrowserTests'>
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 208, in run
      self.setUp()
    File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 291, in setUp
      self.setupContext(ancestor)
    File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 314, in
  setupContext
      try_run(context, names)
    File "/usr/lib/python2.7/dist-packages/nose/util.py", line 469, in try_run
      return func()
    File
  "/home/zigo/sources/openstack/havana/horizon/build-area/horizon-2013.2~rc3/horizon/test/helpers.py",
  line 173, in setUpClass
      super(SeleniumTestCase, cls).setUpClass()
    File "/usr/lib/python2.7/dist-packages/django/test/testcases.py", line
  1160, in setUpClass
      raise cls.server_thread.error
  WSGIServerException: [Errno 98] Address already in use

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1241027/+subscriptions