From f68b966a6e257c1ec014ac7ce927df2b62a153e7 Mon Sep 17 00:00:00 2001 From: silindbl-msft <75742099+silindbl-msft@users.noreply.github.com> Date: Wed, 9 Aug 2023 11:45:59 -0400 Subject: [PATCH] manager.go: Extend mount timeout to 30 seconds k8s retries the NodeStageVolume calls wtih an exponential backoff, if we retry for longer internally the wall clock time will be longer until we get hit with a bad backoff (particularly interesting during failovers) --- pkg/edgecache/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/edgecache/manager.go b/pkg/edgecache/manager.go index 4627292c7..1f1085fde 100644 --- a/pkg/edgecache/manager.go +++ b/pkg/edgecache/manager.go @@ -140,7 +140,7 @@ func (m *Manager) callWithConnection(fun ConnectionUsingFunc, endpoint string) e func (m *Manager) MountVolume(account string, container string, targetPath string) error { return m.callWithConnection(func(conn grpc.ClientConnInterface) error { - return sendMount(csi_mounts.NewCSIMountsClient(conn), account, container, targetPath, 500*time.Millisecond, 5*time.Second) + return sendMount(csi_mounts.NewCSIMountsClient(conn), account, container, targetPath, 500*time.Millisecond, 30*time.Second) }, m.mountEndpoint) }