← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1382573] Re: Uncaught GreenletExit in ServiceLauncher if wait called after greenlet kill

 

** Project changed: neutron => oslo-incubator

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

Title:
  Uncaught GreenletExit in ServiceLauncher if wait called after greenlet
  kill

Status in The Oslo library incubator:
  In Progress

Bug description:
  This is similar to bug 1282206 that fixed the same issue for
  ProcessLauncher.

  The failure shows up in gate (Icehouse, Juno) as follows:

  ft1.1683: tests.unit.test_service.ServiceRestartTest.test_service_restart_StringException: Traceback (most recent call last):
    File "tests/unit/test_service.py", line 252, in test_service_restart
      ready = self._spawn_service()
    File "tests/unit/test_service.py", line 244, in _spawn_service
      launcher.wait(ready_callback=ready_event.set)
    File "openstack/common/service.py", line 196, in wait
      status, signo = self._wait_for_exit_or_signal(ready_callback)
    File "openstack/common/service.py", line 182, in _wait_for_exit_or_signal
      self.stop()
    File "openstack/common/service.py", line 128, in stop
      self.services.stop()
    File "openstack/common/service.py", line 479, in stop
      self.tg.stop()
    File "openstack/common/threadgroup.py", line 125, in stop
      self._stop_threads()
    File "openstack/common/threadgroup.py", line 98, in _stop_threads
      x.stop()
    File "openstack/common/threadgroup.py", line 44, in stop
      self.thread.kill()
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 238, in kill
      return kill(self, *throw_args)
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 292, in kill
      g.throw(*throw_args)
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 212, in main
      result = function(*args, **kwargs)
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 278, in just_raise
      raise greenlet.GreenletExit()
  GreenletExit
  Traceback (most recent call last):
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  traceback-1: {{{
  Traceback (most recent call last):
    File "tests/unit/test_service.py", line 93, in _reap_pid
      if self.pid:
  AttributeError: 'ServiceRestartTest' object has no attribute 'pid'
  }}}

  Traceback (most recent call last):
    File "tests/unit/test_service.py", line 252, in test_service_restart
      ready = self._spawn_service()
    File "tests/unit/test_service.py", line 244, in _spawn_service
      launcher.wait(ready_callback=ready_event.set)
    File "openstack/common/service.py", line 196, in wait
      status, signo = self._wait_for_exit_or_signal(ready_callback)
    File "openstack/common/service.py", line 182, in _wait_for_exit_or_signal
      self.stop()
    File "openstack/common/service.py", line 128, in stop
      self.services.stop()
    File "openstack/common/service.py", line 479, in stop
      self.tg.stop()
    File "openstack/common/threadgroup.py", line 125, in stop
      self._stop_threads()
    File "openstack/common/threadgroup.py", line 98, in _stop_threads
      x.stop()
    File "openstack/common/threadgroup.py", line 44, in stop
      self.thread.kill()
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 238, in kill
      return kill(self, *throw_args)
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 292, in kill
      g.throw(*throw_args)
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 212, in main
      result = function(*args, **kwargs)
    File "/home/jenkins/workspace/gate-oslo-incubator-python26/.tox/py26/lib/python2.6/site-packages/eventlet/greenthread.py", line 278, in just_raise
      raise greenlet.GreenletExit()
  GreenletExit

  Logs: http://logs.openstack.org/82/129182/1/check/gate-oslo-incubator-
  python26/002df95/testr_results.html.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/oslo-incubator/+bug/1382573/+subscriptions


References