clh: Increase the timeouts when using Conf Guests

Launching a pod with measured boot enabled seems to be taking longer
than expected with Cloud Hypervisor, which leads to hitting a timeout
limit.

Let's double those timeout limits for now.

Fixes: #5576

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2022-11-02 17:12:28 +01:00
parent 5f5b4f7da9
commit 76ef07a22d

View File

@ -68,12 +68,12 @@ const (
// Values based on: // Values based on:
clhTimeout = 10 clhTimeout = 10
clhAPITimeout = 1 clhAPITimeout = 1
clhAPITimeoutConfidentialGuest = 10 clhAPITimeoutConfidentialGuest = 20
// Timeout for hot-plug - hotplug devices can take more time, than usual API calls // Timeout for hot-plug - hotplug devices can take more time, than usual API calls
// Use longer time timeout for it. // Use longer time timeout for it.
clhHotPlugAPITimeout = 5 clhHotPlugAPITimeout = 5
clhStopSandboxTimeout = 3 clhStopSandboxTimeout = 3
clhStopSandboxTimeoutConfidentialGuest = 5 clhStopSandboxTimeoutConfidentialGuest = 10
clhSocket = "clh.sock" clhSocket = "clh.sock"
clhAPISocket = "clh-api.sock" clhAPISocket = "clh-api.sock"
virtioFsSocket = "virtiofsd.sock" virtioFsSocket = "virtiofsd.sock"