-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[self-hosted] 20022.08.0 support bundle does not contain pod logs #13095
Comments
My anecdotal evidence is that the Fluent Bit logs are missing on some installations and not on others, regardless of the version of Gitpod. When I developed it, I believe I tried it on k3s, GKE and AKS but I know of at least one GKE user that's not got these appearing in their support bundles in Will investigate |
I performed some preliminary testing yesterday using a dev license on AKS; the support bundle did contain logs as expected. It might be that this is a limitation in how we're sending logs via replicated for production licenses or a mis-firing redactor. Edit: Good catch regarding the absent logs in 2022.7.x; I suspected it was a regression but if these aren't present on 2022.8.x then this scenario is ruled out. |
I've rooted around the support-bundle log collector and kotsadm interface to support-bundle to look for obvious pitfalls or where more troubleshooting information might lie. The log collection code is a little bit strange and warrants a closer look; if logs can't be collected then logs should be stored in the support bundle but I'm not certain all of the error cases are checked. On potential concern might be that the kotsadm service account might not have permissions to read logs from the Gitpod pods, but that's conjecture. Speaking more broadly, this has now affected multiple customers and is more than a one-off error. |
So I just got a support bundle from someone and they're using |
The support bundle in the first message has a I can see that it's on GKE. There's definitely at least one other customer who's having issues on GKE, so I'm going to focus efforts on that |
Having done some investigation, it looks like it's due to the |
We've seen issues with both the KOTS provided log collector as well as the As a side note, analyzing a support bundle that was missing the |
We generated and uploaded a support bundle from a customer that was affected by the absent The customer also reported that during the Gitpod install, they observed the fluent-bit daemonset being created, pods being scheduled, and then the daemonset and pods being deleted. They're looking into audit logs because this behavior raises the question of some other system coming in and automatically wiping the fluent-bit installation. Edit: After checking their audit logs it appears that the gitpod installer itself is removing fluent-bit. This might be the reinstallation logic triggering the wipe but we'll need to look more closely. |
@adrienthebo I had a look at the Slack thread and I'm very confused. I don't even know why the One thing to note is that we have removed the |
It seems that the cause of the problem is this line, which was added to As part of the September release, we should test that: Given running Gitpod 2022.8.0
And there is a customization_patch deployed
And FluentBit pods are not running
When I update to Gitpod 2022.9.0
Then FluentBit pods should be running |
This issue was resolved in 2022.09.0 as part of the Golang rewrite of the installer. |
Bug description
In Gitpod 2022.07.x, support bundles contained
logs
andlog-collector
directories containing logs of running pods and prior pods, respectively. Recent troubleshooting has shown that support bundles created from Gitpod 2022.08.0 don't contain these directories.Steps to reproduce
Create a support bundle based on 2022.08.0 and confirm that they are missing the expected log directories.
Workspace affected
No response
Expected behavior
No response
Example repository
No response
Anything else?
No response
Front conversations
The text was updated successfully, but these errors were encountered: