qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes
@ 2018-08-23 11:21 Peter Maydell
  2018-08-23 14:11 ` Fam Zheng
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2018-08-23 11:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: patches, Alex Bennée, Fam Zheng, Philippe Mathieu-Daudé

The VM tests currently have a timeout of 2 minutes for trying
to connect to ssh. Since the guest VM has to boot from cold
to the point of accepting inbound ssh during this time, if the
host machine is heavily loaded it can spuriously time out.
Increase the timeout from 2 to 5 minutes.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
I see this ssh-connection-attempt timeout occasionally
in my test builds...

 tests/vm/basevm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index d7149dea7da..7e58d9e0ca2 100755
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -176,7 +176,7 @@ class BaseVM(object):
             raise Exception("Cannot find ssh port from 'info usernet':\n%s" % \
                             usernet_info)
 
-    def wait_ssh(self, seconds=120):
+    def wait_ssh(self, seconds=300):
         starttime = datetime.datetime.now()
         guest_up = False
         while (datetime.datetime.now() - starttime).total_seconds() < seconds:
-- 
2.18.0

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

* Re: [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes
  2018-08-23 11:21 [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes Peter Maydell
@ 2018-08-23 14:11 ` Fam Zheng
  2018-08-24 12:02   ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Fam Zheng @ 2018-08-23 14:11 UTC (permalink / raw)
  To: Peter Maydell
  Cc: qemu-devel, patches, Alex Bennée,
	Philippe Mathieu-Daudé

On Thu, 08/23 12:21, Peter Maydell wrote:
> The VM tests currently have a timeout of 2 minutes for trying
> to connect to ssh. Since the guest VM has to boot from cold
> to the point of accepting inbound ssh during this time, if the
> host machine is heavily loaded it can spuriously time out.
> Increase the timeout from 2 to 5 minutes.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Acked-by: Fam Zheng <famz@redhat.com>

Again, please apply this yourself. :)

Thanks,

Fam

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

* Re: [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes
  2018-08-23 14:11 ` Fam Zheng
@ 2018-08-24 12:02   ` Peter Maydell
  2018-08-24 12:45     ` Peter Maydell
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2018-08-24 12:02 UTC (permalink / raw)
  To: Fam Zheng
  Cc: QEMU Developers, patches@linaro.org, Alex Bennée,
	Philippe Mathieu-Daudé

On 23 August 2018 at 15:11, Fam Zheng <famz@redhat.com> wrote:
> On Thu, 08/23 12:21, Peter Maydell wrote:
>> The VM tests currently have a timeout of 2 minutes for trying
>> to connect to ssh. Since the guest VM has to boot from cold
>> to the point of accepting inbound ssh during this time, if the
>> host machine is heavily loaded it can spuriously time out.
>> Increase the timeout from 2 to 5 minutes.
>>
>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>
> Acked-by: Fam Zheng <famz@redhat.com>
>
> Again, please apply this yourself. :)

Applied, thanks.

-- PMM

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

* Re: [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes
  2018-08-24 12:02   ` Peter Maydell
@ 2018-08-24 12:45     ` Peter Maydell
  2018-08-24 13:51       ` Fam Zheng
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2018-08-24 12:45 UTC (permalink / raw)
  To: Fam Zheng
  Cc: QEMU Developers, patches@linaro.org, Alex Bennée,
	Philippe Mathieu-Daudé

On 24 August 2018 at 13:02, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 23 August 2018 at 15:11, Fam Zheng <famz@redhat.com> wrote:
>> On Thu, 08/23 12:21, Peter Maydell wrote:
>>> The VM tests currently have a timeout of 2 minutes for trying
>>> to connect to ssh. Since the guest VM has to boot from cold
>>> to the point of accepting inbound ssh during this time, if the
>>> host machine is heavily loaded it can spuriously time out.
>>> Increase the timeout from 2 to 5 minutes.
>>>
>>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
>>
>> Acked-by: Fam Zheng <famz@redhat.com>
>>
>> Again, please apply this yourself. :)
>
> Applied, thanks.

I'm still seeing the ssh login for a netbsd VM sometimes
sit there apparently indefinitely. Is there some way to
debug what the guest VM is actually doing when the
log just sits there doing
DEBUG:root:ssh_cmd: ssh -q -o StrictHostKeyChecking=no -o
UserKnownHostsFile=/dev/null -o ConnectTimeout=1 -p 36947 -i
/home/peter.maydell/qemu-netbsd/build/vm-test-g0SkVX.tmp/id_rsa
qemu@127.0.0.1 exit 0
DEBUG:root:ssh_cmd: ssh -q -o StrictHostKeyChecking=no -o
UserKnownHostsFile=/dev/null -o ConnectTimeout=1 -p 36947 -i
/home/peter.maydell/qemu-netbsd/build/vm-test-g0SkVX.tmp/id_rsa
qemu@127.0.0.1 exit 0

(eg a capture of its terminal output) ?

thanks
-- PMM

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

* Re: [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes
  2018-08-24 12:45     ` Peter Maydell
@ 2018-08-24 13:51       ` Fam Zheng
  0 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2018-08-24 13:51 UTC (permalink / raw)
  To: Peter Maydell
  Cc: QEMU Developers, patches@linaro.org, Alex Bennée,
	Philippe Mathieu-Daudé

On Fri, 08/24 13:45, Peter Maydell wrote:
> On 24 August 2018 at 13:02, Peter Maydell <peter.maydell@linaro.org> wrote:
> > On 23 August 2018 at 15:11, Fam Zheng <famz@redhat.com> wrote:
> >> On Thu, 08/23 12:21, Peter Maydell wrote:
> >>> The VM tests currently have a timeout of 2 minutes for trying
> >>> to connect to ssh. Since the guest VM has to boot from cold
> >>> to the point of accepting inbound ssh during this time, if the
> >>> host machine is heavily loaded it can spuriously time out.
> >>> Increase the timeout from 2 to 5 minutes.
> >>>
> >>> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> >>
> >> Acked-by: Fam Zheng <famz@redhat.com>
> >>
> >> Again, please apply this yourself. :)
> >
> > Applied, thanks.
> 
> I'm still seeing the ssh login for a netbsd VM sometimes
> sit there apparently indefinitely. Is there some way to
> debug what the guest VM is actually doing when the
> log just sits there doing
> DEBUG:root:ssh_cmd: ssh -q -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null -o ConnectTimeout=1 -p 36947 -i
> /home/peter.maydell/qemu-netbsd/build/vm-test-g0SkVX.tmp/id_rsa
> qemu@127.0.0.1 exit 0
> DEBUG:root:ssh_cmd: ssh -q -o StrictHostKeyChecking=no -o
> UserKnownHostsFile=/dev/null -o ConnectTimeout=1 -p 36947 -i
> /home/peter.maydell/qemu-netbsd/build/vm-test-g0SkVX.tmp/id_rsa
> qemu@127.0.0.1 exit 0
> 
> (eg a capture of its terminal output) ?

I need to investigate into it. Sometimes I see the timeout too with V=1, but not
if I omit it (i.e. on DEBUG: lines are echoed).

Fam

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

end of thread, other threads:[~2018-08-24 13:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23 11:21 [Qemu-devel] [PATCH] tests/vm: Increase timeout waiting for VM to boot to 5 minutes Peter Maydell
2018-08-23 14:11 ` Fam Zheng
2018-08-24 12:02   ` Peter Maydell
2018-08-24 12:45     ` Peter Maydell
2018-08-24 13:51       ` Fam Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).