← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1099162] Re: nec-agent dies with no such option: DATABASE

 

** 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/1099162

Title:
  nec-agent dies with no such option: DATABASE

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

Bug description:
  In commit be3b5dcd6ddaae809ef1b1e18bf47703deaf74a8, database configuration was moved to common module.
  quantum/plugins/nec/common/config.py still has "DATABASE = cfg.CONF.DATABASE" and 
  this module is loaded from nec plugin agent, but in the agent cfg.CONF.DATABASE is not loaded.
  This results in the following error.

  It can be fixed by just removing "DATABASE = cfg.CONF.DATABASE" since there is no database access on the agent side
  and on the server side the common logic now handles the database access.

  Traceback (most recent call last):
    File "/opt/stack/quantum/bin/quantum-nec-agent", line 22, in <module>
      from quantum.plugins.nec.agent.nec_quantum_agent import main
    File "/opt/stack/quantum/quantum/plugins/nec/agent/nec_quantum_agent.py", line 34, in <module>
      from quantum.plugins.nec.common import config
    File "/opt/stack/quantum/quantum/plugins/nec/common/config.py", line 49, in <module>
      DATABASE = cfg.CONF.DATABASE
    File "/opt/stack/quantum/quantum/openstack/common/cfg.py", line 1150, in __getattr__
      return self._get(name)
    File "/opt/stack/quantum/quantum/openstack/common/cfg.py", line 1454, in _get
      value = self._substitute(self._do_get(name, group))
    File "/opt/stack/quantum/quantum/openstack/common/cfg.py", line 1470, in _do_get
      info = self._get_opt_info(name, group)
    File "/opt/stack/quantum/quantum/openstack/common/cfg.py", line 1570, in _get_opt_info
      raise NoSuchOptError(opt_name, group)
  quantum.openstack.common.cfg.NoSuchOptError: no such option: DATABASE

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