Skip to content

Commit

Permalink
on pulumi/pulumi-command#268 on the default timeout for ssh dials was…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
adrianriobo committed Nov 21, 2023
1 parent e764bab commit 6f17d1a
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkg/bundle/setup/clustersetup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6f17d1a

Please sign in to comment.