Brokenness in ubuntu oneiric

Bug #888811 reported by Brad Hall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Brad Hall
quantum (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Precise by Yolanda Robla

Bug Description

I'm getting different behavior with the imports between natty (python 2.7.1) and oneiric (2.7.2):

On natty:

$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tools.source_environment
>>> import quantum
>>> print quantum.__path__
['/home/bhall/src/git/quantum-trunk/plugins/openvswitch-plugin/lib/quantum',
'/home/bhall/src/git/quantum-trunk/plugins/sample-plugin/lib/quantum',
'/home/bhall/src/git/quantum-trunk/plugins/cisco-plugin/lib/quantum',
'/home/bhall/src/git/quantum-trunk/client/lib/quantum',
'/home/bhall/src/git/quantum-trunk/server/lib/quantum',
'/home/bhall/src/git/quantum-trunk/common/lib/quantum']
>>> import quantum.plugins
>>> print quantum.plugins.__path__
['/home/bhall/src/git/quantum-trunk/plugins/openvswitch-plugin/lib/quantum/plugins',
'/home/bhall/src/git/quantum-trunk/plugins/sample-plugin/lib/quantum/plugins',
'/home/bhall/src/git/quantum-trunk/plugins/cisco-plugin/lib/quantum/plugins']
>>>

On oneiric:

$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tools.source_environment
>>> import quantum
>>> print quantum.__path__
['/home/bhall/src/git/quantum-trunk/plugins/cisco-plugin/lib/quantum', '/home/bhall/src/git/quantum-trunk/plugins/sample-plugin/lib/quantum', '/home/bhall/src/git/quantum-trunk/plugins/openvswitch-plugin/lib/quantum', '/home/bhall/src/git/quantum-trunk/client/lib/quantum', '/home/bhall/src/git/quantum-trunk/server/lib/quantum', '/home/bhall/src/git/quantum-trunk/common/lib/quantum']
>>> import quantum.plugins
>>> print quantum.plugins.__path__
['/home/bhall/src/git/quantum-trunk/plugins/cisco-plugin/lib/quantum/plugins']
>>>

The trunk is at the same point in both trees (updated as of 5 minutes ago).

With the current behavior on oneiric we're unable to run all of the tests or start the server from the source tree. I'm not sure why but it seems the module overloading that we're doing (multiple quantum.plugins directories, etc) is defeating us.

Brad Hall (bgh)
Changed in quantum:
importance: Undecided → High
assignee: nobody → Brad Hall (bgh)
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

With a 'standard' run_tests execution, do you find out just 98 tests get executed?
I had a similar issue, as I found out that quantum.tests.__path__ did not contain all the tests directories.

It seems the distribute package does the job of concatenating the different 'tests' directories coming from different paths into __path__ variables, but this does not appear to be working with the version of distribute I had in my oneiric distro (0.6.16).

I think this version of distribute come from python-setuptools (which we typically install with apt-get as that's the package where we find easy_install). Anyway I upgraded distribute to 0.6.24 using easy_install; after that the __path__ variable had the correct value.

That said, it still puzzles me why the __path__ variable gets configured correctly in natty, which I think uses distribute 0.6.15.

Revision history for this message
Brad Hall (bgh) wrote :

Hmm.. you're right. I installed 0.6.24 and it works fine now.. thanks!

Revision history for this message
Brad Hall (bgh) wrote :

Guess this means we should update pip-requires to use that version if available.

Changed in quantum:
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to quantum (master)

Reviewed: https://review.openstack.org/1588
Committed: http://github.com/openstack/quantum/commit/76999023389d13e29623ccb311a079cac63de571
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 76999023389d13e29623ccb311a079cac63de571
Author: Brad Hall <email address hidden>
Date: Mon Nov 14 11:04:04 2011 -0800

    Fix for bug 888811

    Use version 0.6.24 of python-distribute which allows us to find all of the
    test directories on ubuntu oneiric.

    Change-Id: Ibdd7f84e3f344b98cc979b2afcdd3dd2d423dfd1

Changed in quantum:
status: In Progress → Fix Committed
dan wendlandt (danwent)
Changed in quantum:
status: Fix Committed → Fix Released
Changed in quantum (Ubuntu):
status: New → 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.