kolla start fails for docker-py==1.3.0

Bug #1473856 reported by Swapnil Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Medium
Ryan Hallisey

Bug Description

Currently kolla-start fails for docker-py version 1.2.0, it needs to be >1.2.3

$ ./tools/kolla start
Starting rabbitmq
Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3018, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 614, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 627, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 805, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: docker-py<1.3,>=1.2.3
Call docker-compose -f ./compose/rabbitmq.yml up -d fail.

Changed in kolla:
assignee: nobody → Swapnil Kulkarni (coolsvap)
Changed in kolla:
status: New → In Progress
Revision history for this message
Sam Yaple (s8m) wrote :

I cannot confirm this issue. Even with explictly installing docker-compose 1.3.0 and docker-py 1.3.0 I do not have an issue.

root@server02:~/kolla# pip freeze
backports.ssl-match-hostname==3.4.0.2
docker-compose==1.3.0
docker-py==1.3.0
dockerpty==0.3.4
docopt==0.6.2
PyYAML==3.11
requests==2.6.2
six==1.9.0
texttable==0.8.3
websocket-client==0.32.0
root@server02:~/kolla# ./tools/kolla start
Starting rabbitmq
Creating compose_rabbitmq_1...
Starting mariadb
Creating compose_mariadbdata_1...
Creating compose_mariadbapp_1...
Starting keystone
Creating compose_keystone_1...

summary: - kolla start fails for docker-py=1.2.0
+ kolla start fails for docker-py==1.3.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Swapnil Kulkarni (<email address hidden>) on branch: master
Review: https://review.openstack.org/200705

Revision history for this message
Ryan Hallisey (rthall14) wrote :

Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2713, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 567, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: docker-py>=1.2.3,<1.3

Docker compose won't work unless docker-py in 1.2.3. Using docker-py 1.3.0 will generate this error

Changed in kolla:
assignee: Swapnil Kulkarni (coolsvap) → Ryan Hallisey (rthall14)
milestone: none → liberty-2
importance: Undecided → Medium
Revision history for this message
Ryan Hallisey (rthall14) wrote :

Assigning to me since the patch was abandoned

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/203810

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/203810
Committed: https://git.openstack.org/cgit/stackforge/kolla/commit/?id=af9e334d9581311723b60a5a7f7f3257b2750776
Submitter: Jenkins
Branch: master

commit af9e334d9581311723b60a5a7f7f3257b2750776
Author: Ryan Hallisey <email address hidden>
Date: Mon Jul 20 16:31:32 2015 -0400

    Remove docker-py so docker-compose can grab the right version

    Docker compose will fail with a version error if docker-py
    is not 1.2.3. Using >= 1.2.0 will get docker-py 1.3.0 causing
    compose to fail.

    Change-Id: I54ba1fe95b9c7a5a242b8339e153fbee80ff6c3b
    Closes-Bug: #1473856

Changed in kolla:
status: In Progress → Fix Committed
Sam Yaple (s8m)
Changed in kolla:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.