From 37ab2c5b5a4b0746c2770b631dfd00289043950b Mon Sep 17 00:00:00 2001 From: Konstantinos Angelopoulos Date: Tue, 17 Dec 2024 10:43:51 +0100 Subject: [PATCH] increase server status timeouts --- pkg/driver/executor/executor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/driver/executor/executor.go b/pkg/driver/executor/executor.go index c2c5be9a..77341ec7 100644 --- a/pkg/driver/executor/executor.go +++ b/pkg/driver/executor/executor.go @@ -95,7 +95,7 @@ func (ex *Executor) CreateMachine(ctx context.Context, machineName string, userD } } - err = ex.waitForServerStatus(ctx, server.ID, []string{client.ServerStatusBuild}, []string{client.ServerStatusActive}, 600) + err = ex.waitForServerStatus(ctx, server.ID, []string{client.ServerStatusBuild}, []string{client.ServerStatusActive}, 3600) if err != nil { return "", deleteOnFail(fmt.Errorf("error waiting for server [ID=%q] to reach target status: %w", server.ID, err)) } @@ -325,7 +325,7 @@ func (ex *Executor) ensureVolume(ctx context.Context, name, imageID string) (str pendingStatuses := []string{client.VolumeStatusCreating, client.VolumeStatusDownloading} targetStatuses := []string{client.VolumeStatusAvailable} - if err := ex.waitForVolumeStatus(ctx, volumeID, pendingStatuses, targetStatuses, 600); err != nil { + if err := ex.waitForVolumeStatus(ctx, volumeID, pendingStatuses, targetStatuses, 3600); err != nil { return "", err } @@ -471,7 +471,7 @@ func (ex *Executor) DeleteMachine(ctx context.Context, machineName, providerID s return err } - if err = ex.waitForServerStatus(ctx, server.ID, nil, []string{client.ServerStatusDeleted}, 300); err != nil { + if err = ex.waitForServerStatus(ctx, server.ID, nil, []string{client.ServerStatusDeleted}, 3600); err != nil { return fmt.Errorf("error while waiting for server [ID=%q] to be deleted: %v", server.ID, err) } } else if !errors.Is(err, ErrNotFound) {