-
Notifications
You must be signed in to change notification settings - Fork 692
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
Docker Socket API broken after Python update #1582
Comments
Your script indicates a custom Photon OS compilation due to the fact that check_mk has specific libraries.
Docker version
From your script, did you use the RedHat
Or did you use the docker version [1] as described in the [2]? Accordingly to the latest commits in the official Photon OS 5.0 repository, see [3], afaik most changes were not related to python. There was a cve related fix for python virtualenv [4]. Can you describe ~"broken"? edited: [1] |
You are entirely wrong with those packages. You thought about the Check_MK server, which is not compatible with Photon OS. I am talking about the monitoring agent, which is not even needed to replicate the issue. The monitoring agent just calls the mentioned Python script and processes the text output it creates. To replicate the problem, there isn't even a need to install the agent. Just follow exactly my replication steps and do nothing more than that. That means your [1] and [2] are entirely not needed and are about something completely different. The PIP package "docker-py" must not be used as per Check_MK documentation. This command is the magic fix to the issue: |
So your enhancement suggestion is that eligible 'python3-*'-packages are updating their 'pip'-version as well? Good catch. @prashant1221 Could you discuss this enhancement suggestion internally? |
Yes, because my issue has proven that a version mismatch can lead to broken packages. When both things are automatically kept in sync that can prevent such issues in the future. |
Please re-open the issue, so the Photon OS team can have a look at it. Be patient. Thank you for your help. Thankful. |
Describe the bug
Since the latest update to some Python packages it is not possible anymore to access the Docker API via
unix://var/run/docker.sock
. All connection attempts fail withNot supported URL scheme http+docker
universally on all Photon OS servers. This entirely breaks monitoring with all Python based monitoring solutions (like Check_MK) and likely much more.The bug is in one of those packages:
Reproduction steps
python3-pip
pip install docker==7.0.0
(with latest version 7.1.0 the library is broken as well)Expected behavior
It should be possible to connect to the Docker API like it was before.
Additional context
No response
The text was updated successfully, but these errors were encountered: