[openstack-dev] [horizon] integration_tests : httplib timed out when running from eclipse

Wu, Hong-Guang (ES-Best-Shore-Services-China-BJ) feiguang.wu at hp.com
Tue Oct 21 06:38:15 UTC 2014


Running integration_test from command line is ok :
(.venv)whg at whg-HP:/opt/stack/horizon$ nosetests openstack_dashboard.test.integration_tests.tests.test_user_settings
openstack_dashboard.test.integration_tests.tests.test_user_settings.TestUserSettings.test_user_settings_change ... ok

----------------------------------------------------------------------
Ran 1 test in 86.292s
OK


But it always reports timeout error immediately after I launch the  test in eclipse.

nosetests openstack_dashboard.test.integration_tests.tests.test_login.py:TestLogin.test_login

openstack_dashboard.test.integration_tests.tests.test_login.TestLogin.test_login ... ERROR Destroying test database for alias 'default' (':memory:')...
======================================================================
ERROR: openstack_dashboard.test.integration_tests.tests.test_login.TestLogin.test_login
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/helpers.py", line 34, in setUp
    self.driver = webdriver.Chrome()
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 67, in __init__
    self.quit()
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 82, in quit
    self.service.stop()
  File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/chrome/service.py", line 97, in stop
    url_request.urlopen("http://127.0.0.1:%d/shutdown" % self.port)
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/lib/python2.7/httplib.py", line 1045, in getresponse
    response.begin()
  File "/usr/lib/python2.7/httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.7/httplib.py", line 365, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/lib/python2.7/socket.py", line 476, in readline
    data = self._sock.recv(self._rbufsize)
timeout: timed out


----------------------------------------------------------------------
Ran 1 test in 3.332s

FAILED (errors=1)

 





Thanks

Hong-Guang




More information about the OpenStack-dev mailing list