Unit test Python 3.5 failure with oslo.service >= 1.7.0

Bug #1552514 reported by Thomas Goirand on 2016-03-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.service
Undecided
Unassigned

Bug Description

When building oslo.service 1.7.0 in Debian Sid, I get the below unit test failures. This is under Python 2.7 and Debian Sid + Experimental packages (where Mitaka currently is). I haven't run Python 3.5 tests yet, so I cannot tell if the issue is there too.

======================================================================
FAIL: oslo_service.tests.test_service.EventletServerServiceLauncherTest.test_graceful_stop_with_exceeded_graceful_shutdown_timeout
oslo_service.tests.test_service.EventletServerServiceLauncherTest.test_graceful_stop_with_exceeded_graceful_shutdown_timeout
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "/home/zigo/sources/openstack/mitaka/python-oslo.service/build-area/python-oslo.service-1.7.0/oslo_service/tests/test_service.py", line 580, in test_graceful_stop_with_exceeded_graceful_shutdown_timeout
    proc.join()
  File "/usr/lib/python3.5/multiprocessing/process.py", line 121, in join
    res = self._popen.wait(timeout)
  File "/usr/lib/python3.5/multiprocessing/popen_fork.py", line 51, in wait
    return self.poll(os.WNOHANG if timeout == 0.0 else 0)
  File "/usr/lib/python3.5/multiprocessing/popen_fork.py", line 29, in poll
    pid, sts = os.waitpid(self.pid, flag)
  File "/usr/lib/python3/dist-packages/eventlet/green/os.py", line 96, in waitpid
    greenthread.sleep(0.01)
  File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 34, in sleep
    hub.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 294, in switch
    return self.greenlet.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 346, in run
    self.wait(sleep_time)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/poll.py", line 82, in wait
    sleep(seconds)
  File "/usr/lib/python3/dist-packages/fixtures/_fixtures/timeout.py", line 52, in signal_handler
    raise TimeoutException()
fixtures._fixtures.timeout.TimeoutException

======================================================================
FAIL: oslo_service.tests.test_service.EventletServerServiceLauncherTest.test_shuts_down_on_sigint_when_client_connected
oslo_service.tests.test_service.EventletServerServiceLauncherTest.test_shuts_down_on_sigint_when_client_connected
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "/home/zigo/sources/openstack/mitaka/python-oslo.service/build-area/python-oslo.service-1.7.0/oslo_service/tests/test_service.py", line 550, in test_shuts_down_on_sigint_when_client_connected
    proc.join()
  File "/usr/lib/python3.5/multiprocessing/process.py", line 121, in join
    res = self._popen.wait(timeout)
  File "/usr/lib/python3.5/multiprocessing/popen_fork.py", line 51, in wait
    return self.poll(os.WNOHANG if timeout == 0.0 else 0)
  File "/usr/lib/python3.5/multiprocessing/popen_fork.py", line 29, in poll
    pid, sts = os.waitpid(self.pid, flag)
  File "/usr/lib/python3/dist-packages/eventlet/green/os.py", line 96, in waitpid
    greenthread.sleep(0.01)
  File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 34, in sleep
    hub.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 294, in switch
    return self.greenlet.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 346, in run
    self.wait(sleep_time)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/poll.py", line 82, in wait
    sleep(seconds)
  File "/usr/lib/python3/dist-packages/fixtures/_fixtures/timeout.py", line 52, in signal_handler
    raise TimeoutException()
fixtures._fixtures.timeout.TimeoutException

======================================================================
FAIL: oslo_service.tests.test_service.ServiceLauncherTest.test_child_signal_sighup
oslo_service.tests.test_service.ServiceLauncherTest.test_child_signal_sighup
----------------------------------------------------------------------
_StringException: Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "/home/zigo/sources/openstack/mitaka/python-oslo.service/build-area/python-oslo.service-1.7.0/oslo_service/tests/test_service.py", line 139, in _reap_pid
    self._reap_test()
  File "/home/zigo/sources/openstack/mitaka/python-oslo.service/build-area/python-oslo.service-1.7.0/oslo_service/tests/test_service.py", line 142, in _reap_test
    pid, status = os.waitpid(self.pid, 0)
  File "/usr/lib/python3/dist-packages/eventlet/green/os.py", line 96, in waitpid
    greenthread.sleep(0.01)
  File "/usr/lib/python3/dist-packages/eventlet/greenthread.py", line 34, in sleep
    hub.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 294, in switch
    return self.greenlet.switch()
  File "/usr/lib/python3/dist-packages/eventlet/hubs/hub.py", line 346, in run
    self.wait(sleep_time)
  File "/usr/lib/python3/dist-packages/eventlet/hubs/poll.py", line 82, in wait
    sleep(seconds)
  File "/usr/lib/python3/dist-packages/fixtures/_fixtures/timeout.py", line 52, in signal_handler
    raise TimeoutException()
fixtures._fixtures.timeout.TimeoutException

Since version 1.3.0 is already in Debian (which already satisfies the global-requirements), I'm putting the upload of 1.7.0 on hold until this is fixed.

Thomas Goirand (thomas-goirand) wrote :

FYI, the issue persist in version 1.8.0. In Debian, I had to disable these 3 unit tests when running tests in Python 3.5. It'd be nice if someone could have a look. Haypo, my Py3 usual hero? :)

Thomas Herve (therve) on 2016-04-04
summary: - Unit test failure when buildnig debian package for Mitaka b3
+ Unit test failure when building debian package for Mitaka b3
summary: - Unit test failure when building debian package for Mitaka b3
+ Unit test Python 3.5 failure with oslo.service >= 1.7.0
Changed in oslo.service:
status: New → Confirmed
ChangBo Guo(gcb) (glongwave) wrote :

Thomas Goirand (thomas-goirand), Do you mean oslo.service <1.3.0 works well with Python3.5 ?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers