sclorg / s2i-python-container

Python container images based on Red Hat Software Collections and intended for OpenShift and general usage, that provide a platform for building and running Python applications. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
http://softwarecollections.org
Apache License 2.0
261 stars 325 forks source link

Cannot resolve internal host #693

Closed DukeReno closed 2 months ago

DukeReno commented 4 months ago

Container platform

OCP 4

Version

No response

OS version of the container image

No response

Bugzilla, Jira

No response

Description

using the image 3.11 python with centos 9, getting this error using Github enterprise

image

this issue seems to repeat with centos packages

can provide more info if you guys need

Reproducer

No response

frenzymadness commented 4 months ago

Thanks for the report. This looks weird. @phracek and @pkubatrh any idea?

Please also tell us where the cluster is hosted. If you run a container there manually, does the name resolution work? It also seems that you have some proxy configured. Is the traffic going to the name resolver affected or ignored by the proxy?

Honestly, this does not seem like something a configuration in the container or image can affect. If you want, I can try to provide some debugging steps but an administrator of your cluster will probably know more about the specifics of your configuration.

DukeReno commented 4 months ago

can you share the debugging steps, we are trying to contact the admin and see if its the case of the proxy or something else.

frenzymadness commented 4 months ago

I'd try to run an empty container with Centos stream 9 in it and test the name resolution inside of it manually. If that works fine, the problem has to be in the settings of the application container. Then I'd try to track the network traffic to see what nameserver the process in the container tries to contact and whether it's accessible or not. Also, if you have access to the internet, you can try to drop proxy settings first to see whether they are causing any troubles or not.

DukeReno commented 4 months ago

FROM quay.io/sclorg/python-311-c9s:c9s

is this the right image? we are creating the container and trying out what you said, just making sure we are not pulling something unknown or different

frenzymadness commented 4 months ago

Yes, it is. That's the latest one we have for Python 3.11 on Centos stream 9.

If you want to investigate the whole chain it's built like this:

So if you want to test a clean (empty) one, take quay.io/centos/centos:stream9.

DukeReno commented 4 months ago

do you know on which entrypoint should I used on the dockerfile to load the image into a container?

frenzymadness commented 4 months ago

I don't understand the question. You can run bash in all of them for interactive testing.

frenzymadness commented 2 months ago

Closing for inactivity. Feel free to reopen and let me know if there is anything else we can help you with.