← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1416522] Re: Fix neutron-fwaas unit test failure due to mutiple issues.

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

** Changed in: neutron
    Milestone: None => kilo-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1416522

Title:
  Fix neutron-fwaas unit test failure due to mutiple issues.

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  Due to recent updates to neutron/agents/l3/router_info.py, neutron-
  fwaas unit tests are failing with the following error.

  ft1.59: neutron_fwaas.tests.unit.services.firewall.agents.l3reference.test_firewall_l3_agent.TestFwaasL3AgentRpcCallback.test_get_router_info_list_for_tenant_for_namespaces_disabled_StringException: Traceback (most recent call last):
  _StringException: Empty attachments:
    pythonlogging:''
    pythonlogging:'neutron.api.extensions'
    stderr
    stdout

  Traceback (most recent call last):
    File "neutron_fwaas/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py", line 371, in test_get_router_info_list_for_tenant_for_namespaces_disabled
      self._get_router_info_list_helper(use_namespaces=False)
    File "neutron_fwaas/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py", line 355, in _get_router_info_list_helper
      ri = self._prepare_router_data()
    File "neutron_fwaas/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py", line 351, in _prepare_router_data
      router=router, ns_name=ns)
  TypeError: __init__() got multiple values for keyword argument 'router'

  Traceback (most recent call last):
  _StringException: Empty attachments:
    pythonlogging:''
    pythonlogging:'neutron.api.extensions'
    stderr
    stdout

  Traceback (most recent call last):
    File "neutron_fwaas/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py", line 371, in test_get_router_info_list_for_tenant_for_namespaces_disabled
      self._get_router_info_list_helper(use_namespaces=False)
    File "neutron_fwaas/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py", line 355, in _get_router_info_list_helper
      ri = self._prepare_router_data()
    File "neutron_fwaas/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py", line 351, in _prepare_router_data
      router=router, ns_name=ns)
  TypeError: __init__() got multiple values for keyword argument 'router'

  
  Also, there are issues with test_varmour_router.py and test_varmour_fwaas.py related to AGENT CONFIG options.

  ft1.56: neutron_fwaas.tests.unit.services.firewall.drivers.varmour.test_varmour_fwaas.TestBasicRouterOperations.test_firewall_with_rules_StringException: Traceback (most recent call last):
  _StringException: Empty attachments:
    pythonlogging:''
    pythonlogging:'neutron.api.extensions'
    stderr
    stdout

  Traceback (most recent call last):
    File "neutron_fwaas/tests/unit/services/firewall/drivers/varmour/test_varmour_fwaas.py", line 209, in test_firewall_with_rules
      router = self._create_router()
    File "neutron_fwaas/tests/unit/services/firewall/drivers/varmour/test_varmour_fwaas.py", line 88, in _create_router
      router = varmour_router.vArmourL3NATAgent(HOSTNAME, self.conf)
    File "neutron_fwaas/services/firewall/agents/varmour/varmour_router.py", line 54, in __init__
      super(vArmourL3NATAgent, self).__init__(host, conf)
    File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/src/neutron/neutron/agent/l3/agent.py", line 155, in __init__
      resource_type='router')
    File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/src/neutron/neutron/agent/linux/external_process.py", line 150, in __init__
      if self._config.AGENT.check_child_processes_interval:
    File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2384, in __getattr__
      return self._conf._get(name, self._group)
    File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2116, in _get
      value = self._do_get(name, group, namespace)
    File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2134, in _do_get
      info = self._get_opt_info(name, group)
    File "/home/jenkins/workspace/gate-neutron-fwaas-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2262, in _get_opt_info
      raise NoSuchOptError(opt_name, group)
  NoSuchOptError: no such option in group AGENT: check_child_processes_interval

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1416522/+subscriptions


References