diff options
author | Matt Riedemann <mriedem.os@gmail.com> | 2019-09-23 14:57:44 -0400 |
---|---|---|
committer | Matt Riedemann <mriedem.os@gmail.com> | 2019-09-23 14:57:44 -0400 |
commit | 0436a95f37df086ddc99017376cb9a312e40517a (patch) | |
tree | dc52244abceb1fb5b1b7bfd083432401eb701ecb /nova/context.py | |
parent | 597b34cd87ac349c0f3702a872630f3c830b1483 (diff) | |
download | nova-0436a95f37df086ddc99017376cb9a312e40517a.tar.gz |
Log CellTimeout traceback in scatter_gather_cells
When a call to a cell in scatter_gather_cells times out
we log a warning and set the did_not_respond_sentinel for
that cell but it would be useful if we logged the traceback
with the warning for debugging where the call is happening.
Change-Id: I8f4069474a3955eea6c967d3090f2960e739224c
Related-Bug: #1844929
Diffstat (limited to 'nova/context.py')
-rw-r--r-- | nova/context.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/context.py b/nova/context.py index 76c0086f63..b87a74b217 100644 --- a/nova/context.py +++ b/nova/context.py @@ -445,15 +445,14 @@ def scatter_gather_cells(context, cell_mappings, timeout, fn, *args, **kwargs): except exception.CellTimeout: # NOTE(melwitt): We'll fill in did_not_respond_sentinels at the # same time we kill/wait for the green threads. - pass + LOG.warning('Timed out waiting for response from cell %s', + cell_uuid, exc_info=True) # Kill the green threads still pending and wait on those we know are done. for cell_uuid, greenthread in greenthreads: if cell_uuid not in results: greenthread.kill() results[cell_uuid] = did_not_respond_sentinel - LOG.warning('Timed out waiting for response from cell %s', - cell_uuid) else: greenthread.wait() |