From 2ebe993b25462919e8aeeb896c9f91b6be7aa573 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Sun, 7 Jun 2015 16:57:34 +0900 Subject: [PATCH] guru meditation report for nova-compute in worlddump Nova-compute is hanging in the multinode test, and its difficult to figure out why. So trigger a guru meditation report for nova-compute in worlddump so we can see what nova-compute is doing when it is hung. Having a hung nova-compute causes tempest to fail and I035fe8e3333034e44b403ed0f986220ab5b0e57a runs worlddump whenever tempest fails. Bug 1462305 is one of the last issues left before the multinode job is stable enough to gate on, and this patch should make it much easier to debug. Change-Id: I87d7536b5992c47b8082684cc662f953113fd1a8 Related-Bug: #1462305 --- tools/worlddump.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/worlddump.py b/tools/worlddump.py index d846f10025..7acfb5e97d 100755 --- a/tools/worlddump.py +++ b/tools/worlddump.py @@ -106,6 +106,12 @@ def compute_consoles(): _dump_cmd("sudo cat %s" % fullpath) +def guru_meditation_report(): + _header("nova-compute Guru Meditation Report") + _dump_cmd("kill -s USR1 `pgrep nova-compute`") + print "guru meditation report in nova-compute log" + + def main(): opts = get_options() fname = filename(opts.dir) @@ -118,6 +124,7 @@ def main(): network_dump() iptables_dump() compute_consoles() + guru_meditation_report() if __name__ == '__main__':