Nova stable/diablo branch unit tests fail when using the ubuntu python-mox package

Bug #908232 reported by Kiall Mac Innes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Medium
Vish Ishaya
python-mox (Ubuntu)
New
Undecided
Unassigned

Bug Description

The nova unit tests fail when ran outside a virtualenv using the ubuntu oneiric python-mox 0.5.3-1ubuntu4 package, and pass after `pip install mox==0.5.3`

Failed test logs: http://paste.openstack.org/show/3956/

The only difference I can find between the ubuntu package, and the pip package is the backport of this commit into ubuntu's 0.5.3 package: http://code.google.com/p/pymox/source/diff?spec=svn63&r=63&format=side&path=/trunk/mox.py

The failing tests were introduced in: https://review.openstack.org/#q,I7584b527e408c08014f1b6a8abda343f1e2aa3b8,n,z

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Vish Ishaya (vishvananda)
Revision history for this message
Vish Ishaya (vishvananda) wrote :

so the actual issue is that there is a different version of mox 0.5.3 in various places:

https://bugs.launchpad.net/ubuntu/+source/python-mox/+bug/852095

I will create a workaround for this in nova so we can pass in any version.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

the difference is that inspect.isroutine returns true in the pypi version of 0.5.3, causing nova/utils.py:to_primitive to short circuit.

Changed in nova:
status: Confirmed → In Progress
importance: Low → Medium
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.