Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report status when stack is locked #736

Open
EronWright opened this issue Nov 1, 2024 · 1 comment
Open

Report status when stack is locked #736

EronWright opened this issue Nov 1, 2024 · 1 comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively

Comments

@EronWright
Copy link
Contributor

A given stack may become stuck due to locking. Can the operator reflect this condition to the user? Perhaps the update could have a Reason for its Failed condition, that would help the Stack controller produce a better status.

Here's an example of how the problem may occur.

 pulumi 2024-10-03T00:08:30.369Z INFO    pulumi  Updating (dev)
 pulumi 2024-10-03T00:08:30.370Z INFO    pulumi
 pulumi 2024-10-03T00:08:45.917Z WARN    pulumi  error: [500] Internal Server Error
 pulumi 2024-10-03T00:08:45.995Z ERROR   server  up completed with an error      {"error": "failed to run update: exit status 255\ncode: 255\nstdout: Updating (dev)\n\n\nstderr: error: [500] Internal Server Error\n\n"}
 pulumi 2024-10-03T00:08:45.996Z ERROR   cmd.serve.grpc  finished streaming call with code Unknown       {"grpc.start_time": "2024-10-03T00:08:28Z", "system": "grpc", "span.kind": "server", "grpc.service": "agent.AutomationService", "grpc.method": "Up", "peer.address": "10.1.33.119:44098", "error": "failed to run update: exit status 255\ncode: 255\nstdout: Updating (dev)\n\n\nstderr: error: [500] Internal Server Error\n\n", "grpc.code": "Unknown", "grpc.time_ms": 17067.732}
random-yaml-workspace-0 pulumi 2024-10-03T00:08:46.868Z INFO    server  selected a stack        {"name": "dev"}
random-yaml-workspace-0 pulumi 2024-10-03T00:08:48.256Z INFO    cmd.serve.grpc  finished unary call with code OK        {"grpc.start_time": "2024-10-03T00:08:46Z", "system": "grpc", "span.kind": "server", "grpc.service": "agent.AutomationService", "grpc.method": "SelectStack", "peer.address": "10.1.33.119:44478", "grpc.code": "OK", "grpc.time_ms": 2078.996}
 pulumi 2024-10-03T00:08:49.541Z INFO    pulumi  Updating (dev)
 pulumi 2024-10-03T00:08:49.542Z INFO    pulumi
 pulumi 2024-10-03T00:08:49.895Z WARN    pulumi  error: [409] another update is currently in progress or was interrupted. Try again later.) Try again later
 pulumi 2024-10-03T00:08:49.895Z WARN    pulumi      for more information about this error, see https://pulumi.io/oa5g1o
 pulumi 2024-10-03T00:08:49.895Z WARN    pulumi  To learn more about possible reasons and resolution, visit https://www.pulumi.com/docs/troubleshooting/#conflict

Leading to:

 pulumi 2024-10-03T00:08:53.653Z INFO    pulumi  Updating (dev)
 pulumi 2024-10-03T00:08:53.654Z INFO    pulumi
 pulumi 2024-10-03T00:08:53.960Z WARN    pulumi  error: [409] another update is currently in progress or was interrupted. Try again later.) Try again later
 pulumi 2024-10-03T00:08:53.961Z WARN    pulumi      for more information about this error, see https://pulumi.io/oa5g1o
 pulumi 2024-10-03T00:08:53.962Z WARN    pulumi  To learn more about possible reasons and resolution, visit https://www.pulumi.com/docs/troubleshooting/#conflict

@EronWright EronWright converted this from a draft issue Nov 1, 2024
@cleverguy25
Copy link

Added to epic #586

@pulumi-bot pulumi-bot added the needs-triage Needs attention from the triage team label Nov 1, 2024
@blampe blampe added impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively
Projects
No open projects
Status: No status
Development

No branches or pull requests

4 participants