OpenStack Object Storage (Swift)

SAIO functional and probe tests not working unless some lines are commented from setup.cfg

Reported by Paulo Ricardo on 2012-03-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Undecided
Florian Hines

Bug Description

I am able to smoothly go through the SAIO installation guide. However, when I'm about to run the functional+probe tests (http://swift.openstack.org/development_saio.html#setting-up-scripts-for-running-swift - steps 13 and 14), I encounter the following error:

swift@swift-master:~$ cd ~/swift; ./.functests
Traceback (most recent call last):
  File "/usr/bin/nosetests", line 8, in <module>
    load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')()
  File "/usr/lib/pymodules/python2.6/nose/core.py", line 113, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  File "/usr/lib/python2.6/unittest.py", line 816, in __init__
    self.parseArgs(argv)
  File "/usr/lib/pymodules/python2.6/nose/core.py", line 130, in parseArgs
    self.config.configure(argv, doc=self.usage())
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 249, in configure
    options, args = self._parseArgs(argv, cfg_files)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 237, in _parseArgs
    return parser.parseArgsAndConfigFiles(argv[1:], cfg_files)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 132, in parseArgsAndConfigFiles
    self._applyConfigurationToValues(self._parser, config, values)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 118, in _applyConfigurationToValues
    name=name, filename=filename)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 234, in warn_sometimes
    raise ConfigError(msg)
nose.config.ConfigError: Error reading config file 'setup.cfg': no such option 'openstack-yellow'
Traceback (most recent call last):
  File "/usr/bin/nosetests", line 8, in <module>
    load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')()
  File "/usr/lib/pymodules/python2.6/nose/core.py", line 113, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  File "/usr/lib/python2.6/unittest.py", line 816, in __init__
    self.parseArgs(argv)
  File "/usr/lib/pymodules/python2.6/nose/core.py", line 130, in parseArgs
    self.config.configure(argv, doc=self.usage())
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 249, in configure
    options, args = self._parseArgs(argv, cfg_files)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 237, in _parseArgs
    return parser.parseArgsAndConfigFiles(argv[1:], cfg_files)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 132, in parseArgsAndConfigFiles
    self._applyConfigurationToValues(self._parser, config, values)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 118, in _applyConfigurationToValues
    name=name, filename=filename)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 234, in warn_sometimes
    raise ConfigError(msg)
nose.config.ConfigError: Error reading config file 'setup.cfg': no such option 'openstack-yellow'
swift@swift-master:~/swift$ cd ~/swift; ./.probetests
Traceback (most recent call last):
  File "/usr/bin/nosetests", line 8, in <module>
    load_entry_point('nose==0.11.1', 'console_scripts', 'nosetests')()
  File "/usr/lib/pymodules/python2.6/nose/core.py", line 113, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  File "/usr/lib/python2.6/unittest.py", line 816, in __init__
    self.parseArgs(argv)
  File "/usr/lib/pymodules/python2.6/nose/core.py", line 130, in parseArgs
    self.config.configure(argv, doc=self.usage())
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 249, in configure
    options, args = self._parseArgs(argv, cfg_files)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 237, in _parseArgs
    return parser.parseArgsAndConfigFiles(argv[1:], cfg_files)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 132, in parseArgsAndConfigFiles
    self._applyConfigurationToValues(self._parser, config, values)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 118, in _applyConfigurationToValues
    name=name, filename=filename)
  File "/usr/lib/pymodules/python2.6/nose/config.py", line 234, in warn_sometimes
    raise ConfigError(msg)
nose.config.ConfigError: Error reading config file 'setup.cfg': no such option 'openstack-yellow'

The tests run smoothly if I comment the following lines from ~/swift/setup.cfg:

[nosetests]
exe=1
verbosity=2
detailed-errors=1
#with-openstack=1
#openstack-red=0.05
#openstack-yellow=0.025
#openstack-show-elapsed=1
#openstack-color=1

Florian Hines (pandemicsyn) wrote :

This just changed in the last day. You'll need to:

pip install openstack.nose_plugin

It's documented in the SAIO docs here - http://swift.openstack.org/development_saio.html#installing-dependencies-and-the-core-code

Changed in swift:
status: New → Fix Released
Paulo Ricardo (pauloricardomg) wrote :

Thank you! It should be added the "python-pip" dependency in the apt-get install list then (it doesn't come by default on ubuntu):

apt-get install curl gcc git-core memcached python-configobj python-coverage python-dev python-nose python-setuptools python-simplejson python-xattr sqlite3 xfsprogs python-webob python-eventlet python-greenlet python-pastedeploy python-netifaces

Changed in swift:
assignee: nobody → Florian Hines (pandemicsyn)

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

Changed in swift:
status: Fix Released → In Progress

Reviewed: https://review.openstack.org/5159
Committed: http://github.com/openstack/swift/commit/9e713e107829d867cbc2bb37f8cc0d95aa7c4390
Submitter: Jenkins
Branch: master

commit 9e713e107829d867cbc2bb37f8cc0d95aa7c4390
Author: Florian Hines <email address hidden>
Date: Fri Mar 9 19:35:38 2012 +0000

    Add instructions for pip install via easy_install.

    Add a line item to easy_install pip since we now need to pip install
    openstack.nose_plugin. Fixes bug 951019

    Change-Id: Ibf4b8bb7feac2b8290db2f4c4665dacf8a881462

Changed in swift:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-03-20
Changed in swift:
milestone: none → 1.4.8
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers