← Back to team overview

openstack-qa-team team mailing list archive

Issues running tempest on Ubuntu 11.10

 

Hi,

It looks like the following checking, broke things for me with DevStack + Tempest on Ubuntu 11.10:
https://github.com/openstack/tempest/commit/051075a59642e0d2f98a4ab792a52523e3478159

I currently get the following errors:
======================================================================
ERROR: Failure: AttributeError ('dictproxy' object has no attribute 'update')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/nose/loader.py", line 390, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/opt/stack/tempest/tempest/tests/compute/test_images_whitebox.py", line 27, in <module>
    class ImagesWhiteboxTest(whitebox.ComputeWhiteboxTest, base.BaseComputeTest):
  File "/usr/lib/pymodules/python2.7/nose/plugins/attrib.py", line 108, in wrap
    func.__dict__.update(kwargs)
AttributeError: 'dictproxy' object has no attribute 'update'

======================================================================
ERROR: Failure: AttributeError ('dictproxy' object has no attribute 'update')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/nose/loader.py", line 390, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/pymodules/python2.7/nose/importer.py", line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/opt/stack/tempest/tempest/tests/compute/test_servers_whitebox.py", line 25, in <module>
    class ServersWhiteboxTest(whitebox.ComputeWhiteboxTest):
  File "/usr/lib/pymodules/python2.7/nose/plugins/attrib.py", line 108, in wrap
    func.__dict__.update(kwargs)
AttributeError: 'dictproxy' object has no attribute 'update'

----------------------------------------------------------------------

It seems that my Ubuntu 12.04 tests are still working file.

A bit of digging shows @attr on a class was added in nose 1.1.0:
http://nose.readthedocs.org/en/latest/news.html

11.10 has 1.0, 12.04 has nose 1.1.2, looks like devstack installs python-nose when installing swift and horizon.

I guess moving from the packages to a pip install would do the trick, but not sure the best way to do that.
Any ideas on the best way to fix this?

Cheers,
John