← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1654283] [NEW] test_router_interface_status raises troublesome error when it fails.

 

Public bug reported:

Test: neutron.tests.tempest.api.test_routers#test_router_interface_status
This test waits for the router interface port to become active by using neutron.common.utils.wait_until_true.

Problem is when it, for whatever reason, would not become active, this
test raises an exception from eventlet.

This particular error being raised by eventlet (eventlet.timeout.Timeout) isn't a subclass of the Python Exception, but is a subclass of BaseException
And this causes the entire test cycle to hardstop. Even when there are still other tests left to run.


Error Trace:

Traceback (most recent call last):
  File "neutron/neutron/tests/tempest/api/test_routers.py", line 166, in test_router_interface_status
    utils.wait_until_true(status_active)
  File "neutron/neutron/common/utils.py", line 773, in wait_until_true
    eventlet.sleep(sleep)
  File "venvs/newton/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
    hub.switch()
  File "/newton/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
    return self.greenlet.switch()
eventlet.timeout.Timeout: 60 seconds

2017-01-05 15:06:15.841 8835 CRITICAL tempest [-] Timeout: 60 seconds
2017-01-05 15:06:15.841 8835 ERROR tempest Traceback (most recent call last):
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/pycharm-community/helpers/pycharm/utrunner.py", line 188, in <module>
2017-01-05 15:06:15.841 8835 ERROR tempest     TeamcityTestRunner().run(all, **options)
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/pycharm-community/helpers/pycharm/tcunittest.py", line 262, in run
2017-01-05 15:06:15.841 8835 ERROR tempest     test(result)
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
2017-01-05 15:06:15.841 8835 ERROR tempest     return self.run(*args, **kwds)
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
2017-01-05 15:06:15.841 8835 ERROR tempest     test(result)
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/unittest2/case.py", line 673, in __call__
2017-01-05 15:06:15.841 8835 ERROR tempest     return self.run(*args, **kwds)
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/testcase.py", line 671, in run
2017-01-05 15:06:15.841 8835 ERROR tempest     return run_test.run(result)
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/runtest.py", line 80, in run
2017-01-05 15:06:15.841 8835 ERROR tempest     return self._run_one(actual_result)
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/runtest.py", line 94, in _run_one
2017-01-05 15:06:15.841 8835 ERROR tempest     return self._run_prepared_result(ExtendedToOriginalDecorator(result))
2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/runtest.py", line 119, in _run_prepared_result
2017-01-05 15:06:15.841 8835 ERROR tempest     raise e
2017-01-05 15:06:15.841 8835 ERROR tempest Timeout: 60 seconds
2017-01-05 15:06:15.841 8835 ERROR tempest
2017-01-05 15:06:15.843 8835 ERROR tempest.test [-] tearDownClass does not call the super's tearDownClass in these classes:
set([<class 'neutron.tests.tempest.api.test_routers.RoutersTest'>])

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: neutron router tempest test

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1654283

Title:
  test_router_interface_status raises troublesome error when it fails.

Status in neutron:
  New

Bug description:
  Test: neutron.tests.tempest.api.test_routers#test_router_interface_status
  This test waits for the router interface port to become active by using neutron.common.utils.wait_until_true.

  Problem is when it, for whatever reason, would not become active, this
  test raises an exception from eventlet.

  This particular error being raised by eventlet (eventlet.timeout.Timeout) isn't a subclass of the Python Exception, but is a subclass of BaseException
  And this causes the entire test cycle to hardstop. Even when there are still other tests left to run.

  
  Error Trace:

  Traceback (most recent call last):
    File "neutron/neutron/tests/tempest/api/test_routers.py", line 166, in test_router_interface_status
      utils.wait_until_true(status_active)
    File "neutron/neutron/common/utils.py", line 773, in wait_until_true
      eventlet.sleep(sleep)
    File "venvs/newton/local/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
      hub.switch()
    File "/newton/local/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
      return self.greenlet.switch()
  eventlet.timeout.Timeout: 60 seconds

  2017-01-05 15:06:15.841 8835 CRITICAL tempest [-] Timeout: 60 seconds
  2017-01-05 15:06:15.841 8835 ERROR tempest Traceback (most recent call last):
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/pycharm-community/helpers/pycharm/utrunner.py", line 188, in <module>
  2017-01-05 15:06:15.841 8835 ERROR tempest     TeamcityTestRunner().run(all, **options)
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/pycharm-community/helpers/pycharm/tcunittest.py", line 262, in run
  2017-01-05 15:06:15.841 8835 ERROR tempest     test(result)
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
  2017-01-05 15:06:15.841 8835 ERROR tempest     return self.run(*args, **kwds)
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
  2017-01-05 15:06:15.841 8835 ERROR tempest     test(result)
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/unittest2/case.py", line 673, in __call__
  2017-01-05 15:06:15.841 8835 ERROR tempest     return self.run(*args, **kwds)
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/testcase.py", line 671, in run
  2017-01-05 15:06:15.841 8835 ERROR tempest     return run_test.run(result)
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/runtest.py", line 80, in run
  2017-01-05 15:06:15.841 8835 ERROR tempest     return self._run_one(actual_result)
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/runtest.py", line 94, in _run_one
  2017-01-05 15:06:15.841 8835 ERROR tempest     return self._run_prepared_result(ExtendedToOriginalDecorator(result))
  2017-01-05 15:06:15.841 8835 ERROR tempest   File "/venvs/newton/local/lib/python2.7/site-packages/testtools/runtest.py", line 119, in _run_prepared_result
  2017-01-05 15:06:15.841 8835 ERROR tempest     raise e
  2017-01-05 15:06:15.841 8835 ERROR tempest Timeout: 60 seconds
  2017-01-05 15:06:15.841 8835 ERROR tempest
  2017-01-05 15:06:15.843 8835 ERROR tempest.test [-] tearDownClass does not call the super's tearDownClass in these classes:
  set([<class 'neutron.tests.tempest.api.test_routers.RoutersTest'>])

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


Follow ups