runtime: increase dial timeout

On some setups, starting multiple kata pods (qemu) simultaneously on the same node
might cause kata VMs booting time to increase and the pods to fail with:
Failed to check if grpc server is working: rpc error: code = DeadlineExceeded desc = timed
out connecting to vsock 1358662990:1024: unknown

Increasing default dialing timeout to 30s should cover most cases.

Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
Fixes: #1543
This commit is contained in:
Snir Sheriber 2021-03-24 17:52:51 +02:00
parent d44412fe24
commit 13653e7b55

View File

@ -33,7 +33,7 @@ const (
MockHybridVSockScheme = "mock"
)
var defaultDialTimeout = 15 * time.Second
var defaultDialTimeout = 30 * time.Second
var hybridVSockPort uint32