Browse Source

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
tags/2014.2.rc1
Sean Dague 5 years ago
parent
commit
ff259324ab
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      nova/tests/integrated/test_multiprocess_api.py

+ 2
- 0
nova/tests/integrated/test_multiprocess_api.py View File

@@ -163,6 +163,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
163 163
             try:
164 164
                 os.kill(worker_pid, 0)
165 165
                 time.sleep(0.1)
166
+                LOG.info("Worker: %s still around, trying again" % worker_pid)
166 167
             except OSError as err:
167 168
                 # by watching specifically for errno.ESRCH
168 169
                 # we guarantee this loop continues until
@@ -171,6 +172,7 @@ class MultiprocessWSGITest(integrated_helpers._IntegratedTestBase):
171 172
                 # for several cycles in case a parent process
172 173
                 # needs to check their exit state.
173 174
                 if err.errno == errno.ESRCH:
175
+                    LOG.info("Worker: %s successfully shut down" % worker_pid)
174 176
                     break
175 177
                 LOG.warning("got non-ESRCH errno %d when attempting "
176 178
                             "status of worker PID %d",

Loading…
Cancel
Save