-
Notifications
You must be signed in to change notification settings - Fork 694
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. |
We recommend using |
Hi Shreenidhi, An tdnf package docker-py 7.1.0 would help for this issue ticket. It will probably mess up the dependency chain of the python packages. Here for the sake of completeness, reproduction steps as described from Felix. See attached logfile.
Then, your suggestion: Then, Felix' suggestion: |
The issue was initially caused by a version mismatch between the tdnf package and the pip package. |
@felixlabrot if you let us know the mismatched pips, we will try to fix it. |
:-/ Sounds more like unleash hell on earth... Pypi doesn't do any vulnerability scanning or audits to packages published. Built-in scanned Photon OS subcomponent' sources have their origin repositories in VMware internal repos, Kernel.org, Github.com, Sourgeforge.net, Fedoraproject.org, Rubygems.org, Freedesktop.org, Cpan.org, ftp-based sources e.g. gnu, mozilla, Gitlab-based, and more. "Built-in" sometimes still is handmade, but as I've understood, the team is heavily working on devsecops automation. For python packages, there are promising projects e.g. https://github.com/pyupio/safety but status quo, I trust tdnf-curated packages more than python packages with all those input validation failures, exposed debug information, web application vulnerabilities, outdated dependencies, compromised temporary files, malicious packages, etc. The issue was initially caused by a version mismatch between the tdnf package and the pip package. |
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: