From 6f17d1a38e95cbc36f613a65c24f5dc601508610 Mon Sep 17 00:00:00 2001 From: Adrian Riobo Lorenzo Date: Tue, 21 Nov 2023 11:35:05 +0100 Subject: [PATCH] on https://github.com/pulumi/pulumi-command/pull/268 on the default timeout for ssh dials was changed from no timeout to 15s this affects how we remote setup the cluster as it failed due the combination of timeout + # of attempts. This commit set back to no timeout on dial to ensure we keep the old behave. --- pkg/bundle/setup/clustersetup.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkg/bundle/setup/clustersetup.go b/pkg/bundle/setup/clustersetup.go index cd3757b1..6c14814b 100644 --- a/pkg/bundle/setup/clustersetup.go +++ b/pkg/bundle/setup/clustersetup.go @@ -36,10 +36,11 @@ func SwapKeys(ctx *pulumi.Context, publicIP *pulumi.StringOutput, } c := remote.ConnectionArgs{ - Host: publicIP, - PrivateKey: pulumi.String(privateKey), - User: pulumi.String(bundle.ImageUsername), - Port: pulumi.Float64(bundle.ImageSSHPort), + Host: publicIP, + PrivateKey: pulumi.String(privateKey), + User: pulumi.String(bundle.ImageUsername), + Port: pulumi.Float64(bundle.ImageSSHPort), + PerDialTimeout: pulumi.Int(0), } pubKeyFilename := newPublicKey.ApplyT(util.WriteTempFile).(pulumi.StringOutput) @@ -79,11 +80,11 @@ func Setup(ctx *pulumi.Context, pullSecretEncoded := base64.StdEncoding.EncodeToString([]byte(pullsecret)) c := remote.ConnectionArgs{ - Host: publicIP, - PrivateKey: privateKey, - User: pulumi.String(bundle.ImageUsername), - Port: pulumi.Float64(bundle.ImageSSHPort), - } + Host: publicIP, + PrivateKey: privateKey, + User: pulumi.String(bundle.ImageUsername), + Port: pulumi.Float64(bundle.ImageSSHPort), + PerDialTimeout: pulumi.Int(0)} clusterSetupfileName, err := util.WriteTempFile(string(script)) if err != nil {