vmware / vmware/photon

Docker Socket API broken after Python update

Open
#1,582 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
3.2k
Forks
692
PR merge metrics
No merged PRs in 30d

Description

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 with Not 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:

python3-jinja2-3.1.2-5.ph5.noarch
python3-requests-2.28.1-6.ph5.noarch
python3-xml-3.11.9-7.ph5.x86_64
python3-libs-3.11.9-7.ph5.x86_64
python3-3.11.9-7.ph5.x86_64
expat-2.6.0-6.ph5.x86_64
expat-libs-2.6.0-6.ph5.x86_64
Reproduction steps
  1. run Photon OS with all updates installed
  2. enable and start Docker
  3. install package python3-pip
  4. run pip install docker==7.0.0 (with latest version 7.1.0 the library is broken as well)
  5. run this script: https://gist.github.com/felixlabrot/c96a6d2018b7ee7dcb004a032f5c323a
Expected behavior

It should be possible to connect to the Docker API like it was before.

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure on an updated Photon OS server by following the listed Docker and pip installation steps, then run the linked reproduction script. Compare the listed Python package versions and Docker library versions to identify the compatibility break. Done means the script can again connect through unix://var/run/docker.sock without the http+docker scheme error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.