You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just upgraded from 3.9.2 to 3.13.0 and had saw all our pipelines failing.
In our setup we rely on http(s)_proxy and no_proxy as our corporate proxy refuses to serve internal resources.
Since the upgrade we can't access internal resources anymore which means the no_proxy environment variable is not set or wrong.
Inspecting running /opt/resource/check processes via /proc/$PID/environ we noticed that the no_proxy environment variable only contains the very last part the value we pass via the http_proxy environment variable to the worker: env no_proxy=host1,host2,host3 concourse worker ... ends up as no_proxy=host3 in containers scheduled by the atc to that worker.
We also confirmed that this is already wrong in the database via select name,no_proxy from workers. So the worker seems to be picking this up wrong during startup.
@cfasnacht As this bug only effects how environment variables are parsed you can mitigate this by starting the worker with the command line flag --no-proxy=$no_proxy. This works because command line arguments have a higher precedence then environment variables.
Although this issue should be fixed with vmware-archive/worker#1, I still see this effect with concourse 3.14.1. I am using the concourse docker images.
Hmmmm, too bad then that the fix made it to the Changelog for 3.14 :D I really was hoping this was fixed.
For anyone struggling with the same issue: Try to make no_proxy space separated. This might be somewhat non-standard but it avoids this concourse bug and my initial tests suggest that this might actually work as intended (at least curl can handle a space separated no_proxy variable).
Hopefully this gets fixed with 3.15.0 or 3.14.2 :)
Woops, you're right it was never bumped. Sorry about that. I really want to make it harder to accidentally forget to bump things after merging PRs. I'll un-milestone it and update the release notes later.
@databus23 thanks for quick reply. I did try to start worker with --no-proxy=$no_proxy, where variable $no_proxy is being sourced off /etc/environment. However, inside the container (using hijack command), I see the following:
@akamalov We are using systemd as well: try --no-proxy=${no_proxy}. My above statement was meant as sort of a general remark to pass the environment variable explicitly as a command line argument. systemd specifically doesn't expand $var but only ${var} in ExecStart.
@akamalov I think @databus23 has EnvironmentFile=-/etc/environment and sets all the other concourse params as command line flags.
I think you are trying to set the majority of your concourse params inside EnvironmentFile=/etc/concourse/worker_environment . Maybe this could giving trouble?
Activity
cfasnacht commentedon May 28, 2018
We also updated to 3.13 and have the same issue, it would be great if you could fix this, or release the fix as soon as possible.
Thanks!
databus23 commentedon May 28, 2018
@cfasnacht As this bug only effects how environment variables are parsed you can mitigate this by starting the worker with the command line flag
--no-proxy=$no_proxy. This works because command line arguments have a higher precedence then environment variables.mgruener commentedon Jun 19, 2018
Although this issue should be fixed with vmware-archive/worker#1, I still see this effect with concourse 3.14.1. I am using the concourse docker images.
databus23 commentedon Jun 19, 2018
Looking at https://github.com/concourse/concourse/tree/v3.14.1/src/github.com/concourse it seems like that commit never made it into 3.14.x.
@vito I think the changelog needs to be amended and the milestone for vmware-archive/worker#1 set to 3.15 (or 3.14.2?)
mgruener commentedon Jun 19, 2018
Hmmmm, too bad then that the fix made it to the Changelog for 3.14 :D I really was hoping this was fixed.
For anyone struggling with the same issue: Try to make no_proxy space separated. This might be somewhat non-standard but it avoids this concourse bug and my initial tests suggest that this might actually work as intended (at least curl can handle a space separated no_proxy variable).Hopefully this gets fixed with 3.15.0 or 3.14.2 :)
vito commentedon Jun 19, 2018
Woops, you're right it was never bumped. Sorry about that. I really want to make it harder to accidentally forget to bump things after merging PRs. I'll un-milestone it and update the release notes later.
akamalov commentedon Jun 19, 2018
I can concur. Using 3.14.0. This is an issue for us. We can no longer backup our PCF environment, which is a major bummer..
databus23 commentedon Jun 19, 2018
@mgruener @akamalov Did you try the workaround mentioned above: #2220 (comment)
akamalov commentedon Jun 19, 2018
@databus23 thanks for quick reply. I did try to start worker with
--no-proxy=$no_proxy, where variable$no_proxyis being sourced off /etc/environment. However, inside the container (usinghijackcommand), I see the following:For some reason, variable
$no_proxywasn't sourced properly, shown above. Here is my systemD service file:And my
/etc/environmentfile looks like this:Thanks yet again.
databus23 commentedon Jun 19, 2018
@akamalov We are using systemd as well: try
--no-proxy=${no_proxy}. My above statement was meant as sort of a general remark to pass the environment variable explicitly as a command line argument. systemd specifically doesn't expand$varbut only${var}inExecStart.akamalov commentedon Jun 19, 2018
Yup, did as you asked as well:
Using
hijackcommand:Variable
no_proxyis gone...databus23 commentedon Jun 19, 2018
@akamalov strange. this definitely works for us for weeks now.
our /etc/environment looks similar to yours.
DaxterM commentedon Jun 19, 2018
@akamalov I think @databus23 has
EnvironmentFile=-/etc/environmentand sets all the other concourse params as command line flags.I think you are trying to set the majority of your concourse params inside
EnvironmentFile=/etc/concourse/worker_environment. Maybe this could giving trouble?akamalov commentedon Jun 19, 2018
I removed proxy references from worker environment file and then I modified
/etc/system/system/concourse-worker.serviceto have the following:It took the variable thereafter.
Thanks so much @DaxterM and @databus23
mgruener commentedon Jun 20, 2018
@databus23 The workaround does not really help me here as I am using the Concourse Helm chart to run Concourse on Kubernetes. And the chart has no way to specify additional command line parameters: https://github.com/kubernetes/charts/blob/master/stable/concourse/templates/worker-statefulset.yaml#L48
(yes, I could fork and modify it but I am in the middle of moving away from a customized concourse helm chart that I would have to maintain myself).
vito commentedon Jul 24, 2018
Gonna close this as vmware-archive/worker#1 was merged. Sorry for the wait, y'all, this will be in the next release (4.0) which has dragged on a bit.
bump etree tsa handlers mux clockwork goxmldsig genproto grpc