All of lore.kernel.org
 help / color / mirror / Atom feed
[parent not found: <87671503.1527311249497775045.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>]
[parent not found: <938753791.1515401249487180985.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>]
[parent not found: <1912575528.1512971249485400261.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>]
[parent not found: <657495968.1491511249467149457.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>]
* [autotest] vm creation fails (not)
@ 2009-08-05  9:45 Gerd Hoffmann
  0 siblings, 0 replies; 16+ messages in thread
From: Gerd Hoffmann @ 2009-08-05  9:45 UTC (permalink / raw)
  To: KVM list

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

   Hi,

Now and then autotest thinks creating the vm failed, although qemu 
started up just fine.  autotest then goes to wait($qemupid) and hangs 
there forever ...

I suspect this is a race: autotest uses 'help' on the monitor to check 
whenever qemu is alive. If qemu created the monitor socket fast enougth 
it works.  Otherwise it doesn't.

I've papered over it with the quick&dirty patch below.  Someone who 
knows autotest better that /me should fix this properly.

thanks,
   Gerd

[-- Attachment #2: fix --]
[-- Type: text/plain, Size: 631 bytes --]

diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index eba9b84..cbb01e7 100644
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -382,6 +382,9 @@ class VM:
             self.process = kvm_subprocess.run_bg(qemu_command, None,
                                                  logging.debug, "(qemu) ")
 
+            # wait a bit to give qemu enougth time to create the monitor socket
+            time.sleep(3)
+
             if not self.process.is_alive():
                 logging.error("VM could not be created; "
                               "qemu command failed:\n%s" % qemu_command)

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-08-06 11:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <798406659.1555201249555283903.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-06 10:43 ` [autotest] vm creation fails (not) Michael Goldish
2009-08-06 11:33   ` Avi Kivity
     [not found] <87671503.1527311249497775045.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 18:47 ` Michael Goldish
2009-08-06 10:23   ` Avi Kivity
     [not found] <938753791.1515401249487180985.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 15:48 ` Michael Goldish
2009-08-05 15:58   ` Gerd Hoffmann
2009-08-05 16:02   ` Avi Kivity
     [not found] <1912575528.1512971249485400261.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 15:21 ` Michael Goldish
     [not found] <657495968.1491511249467149457.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-08-05 10:16 ` Michael Goldish
2009-08-05 12:53   ` Gerd Hoffmann
2009-08-05 13:12     ` Michael Goldish
2009-08-05 13:21       ` Gerd Hoffmann
2009-08-05 14:05         ` Michael Goldish
2009-08-05 14:52           ` Gerd Hoffmann
2009-08-05 15:43           ` Avi Kivity
2009-08-05  9:45 Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.