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
(backport https://github.com/kata-containers/kata-containers/pull/1544)
This commit is contained in:
Snir Sheriber 2021-03-24 17:52:51 +02:00
parent 7e4dc08b0e
commit b7208b3c6c

View File

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