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
Issue with port forward in corporate proxy envinronment #13628
Comments
I think I know the problem since the port forwarding also uses http to talk to the gvproxy api it will get redirect to the proxy which cannot connect to gvproxy. Should be easy to fix, we need to make this http request does not use a proxy. |
When a user has a http proxy configured the VM will use it. However since gvproxy can only be reached internally from within the VM the port forwarding HTTP API call should not be redirected to the proxy. Fixes containers#13628 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
When a user has a http proxy configured the VM will use it. However since gvproxy can only be reached internally from within the VM the port forwarding HTTP API call should not be redirected to the proxy. [NO NEW TESTS NEEDED] Fixes containers#13628 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@Luap99 Thank you. |
Do i need to wait for a release or something i can try it again and see if this is resolved ? When i can get this version of Podman ? |
We will probably back port this and release podman 4.0.3 early next week. |
When a user has a http proxy configured the VM will use it. However since gvproxy can only be reached internally from within the VM the port forwarding HTTP API call should not be redirected to the proxy. [NO NEW TESTS NEEDED] Fixes containers#13628 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
thanks a bunch |
@kishorekkota If you want you can open a cherrypick your self to get it into the 4.0 branch. |
@rhatdan Are there nightly builds that get released - if i do so ? |
No, sorry |
When a user has a http proxy configured the VM will use it. However since gvproxy can only be reached internally from within the VM the port forwarding HTTP API call should not be redirected to the proxy. [NO NEW TESTS NEEDED] Fixes containers#13628 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Still seeing the same issue even with PODMAN 4.0.3. What does 'd' meant in the below URL ? Does that get translated some how or what is the actual URL supposed to be ? http://d/v4.0.2/libpod/containers/179ae42d671ab3c952d35d9e345f8dec751d9b7143f5f4a34ecaac6a1413e726/json |
The version inside the VM needs the update |
that is still showing 4.0.2. I have deleted VM image and did the init again. How do i force the PODMAN update in the VM ? |
you have to wait until it lands in coreos image |
Any update for me. My team is struggling with this issue and any help is greatly appreciated. |
When a user has a http proxy configured the VM will use it. However since gvproxy can only be reached internally from within the VM the port forwarding HTTP API call should not be redirected to the proxy. [NO NEW TESTS NEEDED] Fixes containers#13628 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
/kind bug
Description
PODMAN 4.x seems to have addressed the issue with PODMAN Machine carrying the proxy setting local machine and set it in the PODMAN VM Machine. With this release, it did address the issue around Connection Timeout thats seen while running PODMAN Machine in Mac OS.
But this introduced another issue, that could be specific how my company works.
I am able to run PODMAN container, but when trying to set port forwarding, some of the steps needed to perform port forwarding are routed thru PROXY for some reason and they are failing. My company does not allow traffic to pass thru if the HTTP Traffic is pointed to an API that does not classify content categorization.
Here are the logs between simply running container vs running container with port forwarding.
Running the container alone.
DEBU[0014] DoRequest Method: GET URI: http://d/v4.0.2/libpod/containers/7154e7a416e61846852edd6de6eff5cafc77bee2f3a3e658376f46d70d593fae/json
DEBU[0014] DoRequest Method: POST URI: http://d/v4.0.2/libpod/containers/7154e7a416e61846852edd6de6eff5cafc77bee2f3a3e658376f46d70d593fae/attach
DEBU[0015] Copying standard streams of container "7154e7a416e61846852edd6de6eff5cafc77bee2f3a3e658376f46d70d593fae" in non-terminal mode
INFO[0015] Going to start container "7154e7a416e61846852edd6de6eff5cafc77bee2f3a3e658376f46d70d593fae"
DEBU[0015] DoRequest Method: POST URI: http://d/v4.0.2/libpod/containers/7154e7a416e61846852edd6de6eff5cafc77bee2f3a3e658376f46d70d593fae/start
2022-03-23 22:50:35.440491+00:00 [info] <0.228.0> Feature flags: list of feature flags found:
2022-03-23 22:50:35.448228+00:00 [info] <0.228.0> Feature flags: [ ] implicit_default_bindings
2022-03-23 22:50:35.448257+00:00 [info] <0.228.0> Feature flags: [ ] maintenance_mode_status
2022-03-23 22:50:35.448276+00:00 [info] <0.228.0> Feature flags: [ ] quorum_queue
With Port Forwarding
DEBU[0000] Found credentials for docker-upstreams-virtual.artifactory.discoverfinancial.com in credential helper containers-auth.json in file /Users/kkota/.config/containers/auth.json
DEBU[0000] DoRequest Method: POST URI: http://d/v4.0.2/libpod/images/pull
DEBU[0000] DoRequest Method: POST URI: http://d/v4.0.2/libpod/containers/create
INFO[0000] Going to attach to container "179ae42d671ab3c952d35d9e345f8dec751d9b7143f5f4a34ecaac6a1413e726"
DEBU[0000] DoRequest Method: GET URI: http://d/v4.0.2/libpod/containers/179ae42d671ab3c952d35d9e345f8dec751d9b7143f5f4a34ecaac6a1413e726/json
DEBU[0000] DoRequest Method: POST URI: http://d/v4.0.2/libpod/containers/179ae42d671ab3c952d35d9e345f8dec751d9b7143f5f4a34ecaac6a1413e726/attach
DEBU[0000] ExitCode msg: "error preparing container 179ae42d671ab3c952d35d9e345f8dec751d9b7143f5f4a34ecaac6a1413e726 for attach: something went wrong with the request: "\r\n <title> access denied
Steps to reproduce the issue:
PODMAN Machine INIT
PODMAN Machine start
podman run --log-level=debug -p 5672:5672 -p 15672:15672 rabbitmq
Describe the results you received:
Container did not start as expected.
Describe the results you expected:
Container up and running.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Mac OS
The text was updated successfully, but these errors were encountered: