Merge "Check for nova-compute before running kill"

This commit is contained in:
Jenkins 2015-07-16 23:49:21 +00:00 committed by Gerrit Code Review
commit 469215d374

View File

@ -112,6 +112,13 @@ def compute_consoles():
def guru_meditation_report():
_header("nova-compute Guru Meditation Report")
try:
subprocess.check_call(["pgrep","nova-compute"])
except subprocess.CalledProcessError:
print "Skipping as nova-compute does not appear to be running"
return
_dump_cmd("kill -s USR1 `pgrep nova-compute`")
print "guru meditation report in nova-compute log"