Browse code

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

Joe Gordon authored on 2015/06/07 16:57:34
Showing 1 changed files
... ...
@@ -106,6 +106,12 @@ def compute_consoles():
106 106
             _dump_cmd("sudo cat %s" % fullpath)
107 107
 
108 108
 
109
+def guru_meditation_report():
110
+    _header("nova-compute Guru Meditation Report")
111
+    _dump_cmd("kill -s USR1 `pgrep nova-compute`")
112
+    print "guru meditation report in nova-compute log"
113
+
114
+
109 115
 def main():
110 116
     opts = get_options()
111 117
     fname = filename(opts.dir)
... ...
@@ -118,6 +124,7 @@ def main():
118 118
         network_dump()
119 119
         iptables_dump()
120 120
         compute_consoles()
121
+        guru_meditation_report()
121 122
 
122 123
 
123 124
 if __name__ == '__main__':