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

Kubernetes API issues result in orphaned builds which never complete causing infinite queueing #223

Closed
steveworley opened this issue Aug 8, 2023 · 0 comments · Fixed by #224

Comments

@steveworley
Copy link

Describe the bug

In clusters where the Kubernetes API can have intermittent connectivity issues (noticed more in Azure environments that AWS) a build can become orphaned. This usually happens when the build controller is trying to update a build status and cannot make the API request because of connectivity issues. This looks to prevent the build status from being updated which causes subsequent builds to be queued indefinitely.

This usually manifests with build errors that look like:

##############################################
Start Build Process
##############################################
++ set +x
Unable to connect to the server: net/http: TLS handshake timeout

To Reproduce

Steps to reproduce the behavior:

  1. Trigger a build
  2. Cause some sort of net interruption between APIs
  3. Build status is stuck in "started"

Expected behavior

A process exists that reaps orphaned builds.

Screenshots

Additional context

@shreddedbacon shreddedbacon transferred this issue from uselagoon/lagoon Aug 8, 2023
@shreddedbacon shreddedbacon changed the title API issues result in orphaned builds which never complete causing infinite queueing Kubernetes API issues result in orphaned builds which never complete causing infinite queueing Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant