Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit a1b36c2

Browse files
committed
watch hyperstart with longer timeouts
Jekins saw launching vm in more than 30 seconds... Signed-off-by: Peng Tao <bergwolf@gmail.com>
1 parent ffa2b2c commit a1b36c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hypervisor/hypervisor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (ctx *VmContext) handlePAEs() {
4444
}
4545

4646
func (ctx *VmContext) watchHyperstart(sendReadyEvent bool) {
47-
timeout := time.AfterFunc(30*time.Second, func() {
47+
timeout := time.AfterFunc(60*time.Second, func() {
4848
if ctx.PauseState == PauseStateUnpaused {
4949
ctx.Log(ERROR, "watch hyperstart timeout")
5050
ctx.Hub <- &InitFailedEvent{Reason: "watch hyperstart timeout"}
@@ -69,7 +69,7 @@ func (ctx *VmContext) watchHyperstart(sendReadyEvent bool) {
6969
sendReadyEvent = false
7070
}
7171
time.Sleep(10 * time.Second)
72-
timeout.Reset(30 * time.Second)
72+
timeout.Reset(60 * time.Second)
7373
}
7474
timeout.Stop()
7575
}

0 commit comments

Comments
 (0)