-
Notifications
You must be signed in to change notification settings - Fork 892
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
Revert "Use config-reload container as an init container" #930
Conversation
For info: jenkins-infra/kubernetes-management#4528 (comment) (edit)
The pod events were helpful to detect we were stuck in the
|
Can you confirm some details here? It's not entirely clear to me from the logs here. Do you have a custom config for number of retries, maybe? I will fix the calls to the endpoint, of course, because that's a bug for sure, but I'm trying to understand what was actually happening here. We're using defaults for retries, etc, so it just exited after the default 5 retries, but it was successful and booted up OK. The Thanks! |
…nkinsci#930)" This reverts commit 1662ed1
Jenkins has not started at this point so there is no URL to call - we only want to `LIST` things. See jenkinsci#930 (comment)
Hi @dominykas , you can find the values we are using in this helmfile value file: https://github.com/jenkins-infra/kubernetes-management/blob/main/config/jenkins_infra.ci.jenkins.io.yaml . We also have secrets values merged with this but it is only the There was no retry setup as far as I can tell (but I might forget something). What happened is that we deployed the 4.7.0 version of the jenkins chart in https://github.com/jenkins-infra/kubernetes-management/pull/4516/files and the controller never went back once applied. As explained in my comment above, the pod was stuck in the init phase with the container "config-init-reload" running. Checking its logs, we saw a bunch of what I put above: errors when trying to connect to the JCasc endpoint at localhost:8080. After 35m, we gave up and had to rollback => does it clarify the issue we had?
Something which is not clear to me is : why does the config-init-reload init container tries to connect to the JCasc endpoint? It makes sense to have the init container preparing the whole configuration set by placing files on the proper location, etc. |
I think I understand this now. This must have had to do with your I'm about to submit the fix, although not sure if there's an easy way we can test it before merging?
My oversight. In my local testing I had that disabled, but when I submitted the final PR, I missed that. #931 will fix that. |
oh good, it make sense and maps to what we saw! Not sure how to easily reproduce it on a local k3s but we don't mind testing the chart with your change before the release though on our production if it helps ? (It is a private controller of the official Jenkins infrastructure). We can do it on a call |
It would be great, if you have the option, to try out #931. I still want to make some improvements to the code/output, but it won't change the semantics. Edit: this is now done. |
Reverts #926