tests fail in fedora 18 due a requirements problem

Bug #1191866 reported by Xavier Queralt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

In a fresh installation of Fedora 18, when trying to run the tests with tox a dependencies problems in python packages makes them fail.

The problem lies on pip's inability to process properly recursive requirements and deciding that pyparsing's version from the system (1.5.6) is fine while cliff (a python-quantumclient's requirement) needs at least 1.5.7.

In pip's issue tracker (See https://github.com/pypa/pip/issues/988) they state that the best solution is to set in the main project the min/max version needed to prevent such problem.

nova $ tox -e py27

[...]

Could not load 'keypairs': (pyparsing 1.5.6 (/usr/lib/python2.7/site-packages), Requirement.parse('pyparsing==1.5.7'))
(pyparsing 1.5.6 (/usr/lib/python2.7/site-packages), Requirement.parse('pyparsing==1.5.7'))
Traceback (most recent call last):
  File "/home/xqueralt/w/r/c/nova/.tox/py27/lib/python2.7/site-packages/stevedore/extension.py", line 83, in _load_plugins
    invoke_kwds,
  File "/home/xqueralt/w/r/c/nova/.tox/py27/lib/python2.7/site-packages/stevedore/enabled.py", line 46, in _load_one_plugin
    ep, invoke_on_load, invoke_args, invoke_kwds,
  File "/home/xqueralt/w/r/c/nova/.tox/py27/lib/python2.7/site-packages/stevedore/extension.py", line 95, in _load_one_plugin
    plugin = ep.load()
  File "/home/xqueralt/w/r/c/nova/.tox/py27/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 2012, in load
    if require: self.require(env, installer)
  File "/home/xqueralt/w/r/c/nova/.tox/py27/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 2025, in require
    working_set.resolve(self.dist.requires(self.extras),env,installer))
  File "/home/xqueralt/w/r/c/nova/.tox/py27/lib/python2.7/site-packages/distribute-0.6.34-py2.7.egg/pkg_resources.py", line 598, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
VersionConflict: (pyparsing 1.5.6 (/usr/lib/python2.7/site-packages), Requirement.parse('pyparsing==1.5.7'))

[...}

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

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

Changed in nova:
assignee: nobody → Xavier Queralt (xqueralt)
status: New → In Progress
Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

Reviewed: https://review.openstack.org/34227
Committed: http://github.com/openstack/nova/commit/ec010304db60a005fb77a44201728c51538a67f8
Submitter: Jenkins
Branch: master

commit ec010304db60a005fb77a44201728c51538a67f8
Author: Xavier Queralt <email address hidden>
Date: Mon Jun 24 17:30:37 2013 +0200

    Update pyparsing to 1.5.7

    The version of cliff we are using depends on pyparsing>=1.5.7 but
    python-quantumclient pulls 1.5.6 because it appears first in the
    requirements processing.

    The requirements change is in
        https://review.openstack.org/#/c/33406/

    Fixes bug #1191866

    Change-Id: Ib1c11b53813ff96b750f5ffe4997ad01907d32c3

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-2 → 2013.2
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.