-
Notifications
You must be signed in to change notification settings - Fork 886
Kubernetes builds are difficult to debug #4767
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
Comments
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity. |
I’d like to do some baby steps first, so @bpmct Do you have any vision for this feature? I see references to a debug mode, so we can either add a new button “Build with debug mode” or a template setting “Debug mode enabled”? |
I was thinking "Try again with debug mode" button or CLI prompt when a build fails. This would just run the build again with the increased I'm also open to do something in the template settings, but it may not be obvious for the admin to go there to turn it on when they see a failed build. |
I like the idea of retrying with debugging on. We can start with that! |
UI improvements are merged, I will focus on enabling debug mode dynamically. |
@BrunoQuaresma I have just merged the backend side, so feel free to look into frontend 👍 . |
If I enter an invalid image as a parameter or something, the build logs will just say the resource is stuck on
Creating
until it eventually times out. If I inspect the pod manually, I will find the error.You can use theTF_LOG=debug
to get more info, but for some reason that makes builds take a very long time: #4766.Additionally, there is a lot of noise with this log level. Perhaps it's only helpful to the user when an error occurs or when someone is modifying the template. Something @kylecarbs suggested was a "Run with debug logging" option when building workspaces, but that could make it difficult to debug race conditions.
The text was updated successfully, but these errors were encountered: