Skip to content

Commit

Permalink
increase server status timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
kon-angelo committed Dec 17, 2024
1 parent 5c8b0e0 commit 37ab2c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/driver/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 37ab2c5

Please sign in to comment.