← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1505645] [NEW] neutron/tests/functional/test_server.py does not work for oslo.service < 0.10.0

 

Public bug reported:

Since https://review.openstack.org/#/c/233893/ was merged, the test
fails if oslo.service < 0.10.0 is installed, as follows:

    Traceback (most recent call last):
      File "neutron/tests/functional/test_server.py", line 286, in test_start
        workers=len(workers))
      File "neutron/tests/functional/test_server.py", line 151, in _test_restart_service_on_sighup
        'size': expected_size}))
      File "neutron/agent/linux/utils.py", line 346, in wait_until_true
        eventlet.sleep(sleep)
      File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
        hub.switch()
      File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
        return self.greenlet.switch()
    RuntimeError: Timed out waiting for file /tmp/tmp517j7P/tmpQwQXvn/test_server.tmp to be created and its size become equal to 5.
    

neutron.tests.functional.test_server.TestRPCServer.test_restart_rpc_on_sighup_multiple_workers
----------------------------------------------------------------------------------------------

Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2015-10-13 13:28:55,848  WARNING [oslo_config.cfg] Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
    

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron/tests/functional/test_server.py", line 248, in test_restart_rpc_on_sighup_multiple_workers
        workers=2)
      File "neutron/tests/functional/test_server.py", line 151, in _test_restart_service_on_sighup
        'size': expected_size}))
      File "neutron/agent/linux/utils.py", line 346, in wait_until_true
        eventlet.sleep(sleep)
      File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
        hub.switch()
      File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
        return self.greenlet.switch()
    RuntimeError: Timed out waiting for file /tmp/tmpoW1HXA/tmpBDI82O/test_server.tmp to be created and its size become equal to 5.
    

neutron.tests.functional.test_server.TestWsgiServer.test_restart_wsgi_on_sighup_multiple_workers
------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "neutron/tests/functional/test_server.py", line 211, in test_restart_wsgi_on_sighup_multiple_workers
        workers=2)
      File "neutron/tests/functional/test_server.py", line 151, in _test_restart_service_on_sighup
        'size': expected_size}))
      File "neutron/agent/linux/utils.py", line 346, in wait_until_true
        eventlet.sleep(sleep)
      File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
        hub.switch()
      File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
        return self.greenlet.switch()
    RuntimeError: Timed out waiting for file /tmp/tmpwKs2ON/tmp6VhW3q/test_server.tmp to be created and its size become equal to 5.

Note that minimal oslo.service version in master is 0.7.0. There is a
patch to bump the version in openstack/requirements:
https://review.openstack.org/#/c/234026/

Anyway, we still need to fix the test to work with any version of
oslo.service, because the fix is needed for Liberty branch where we
cannot bump the version of the library, as we can do in master.

** Affects: neutron
     Importance: High
     Assignee: Ihar Hrachyshka (ihar-hrachyshka)
         Status: Confirmed


** Tags: functional-tests gate-failure oslo

** Changed in: neutron
   Importance: Undecided => High

** Changed in: neutron
       Status: New => Confirmed

** Tags added: functional-tests gate-failure

** Tags added: oslo

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

Title:
  neutron/tests/functional/test_server.py does not work for oslo.service
  < 0.10.0

Status in neutron:
  Confirmed

Bug description:
  Since https://review.openstack.org/#/c/233893/ was merged, the test
  fails if oslo.service < 0.10.0 is installed, as follows:

      Traceback (most recent call last):
        File "neutron/tests/functional/test_server.py", line 286, in test_start
          workers=len(workers))
        File "neutron/tests/functional/test_server.py", line 151, in _test_restart_service_on_sighup
          'size': expected_size}))
        File "neutron/agent/linux/utils.py", line 346, in wait_until_true
          eventlet.sleep(sleep)
        File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
          hub.switch()
        File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
          return self.greenlet.switch()
      RuntimeError: Timed out waiting for file /tmp/tmp517j7P/tmpQwQXvn/test_server.tmp to be created and its size become equal to 5.
      

  neutron.tests.functional.test_server.TestRPCServer.test_restart_rpc_on_sighup_multiple_workers
  ----------------------------------------------------------------------------------------------

  Captured pythonlogging:
  ~~~~~~~~~~~~~~~~~~~~~~~
      2015-10-13 13:28:55,848  WARNING [oslo_config.cfg] Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.
      

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "neutron/tests/functional/test_server.py", line 248, in test_restart_rpc_on_sighup_multiple_workers
          workers=2)
        File "neutron/tests/functional/test_server.py", line 151, in _test_restart_service_on_sighup
          'size': expected_size}))
        File "neutron/agent/linux/utils.py", line 346, in wait_until_true
          eventlet.sleep(sleep)
        File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
          hub.switch()
        File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
          return self.greenlet.switch()
      RuntimeError: Timed out waiting for file /tmp/tmpoW1HXA/tmpBDI82O/test_server.tmp to be created and its size become equal to 5.
      

  neutron.tests.functional.test_server.TestWsgiServer.test_restart_wsgi_on_sighup_multiple_workers
  ------------------------------------------------------------------------------------------------

  Captured traceback:
  ~~~~~~~~~~~~~~~~~~~
      Traceback (most recent call last):
        File "neutron/tests/functional/test_server.py", line 211, in test_restart_wsgi_on_sighup_multiple_workers
          workers=2)
        File "neutron/tests/functional/test_server.py", line 151, in _test_restart_service_on_sighup
          'size': expected_size}))
        File "neutron/agent/linux/utils.py", line 346, in wait_until_true
          eventlet.sleep(sleep)
        File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 34, in sleep
          hub.switch()
        File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
          return self.greenlet.switch()
      RuntimeError: Timed out waiting for file /tmp/tmpwKs2ON/tmp6VhW3q/test_server.tmp to be created and its size become equal to 5.

  Note that minimal oslo.service version in master is 0.7.0. There is a
  patch to bump the version in openstack/requirements:
  https://review.openstack.org/#/c/234026/

  Anyway, we still need to fix the test to work with any version of
  oslo.service, because the fix is needed for Liberty branch where we
  cannot bump the version of the library, as we can do in master.

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


Follow ups