NoSuchOptError in lbaas agent test

Bug #1264260 reported by Yuanchao Sun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Yuanchao Sun

Bug Description

I'm trying to debug tests using testtools:(https://wiki.openstack.org/wiki/Testr)

1) stack@ubuntu:/opt/stack/neutron$ source .tox/py27/bin/activate

2) (py27)stack@ubuntu:/opt/stack/neutron$ python -m testtools.run neutron.tests.unit.services.loadbalancer.drivers.haproxy.test_agent.TestLbaasService
Tests running...
2013-12-26 15:06:33,804 ERROR [neutron.common.legacy] Skipping unknown group key: firewall_driver
======================================================================
ERROR: neutron.tests.unit.services.loadbalancer.drivers.haproxy.test_agent.TestLbaasService.test_start
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "neutron/tests/unit/services/loadbalancer/drivers/haproxy/test_agent.py", line 39, in test_start
    agent_service.start()
  File "neutron/services/loadbalancer/drivers/haproxy/agent.py", line 45, in start
    cfg.CONF.periodic_interval,
  File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1648, in __getattr__
    raise NoSuchOptError(name)
NoSuchOptError: no such option: periodic_interval

Ran 2 tests in 0.011s
FAILED (failures=1)

Tags: lbaas unittest
Yuanchao Sun (ycs)
Changed in neutron:
assignee: nobody → Yuanchao Sun (ycs)
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/64115

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → Low
tags: added: unittest
Yuanchao Sun (ycs)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/64115
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=14d1f65699a79f879dde8fb6da2e3b1be72a7266
Submitter: Jenkins
Branch: master

commit 14d1f65699a79f879dde8fb6da2e3b1be72a7266
Author: Yuanchao Sun <email address hidden>
Date: Thu Dec 26 15:20:23 2013 +0800

    Fix NoSuchOptError in lbaas agent test

    Option 'periodic_interval' doesn't exist when using testtools
    to test lbaas agent, fix this by adding a mock object.

    Change-Id: I5ef02d6fa154ea7a18ca77d02a2704b7e3990c3b
    Closes-Bug: #1264260

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