From ff259324abf66f436b5098a6eaf8d781ac57140d Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 23 Sep 2014 11:02:55 -0400 Subject: [PATCH] Add further debug logging for multiprocess test In order to track down where we are stalling add some additional informational logging into the cleanup path. Change-Id: Ia12b1049b3a63851bde69cb5f7c3fe31b0d12c41 Related-Bug: #1357578 --- nova/tests/integrated/test_multiprocess_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nova/tests/integrated/test_multiprocess_api.py b/nova/tests/integrated/test_multiprocess_api.py index a5234298299d..1d82de2b2ed2 100644 --- a/nova/tests/integrated/test_multiprocess_api.py +++ b/nova/tests/integrated/test_multiprocess_api.py @@ -163,6 +163,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase): try: os.kill(worker_pid, 0) time.sleep(0.1) + LOG.info("Worker: %s still around, trying again" % worker_pid) except OSError as err: # by watching specifically for errno.ESRCH # we guarantee this loop continues until @@ -171,6 +172,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase): # for several cycles in case a parent process # needs to check their exit state. if err.errno == errno.ESRCH: + LOG.info("Worker: %s successfully shut down" % worker_pid) break LOG.warning("got non-ESRCH errno %d when attempting " "status of worker PID %d",