#1115644 ansible: docker module cannot connect on hosts with newer python3-requests

Package:
ansible
Source:
ansible
Submitter:
Thorsten Glaser
Date:
2025-09-19 09:11:02 UTC
Severity:
normal
Tags:
#1115644#5
Date:
2025-09-18 20:37:40 UTC
From:
To:
The community.docker collection of the bin:ansible package embeds
a courtesy copy of docker-py.

The module fails to connect to servers when the managed node has
a python3-requests version of 1.32 or up (such as trixie).

{"changed": false, "msg": "Error connecting: Error while fetching server API version: Not supported URL scheme http+docker"}

This is https://github.com/docker/docker-py/pull/3257 which also
contains a fix that needs to be applied to ansible in, at least,
oldstable (didn’t check stable), to be able to manage trixie hosts.

The fix is two lines plus a comment.


(installed is 7.7.0+dfsg-3+deb12u1 but I dropped the + to not
confuse bts version tracking)

#1115644#16
Date:
2025-09-19 09:08:59 UTC
From:
To:
Hi Thorsten,

this is somewhat similar to #1111137, where Ed also asked for a backport of a
patch to support running ansible from bookworm against a target on trixie.

This is generally not supported, I've explained the rationale here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1111137#10

I don't think we should deviate from the support matrix provides by upstream, as
I expect a few dozen bugs when running against trixie hosts.

Greetings,
Lee