Lbaas tests can't be run alone by tox

Bug #1221726 reported by Eugene Nikanorov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Eugene Nikanorov

Bug Description

When running 'tox -epy27 services.loadbalancer' the following failures are encountered:

Traceback (most recent call last):
  File "/home/eugene/quantum/neutron/tests/unit/services/loadbalancer/drivers/haproxy/test_agent.py", line 32, in setUp
    cfg.CONF.register_opts(agent.OPTS)
  File "/home/eugene/quantum/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1540, in __inner
    result = f(self, *args, **kwargs)
  File "/home/eugene/quantum/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1673, in register_opts
    self.register_opt(opt, group, clear_cache=False)
  File "/home/eugene/quantum/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1544, in __inner
    return f(self, *args, **kwargs)
  File "/home/eugene/quantum/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1662, in register_opt
    if _is_opt_registered(self._opts, opt):
  File "/home/eugene/quantum/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 486, in _is_opt_registered
    raise DuplicateOptError(opt.name)
DuplicateOptError: duplicate option: periodic_interval

Tags: lbaas unittest
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/46615
Committed: http://github.com/openstack/neutron/commit/0ff9373de6e11d7040b6b289cb3239a9ee9a924d
Submitter: Jenkins
Branch: master

commit 0ff9373de6e11d7040b6b289cb3239a9ee9a924d
Author: Eugene Nikanorov <email address hidden>
Date: Sat Sep 14 14:26:53 2013 +0400

    Fix haproxy agent unit test to be runnable alone by tox

    haproxy agent uses periodic_interval option that can interfere
    with the same option declared in neutron/service.py when running
    'tox services.loadbalancer'

    Change-Id: Ibcc91d603f5f31c7a376e0c735e8bf566198231d
    Closes-Bug: #1221726

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