Skip to content

Commit

Permalink
CP-27559: Use shell command to generate crashdump
Browse files Browse the repository at this point in the history
Signed-off-by: Deli Zhang <[email protected]>
  • Loading branch information
DeliZhangX committed May 1, 2018
1 parent ed55281 commit 3359443
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autocertkit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,10 @@ def host_crash(session, do_cleanup=False):

host = get_pool_master(session)
log.debug("Crashing host: %s" % host)
call_ack_plugin(session, 'force_crash_host')
#call_ack_plugin(session, 'force_crash_host')
cmd = 'echo s > /proc/sysrq-trigger; sleep 5; echo c > /proc/sysrq-trigger'
cmd = binascii.hexlify(cmd)
call_ack_plugin(session, 'shell_run', {'cmd': cmd}, host)

# Once it is successful, host will be crashed hence code should not reach
# here.
Expand Down

0 comments on commit 3359443

Please sign in to comment.