-
Notifications
You must be signed in to change notification settings - Fork 216
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
[SURE-7845] HTTP_PROXY does not work in gitjobs anymore #2000
Comments
/cc @raulcabello |
/backport v2.9.0 |
/forwardport v2.9.0 |
QA TemplateSolutionAdd TestingVerify that the Create a proxy and verify that it works as expected. Additional infoProxy was tested as part of this. However, we missed this bug because we didn't check the |
System Information
One upstream cluster, one downstream cluster and one proxy server(used tiny-proxy) Installation and Testing Rancher helm install command
Testing
Screenshots |
SURE-7845 |
I verified also the upgrade scenario from Rancher The env variables are still set after performing the upgrade on Pods fleet-controller and gitjob and also on fleet Job. Note: For some reason the fleet-agent pod doesn't have the env vars set but it was like that even on |
Is there an existing issue for this?
Current Behavior
When the Gitjob pod creates new Kubernetes jobs to download content from the Git repos, the jobs are missing the HTTP_PROXY environment variables.
Therefore, fleet does not work in situations where this is necessary.
Expected Behavior
This was not a problem in old versions of Fleet, but since the update to 0.9.0, the problem exists.
Expected behavior is that the jobs also inherit the HTTP_PROXY environment variables from the gitjob pod
Steps To Reproduce
No response
Environment
Logs
No response
Anything else?
I have found a workaround, although this workaround still contains a problem, but this should also be feasible.
The solution is based on the open github issue 348 in rancher/gitjob. (rancher/gitjob#348)
It is possible to revert the gitjob deployment in the
cattle-fleet-system
namespace to an older version. It is important that it is before version v0.1.85.In this release the inheritance of the HTTP_PROXY env vars has been removed.
https://github.com/rancher/gitjob/pull/302/files#diff-d8502e4f5b09fbcbcb9b11e66e4e2d72c33d0b70b2def399245866b80fc9d975L272
I have used version v0.1.76, as this is the version in my Rancher v2.7.9 deployment.
In addition to the image tag, the command line arguments must also be modified. All previous arguments
gitjob --gitjob-image rancher:VERSION
must be completely removed and replaced with--tekton-image rancher/tekton-utils:v0.1.33
.All jobs based on this Gitjob deployment run without problems.
I still have a problem with the solution, which is that when a Rancher pod is restarted, Fleet is deployed, when this happens the manual change resets and Fleet stops working again.
So the bug is not really related to the Fleet repo itself, but to Gitjob or the update of the Gitjob dependency in the Fleet repository.
I hope this can help others who run into a similar problem, and draw some attention to issue 348 in the Gitjob repo.
With the Rancher 2.8.0 release some more people will run into this problem.
The text was updated successfully, but these errors were encountered: