Public bug reported:

recent changes (probably the one in policy module) made ofagent UT fail.

note: the failure depends on execution order of tests.

eg. "tox -e py27 neutron.tests.unit.ofagent.test_ofa_neutron_agent"

Traceback (most recent call last):
  File "neutron/tests/unit/ofagent/test_ofa_neutron_agent.py", line 217, in 
setUp
    self.agent = self.mod_agent.OFANeutronAgent(self.ryuapp, **kwargs)  File 
"neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 249, in __init__
    self.setup_rpc()
  File "neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 301, in setup_
rpc
    self.context = context.get_admin_context_without_session()
  File "neutron/context.py", line 177, in get_admin_context_without_session
    read_deleted=read_deleted)
  File "neutron/context.py", line 68, in __init__
    self.is_advsvc = policy.check_is_advsvc(self)
  File "neutron/policy.py", line 434, in check_is_advsvc
    init()
  File "neutron/policy.py", line 79, in init
    _ENFORCER.load_rules(True)
  File "neutron/openstack/common/policy.py", line 246, in load_rules
    path = self._get_policy_path(path)
  File "neutron/openstack/common/policy.py", line 282, in _get_policy_path
    policy_path = CONF.find_file(path)
  File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1958, in find_file
    if self.config_dir:
  File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1697, in __getattr__
    raise NoSuchOptError(name)
NoSuchOptError: no such option: config_dir

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: openflowagent

** Description changed:

  recent changes (probably the one in policy module) made ofagent UT fail.
+ 
+ note: the failure depends on execution order of tests.
  
  eg. "tox -e py27 neutron.tests.unit.ofagent.test_ofa_neutron_agent"
  
  Traceback (most recent call last):
-   File "neutron/tests/unit/ofagent/test_ofa_neutron_agent.py", line 217, in 
setUp   
-     self.agent = self.mod_agent.OFANeutronAgent(self.ryuapp, **kwargs)  File 
"neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 249, in __init__
-     self.setup_rpc()
-   File "neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 301, in 
setup_
+   File "neutron/tests/unit/ofagent/test_ofa_neutron_agent.py", line 217, in 
setUp
+     self.agent = self.mod_agent.OFANeutronAgent(self.ryuapp, **kwargs)  File 
"neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 249, in __init__
+     self.setup_rpc()
+   File "neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 301, in 
setup_
  rpc
-     self.context = context.get_admin_context_without_session()
-   File "neutron/context.py", line 177, in get_admin_context_without_session
-     read_deleted=read_deleted)
-   File "neutron/context.py", line 68, in __init__
-     self.is_advsvc = policy.check_is_advsvc(self)
-   File "neutron/policy.py", line 434, in check_is_advsvc
-     init()
-   File "neutron/policy.py", line 79, in init
-     _ENFORCER.load_rules(True)
-   File "neutron/openstack/common/policy.py", line 246, in load_rules
-     path = self._get_policy_path(path)
-   File "neutron/openstack/common/policy.py", line 282, in _get_policy_path
-     policy_path = CONF.find_file(path)
-   File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1958, in find_file
-     if self.config_dir:
-   File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1697, in __getattr__
-     raise NoSuchOptError(name)
+     self.context = context.get_admin_context_without_session()
+   File "neutron/context.py", line 177, in get_admin_context_without_session
+     read_deleted=read_deleted)
+   File "neutron/context.py", line 68, in __init__
+     self.is_advsvc = policy.check_is_advsvc(self)
+   File "neutron/policy.py", line 434, in check_is_advsvc
+     init()
+   File "neutron/policy.py", line 79, in init
+     _ENFORCER.load_rules(True)
+   File "neutron/openstack/common/policy.py", line 246, in load_rules
+     path = self._get_policy_path(path)
+   File "neutron/openstack/common/policy.py", line 282, in _get_policy_path
+     policy_path = CONF.find_file(path)
+   File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1958, in find_file
+     if self.config_dir:
+   File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1697, in __getattr__
+     raise NoSuchOptError(name)
  NoSuchOptError: no such option: config_dir

** Tags added: openflowagent

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

Title:
  ofagent UT failure

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  recent changes (probably the one in policy module) made ofagent UT
  fail.

  note: the failure depends on execution order of tests.

  eg. "tox -e py27 neutron.tests.unit.ofagent.test_ofa_neutron_agent"

  Traceback (most recent call last):
    File "neutron/tests/unit/ofagent/test_ofa_neutron_agent.py", line 217, in 
setUp
      self.agent = self.mod_agent.OFANeutronAgent(self.ryuapp, **kwargs)  File 
"neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 249, in __init__
      self.setup_rpc()
    File "neutron/plugins/ofagent/agent/ofa_neutron_agent.py", line 301, in 
setup_
  rpc
      self.context = context.get_admin_context_without_session()
    File "neutron/context.py", line 177, in get_admin_context_without_session
      read_deleted=read_deleted)
    File "neutron/context.py", line 68, in __init__
      self.is_advsvc = policy.check_is_advsvc(self)
    File "neutron/policy.py", line 434, in check_is_advsvc
      init()
    File "neutron/policy.py", line 79, in init
      _ENFORCER.load_rules(True)
    File "neutron/openstack/common/policy.py", line 246, in load_rules
      path = self._get_policy_path(path)
    File "neutron/openstack/common/policy.py", line 282, in _get_policy_path
      policy_path = CONF.find_file(path)
    File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1958, in find_file
      if self.config_dir:
    File 
"/disks/774373a2-e180-11e3-9fa1-08606e7f74e7/git/neutron/.tox/py27/lib/python2.7/site-packages/oslo/config/cfg.py",
 line 1697, in __getattr__
      raise NoSuchOptError(name)
  NoSuchOptError: no such option: config_dir

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to