Bug 2099555

Summary: docker-compose package (1.29.2) on Fedora 36 needs to use a newer docker-py version
Product: [Fedora] Fedora Reporter: Samael <singingbush>
Component: docker-composeAssignee: Tomas Tomecek <ttomecek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 36CC: error, roman, travneff, ttomecek
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-30 01:17:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Samael 2022-06-21 08:51:22 UTC
using docker-compose from the Fedora 36 repo:

docker-compose version 1.29.2, build unknown
docker-py version: 4.2.2
CPython version: 3.10.5
OpenSSL version: OpenSSL 3.0.3 3 May 2022

it turns out that it should be using docker-py >=4.4.0 for use_ssh_client but is actually broken because it's using 4.2.2

See the following error:

```
$ docker-compose up -d
Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
  File "/usr/lib/python3.10/site-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/usr/lib/python3.10/site-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
  File "/usr/lib/python3.10/site-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
  File "/usr/lib/python3.10/site-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
  File "/usr/lib/python3.10/site-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
  File "/usr/lib/python3.10/site-packages/compose/cli/docker_client.py", line 170, in docker_client
    client = APIClient(use_ssh_client=not use_paramiko_ssh, **kwargs)
TypeError: APIClient.__init__() got an unexpected keyword argument 'use_ssh_client'
```

See related docker-compose issue on github: https://github.com/docker/compose/issues/7970

Comment 1 Tomas Tomecek 2022-06-21 12:05:24 UTC
I'm going to update python-docker today.

Comment 2 Fedora Update System 2022-06-21 15:53:38 UTC
FEDORA-2022-00eaf8fdc8 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-00eaf8fdc8

Comment 3 Fedora Update System 2022-06-22 02:01:40 UTC
FEDORA-2022-00eaf8fdc8 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-00eaf8fdc8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-00eaf8fdc8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2022-06-30 01:17:47 UTC
FEDORA-2022-00eaf8fdc8 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.