Bug 1165620

Summary: docker-compose conflicting with python-PyYAML
Product: [openSUSE] openSUSE Distribution Reporter: Igor Olhovskiy <IgorOlhovskiy+opensuse>
Component: Upgrade ProblemsAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: adrian.glaubitz, ecsos, egdfree, fvogt, jsegitz, kkaempf, marararam, Mathias.Homann, meissner, michaelof, noga.dany, sebix+novell.com, tech4patton, wolfgang.engel, wolfgang
Version: Leap 15.1Flags: kkaempf: needinfo? (adrian.glaubitz)
ecsos: needinfo? (lnussel+factory)
ecsos: needinfo? (wolfgang.engel)
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1166497    

Description Igor Olhovskiy 2020-03-04 06:24:24 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Build Identifier: 

When installing `docker-compose` at 04.03.2020 from default opensuse 15.1 repos, getting the message
Problem: docker-compose-1.17.0-lp151.3.2.noarch conflicts with python-PyYAML >= 4 provided by python2-PyYAML-5.1.2-lp151.2.3.1.x86_64

Reproducible: Always

Steps to Reproduce:
1. Run sudo zypper install docker-compose
Actual Results:  
Dependency conflict

Expected Results:  
docker-compose installed
Comment 1 Andrey Karepin 2020-03-04 12:10:31 UTC
*** Bug 1165673 has been marked as a duplicate of this bug. ***
Comment 2 Klaus Kämpf 2020-03-04 12:12:55 UTC
Asking python-PyYAML maintainer for help
Comment 3 Eric Schirra 2020-03-05 18:39:45 UTC
*** Bug 1165544 has been marked as a duplicate of this bug. ***
Comment 4 Eric Schirra 2020-03-05 18:40:04 UTC
*** Bug 1165592 has been marked as a duplicate of this bug. ***
Comment 5 Eric Schirra 2020-03-05 18:43:29 UTC
Update packages python-PyYAML is to new for docker-compose in Leap.

python-PyYAML in Leap_15.1:Update is version 5.1.2

docker-compose from Leap_15.1 has in spec:
Requires:       python-PyYAML           >= 3.11
Conflicts:      python-PyYAML           >= 4

So i think docker-compose must also update.
Comment 6 Andrey Karepin 2020-03-05 18:59:17 UTC
maybe need to replace docker-compose with python-docker-compose
Comment 7 Eric Schirra 2020-03-05 19:15:21 UTC
Have update to 1.25.1 from devel:python:backports

But you also must update:

python-docker
python-docker-pycreds
python-cached-property
python-dockerpty
python-texttable
python-websocket-client
python-paramiko

I have not tested if docker-compose runs well!

But now i can install patch openSUSE-2020-290 (Update python-PyYAML).
Comment 8 Wolfgang Rosenauer 2020-03-06 09:35:35 UTC
I had to choose on zypper patch if I want to remove docker-compose or not install a security patch. (All the same reasons but those two are not acceptable choices for a stable release like Leap).
Comment 9 Brad P 2020-03-11 13:07:05 UTC
Any update on this issue?
Comment 10 Mathias Homann 2020-03-15 10:48:21 UTC
what is the actual **question** that is the reason for NEEDINFO?

also, what's the state of things?
Comment 11 Marcus Meissner 2020-03-15 16:45:12 UTC
I will just try a docker-compose without the upper bound limit of PyYAML.


can you check it out from the stgaged incident?

http://download.opensuse.org/repositories/openSUSE:/Maintenance:/12121/openSUSE_Leap_15.1_Update/
Comment 12 Mathias Homann 2020-03-15 18:02:21 UTC
I installed docker-compose from http://download.opensuse.org/repositories/openSUSE:/Maintenance:/12121/openSUSE_Leap_15.1_Update, and ran an AWX deployment on my laptop, seems to work just fine, so I'd say this docker-compose package is good to go.
Comment 13 Swamp Workflow Management 2020-03-16 11:11:55 UTC
openSUSE-RU-2020:0347-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1165620
CVE References: 
Sources used:
openSUSE Leap 15.1 (src):    docker-compose-1.17.0-lp151.4.3.1
Comment 14 Igor Olhovskiy 2020-03-16 11:20:50 UTC
Now docker-compose has installed no problem, but when trying to call, gives this

Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3123, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3107, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3136, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 580, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 593, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 781, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'PyYAML<4,>=3.10' distribution was not found and is required by docker-compose
Comment 15 Brad P 2020-03-17 14:44:16 UTC
I have the same problem as Igor.  How is this even passing openqa?
Comment 16 Marcus Meissner 2020-03-17 15:47:55 UTC
docker-compose not tested by openqa.

I was confident after the report in comment #c12 by Matthias that it works though.
Comment 17 Michael from Offenbach Germany 2020-03-19 12:41:49 UTC
same "DistributionNotFound" problem for me.

Wouldn't this be maybe a good opportunity to think about upgrading our distro version of docker-compose to a more recent? 
1.17 is from 2017, current is 1.25.4!
Comment 18 Eric Schirra 2020-03-19 13:23:45 UTC
(In reply to Michael from Offenbach Germany from comment #17)
> same "DistributionNotFound" problem for me.
> 
> Wouldn't this be maybe a good opportunity to think about upgrading our
> distro version of docker-compose to a more recent? 
> 1.17 is from 2017, current is 1.25.4!

Yes. See comment 7.
But it is not in SLE. :-(
Comment 19 Mathias Homann 2020-03-19 13:44:32 UTC
(In reply to Marcus Meissner from comment #16)
> docker-compose not tested by openqa.
> 
> I was confident after the report in comment #c12 by Matthias that it works
> though.

I already had python2-PyYAML installed - so docker-compose worked just fine.

Maybe the update needs some more dependency trickery.
Comment 20 Fabian Vogt 2020-03-19 13:48:06 UTC
(In reply to Marcus Meissner from comment #16)
> docker-compose not tested by openqa.
> 
> I was confident after the report in comment #c12 by Matthias that it works
> though.

There are tests and for 15.1 and 15.2 which fail now: https://openqa.opensuse.org/tests/1208217#step/docker_compose/15
Comment 21 Wolfgang Rosenauer 2020-03-19 13:56:41 UTC
(In reply to Mathias Homann from comment #19)
> (In reply to Marcus Meissner from comment #16)
> > docker-compose not tested by openqa.
> > 
> > I was confident after the report in comment #c12 by Matthias that it works
> > though.
> 
> I already had python2-PyYAML installed - so docker-compose worked just fine.
> 
> Maybe the update needs some more dependency trickery.

hmm, no, something seems strange if it works for you.

pkg_resources.DistributionNotFound: The 'PyYAML<4,>=3.10' distribution was not found and is required by docker-compose

The current package still expects PyYAML < 4 but the current updated version on 15.1 is 5.x.

I've built a docker-compose package with that upper limit removed (for real) and used that for a few days now. Seems to work while I also agree that 1.17 is quite old and has other known issues.
Comment 22 Marcus Meissner 2020-03-19 16:04:49 UTC
can you submit tis against openSUSE:Leap:15.1:Update then I can process it and release it
Comment 23 Wolfgang Rosenauer 2020-03-19 16:22:32 UTC
created request id 786522
Comment 24 Swamp Workflow Management 2020-03-19 17:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (1165620) was mentioned in
https://build.opensuse.org/request/show/786522 15.1 / docker-compose
Comment 25 Swamp Workflow Management 2020-03-21 14:12:52 UTC
openSUSE-RU-2020:0363-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1165620
CVE References: 
Sources used:
openSUSE Backports SLE-15-SP1 (src):    docker-compose-1.17.0-bp151.4.3.1
Comment 26 Swamp Workflow Management 2020-03-22 14:13:24 UTC
openSUSE-RU-2020:0364-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1165620
CVE References: 
Sources used:
openSUSE Leap 15.1 (src):    docker-compose-1.17.0-lp151.4.6.1
Comment 27 Swamp Workflow Management 2020-03-27 11:18:40 UTC
openSUSE-RU-2020:0390-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1165620
CVE References: 
Sources used:
openSUSE Backports SLE-15-SP1 (src):    docker-compose-1.17.0-bp151.4.6.1
Comment 28 Michael from Offenbach Germany 2020-03-27 12:05:57 UTC
FYI works fine for me after zypper up to the new 1.17.0-lp151.4.6.1 pkg.

THANKS!
Comment 29 Igor Olhovskiy 2020-03-27 12:34:13 UTC
Yep, confirming, all is ok now.
Comment 30 Igor Olhovskiy 2020-03-27 12:35:15 UTC
Fixed
Comment 32 OBSbugzilla Bot 2021-12-15 12:50:14 UTC
This is an autogenerated message for OBS integration:
This bug (1165620) was mentioned in
https://build.opensuse.org/request/show/940713 Backports:SLE-12-SP5 / docker-compose+python-docker