testtools-1.7.0 triggering pkg_resources.VersionConflict: (unittest2 0.5.1 (/usr/lib/python2.7/dist-packages), Requirement.parse('unittest2>=1.0.0'))

Bug #1430592 reported by Joe Gordon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Gate
Invalid
Undecided
Unassigned
devstack
Fix Released
Undecided
Ian Wienand

Bug Description

http://logs.openstack.org/82/162282/4/check/check-grenade-dsvm-partial-ncpu/dd5cab4/logs/old/devstacklog.txt.gz#_2015-03-10_21_59_49_153

pkg_resources.VersionConflict: (unittest2 0.5.1 (/usr/lib/python2.7/dist-packages), Requirement.parse('unittest2>=1.0.0'))

Looks like we install python-unittest2 0.5.1-1ubuntu1 from apt-get.

This is impacting stable/juno and stable/icehouse. Which means grenade on master is broken since we cannot install stable/juno

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/163241

Revision history for this message
Joe Gordon (jogo) wrote :

looks like uncapped transitive dependency

2015-03-10 21:59:48.127 | Collecting testtools (from zake>=0.1->tooz<=0.12,>=0.3->ceilometer==2014.2.3.dev2)

And ceilometer doesn't have testtools as a regular requirement so the cap sync stuff doesn't kick in.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/163242

Revision history for this message
Joe Gordon (jogo) wrote :

Zake has been fixed so testtools won't be installed from there https://github.com/yahoo/Zake/blame/master/setup.py

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

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

Changed in devstack:
assignee: nobody → Ian Wienand (iwienand)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/163251

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/163254

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (stable/icehouse)

Reviewed: https://review.openstack.org/163241
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=db7581cbff50277784948a4d09616558179210a8
Submitter: Jenkins
Branch: stable/icehouse

commit db7581cbff50277784948a4d09616558179210a8
Author: Joe Gordon <email address hidden>
Date: Tue Mar 10 17:26:21 2015 -0700

    Stop installing unittest2 from deb packages

    The version installed is conflicting with the version required in
    testtools-1.7

    While a better solution is to dig through and figure out what is causing
    the transitive floating dependency that installs testtools 1.7
    this should fix the issue for stable/icehouse. And we need to fix
    stable/icehouse to fix stable/juno (because grenade) which in tern is
    needed to unbreak master branch.

    Change-Id: Ib193e18afbb60c43d8dd66444bbf367689837182
    Partial-Bug: #1430592

tags: added: in-stable-icehouse
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (stable/juno)

Reviewed: https://review.openstack.org/163242
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=6dae13645f915bd55af26bf5e34d07d138fc9dd1
Submitter: Jenkins
Branch: stable/juno

commit 6dae13645f915bd55af26bf5e34d07d138fc9dd1
Author: Joe Gordon <email address hidden>
Date: Tue Mar 10 17:33:33 2015 -0700

    Stop installing unittest2 from deb packages

    The version installed is conflicting with the version required in
    testtools-1.7

    ceilometer installs tooz which installs zake which has a run time
    dependency on uncapped testtools. Which in turn requires a version of
    unittest2 that conflicts with the version provided via packages

    We need the fix to stable/juno to unbreak master because grenade.

    Change-Id: Ia585d076982e1a0fbb286b7bd1845e4f9821ed76
    Depends-On: Ib193e18afbb60c43d8dd66444bbf367689837182
    Partial-Bug: #1430592

tags: added: in-stable-juno
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/163251
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=463cb7aa93fae454bf054a1c7853e953488fa357
Submitter: Jenkins
Branch: stable/juno

commit 463cb7aa93fae454bf054a1c7853e953488fa357
Author: Ian Wienand <email address hidden>
Date: Wed Mar 11 12:04:49 2015 +1100

    Don't use packaged unittest2

    Let pip install unittest2; pip installation can conflict with the
    packaged version.

    We should not need work-arounds for the installed broken version of
    unittest2 any more (even though this was only for python2.6, which I
    doubt anyone is actually using for devstack work anyway)

    Cherry-picked from b0595235a2374451c3f899fb893ad989a74b04d1
    Partial-Bug: #1430592

    Conflicts:
     files/rpms-suse/general
     files/rpms/general

    Change-Id: If6239eab4fe9d63fd1a368e02d88fd57a825b217

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (stable/icehouse)

Reviewed: https://review.openstack.org/163254
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=6b1198b8303c4d3da1a5f96368c85b44c4122c82
Submitter: Jenkins
Branch: stable/icehouse

commit 6b1198b8303c4d3da1a5f96368c85b44c4122c82
Author: Ian Wienand <email address hidden>
Date: Wed Mar 11 12:04:49 2015 +1100

    Don't use packaged unittest2

    Let pip install unittest2; pip installation can conflict with the
    packaged version.

    Cherry-picked from b0595235a2374451c3f899fb893ad989a74b04d1
    Partial-Bug: #1430592

    Conflicts:
     files/rpms-suse/general
     files/rpms/general

    Change-Id: I08a00b92c3578abfdb0300a37eeda117d4c76e92

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

Reviewed: https://review.openstack.org/163249
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=b0595235a2374451c3f899fb893ad989a74b04d1
Submitter: Jenkins
Branch: master

commit b0595235a2374451c3f899fb893ad989a74b04d1
Author: Ian Wienand <email address hidden>
Date: Wed Mar 11 12:04:49 2015 +1100

    Don't use packaged unittest2

    Let pip install unittest2; pip installation can conflict with the
    packaged version.

    Change-Id: Iec9b35174ac68ebf713cd7462d7b5a82583d6e22
    Partial-Bug: #1430592

Matt Riedemann (mriedem)
Changed in openstack-gate:
status: New → Invalid
Changed in devstack:
status: In Progress → 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.