← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1117240] Re: Some unit tests fail with message "no such option: AGENT"

 

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

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

Title:
  Some unit tests fail with message "no such option: AGENT"

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

Bug description:
  Some tests from test_debug_commands and test_dhcp_agent fail

  test_destroy (quantum.tests.unit.test_dhcp_agent.TestDeviceManager) ... ERROR
  test_get_device_id (quantum.tests.unit.test_dhcp_agent.TestDeviceManager) ... ERROR
  test_get_interface_name (quantum.tests.unit.test_dhcp_agent.TestDeviceManager) ... ERROR
  test_get_interface_name_no_port_provided (quantum.tests.unit.test_dhcp_agent.TestDeviceManager) ... ERROR
  test_setup (quantum.tests.unit.test_dhcp_agent.TestDeviceManager) ... ERROR
  test_setup_device_exists (quantum.tests.unit.test_dhcp_agent.TestDeviceManager) ... ERROR
  test_setup_device_exists_reuse (quantum.tests.unit.test_dhcp_agent.TestDeviceManager) ... ERROR
  test_call_driver (quantum.tests.unit.test_dhcp_agent.TestDhcpAgent) ... ERROR
  test_call_driver_failure (quantum.tests.unit.test_dhcp_agent.TestDhcpAgent) ... ERROR
  test_clear_probe (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_create_probe (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_create_probe_external (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_delete_probe (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_delete_probe_external (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_delete_probe_without_namespace (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_exec_command (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_exec_command_without_namespace (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_list_probe (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_ping_all (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_ping_all_v6 (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR
  test_ping_all_with_ensure_port (quantum.tests.unit.test_debug_commands.TestDebugCommands) ... ERROR

   with trace like:

  ======================================================================
  ERROR: test_call_driver_failure (quantum.tests.unit.test_dhcp_agent.TestDhcpAgent)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/home/jenkins/ababilov/quantum/quantum/tests/unit/test_dhcp_agent.py", line 152, in test_call_driver_failure
      dhcp = dhcp_agent.DhcpAgent(cfg.CONF)
    File "/home/jenkins/ababilov/quantum/quantum/agent/dhcp_agent.py", line 59, in __init__
      self.root_helper = config.get_root_helper(conf)
    File "/home/jenkins/ababilov/quantum/quantum/agent/common/config.py", line 40, in get_root_helper
      root_helper = conf.AGENT.root_helper
    File "/home/jenkins/ababilov/quantum/quantum/openstack/common/cfg.py", line 1152, in __getattr__
      return self._get(name)
    File "/home/jenkins/ababilov/quantum/quantum/openstack/common/cfg.py", line 1456, in _get
      value = self._substitute(self._do_get(name, group))
    File "/home/jenkins/ababilov/quantum/quantum/openstack/common/cfg.py", line 1472, in _do_get
      info = self._get_opt_info(name, group)
    File "/home/jenkins/ababilov/quantum/quantum/openstack/common/cfg.py", line 1572, in _get_opt_info
      raise NoSuchOptError(opt_name, group)
  NoSuchOptError: no such option: AGENT

  config.get_root_helper function fails because
  config.register_root_helper was not called.

  Previously, root helper was initialized with statement

  cfg.CONF.root_helper = 'sudo'

  After
  https://github.com/openstack/quantum/commit/1b7565b83ca8ef9761cdfb1eed1e9eb9498ea340,
  config.register_root_helper function must be called instead.

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