autotest/virt-test — pull request #1049 by ruda (2013-11-08 17:56:27+00:00)
Title: virttest.qemu_vm: Log information about the parent PID and the monitor n...

When starting the qemu process, there is not much information about
the running parent PID (the autotest shell script that starts qemu) or
the monitor name that we are trying to connect (for example, hmp1).

So with this commit we're logging this information when qemu is started,
in order to provide information for debugging. Example:

When running `./run -t qemu --tests=uptime --qemu_sandbox=on` (uptime is just a random test I created),
from debug.log:

11:43:17 INFO | Created qemu process with parent PID 15592
11:43:17 INFO | Establishing monitor connections
11:43:17 INFO | Connecting to monitor 'hmp1'
11:44:17 WARNI| Could not find (qemu) prompt after connecting to monitor. Output so far: ''
11:44:18 ERROR| Could not connect to monitor 'hmp1'
11:44:18 DEBUG| Destroying VM virt-tests-vm1 (PID 15594)

Parent PID is 15592, now we are trying to find what is wrong...

ps -ef | grep 15592
rmoura 15592 15591 0 11:43 pts/3 00:00:00 /bin/bash -c source /tmp/autotestbMRLRL.sh
rmoura 15594 15592 0 11:43 pts/3 00:00:00 [qemu-system-x86]

In this situation, it's clear that qemu-system-x86_64 goes bad.