← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1287792] [NEW] test_ml2_plugin can't be run independently

 

Public bug reported:

Attempting to run the tests in neutron.tests.unit.ml2.test_ml2_plugin in
isolation will fail when setUp for the main class attempts to override
the 'ml2_type_vlan.network_vlan_ranges' option and finds that the group
does not exist:

======================================================================
ERROR: neutron.tests.unit.ml2.test_ml2_plugin.TestMl2BulkToggle.test_bulk_enabled_with_bulk_drivers
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/vagrant/dev/src/neutron/neutron/tests/unit/ml2/test_ml2_plugin.py", line 57, in setUp
    group='ml2_type_vlan')
  File "/opt/stack/oslo.config/oslo/config/cfg.py", line 1547, in __inner
    result = f(self, *args, **kwargs)
  File "/opt/stack/oslo.config/oslo/config/cfg.py", line 1797, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/opt/stack/oslo.config/oslo/config/cfg.py", line 2102, in _get_opt_info
    group = self._get_group(group)
  File "/opt/stack/oslo.config/oslo/config/cfg.py", line 2086, in _get_group
    raise NoSuchGroupError(group_name)
NoSuchGroupError: no such group: ml2_type_vlan

Manually importing the type_vlan module where the config option is
defined will result in an entirely different error, presumably because
the ml2 drivers are intended to be loaded via stevador.

It should be possible to run any given neutron test in isolation without
error, so a fix is needed.

** Affects: neutron
     Importance: Undecided
     Assignee: Maru Newby (maru)
         Status: New


** Tags: ml2

** Tags added: ml2

** Changed in: neutron
     Assignee: (unassigned) => Maru Newby (maru)

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

Title:
  test_ml2_plugin can't be run independently

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Attempting to run the tests in neutron.tests.unit.ml2.test_ml2_plugin
  in isolation will fail when setUp for the main class attempts to
  override the 'ml2_type_vlan.network_vlan_ranges' option and finds that
  the group does not exist:

  ======================================================================
  ERROR: neutron.tests.unit.ml2.test_ml2_plugin.TestMl2BulkToggle.test_bulk_enabled_with_bulk_drivers
  ----------------------------------------------------------------------
  _StringException: Traceback (most recent call last):
    File "/home/vagrant/dev/src/neutron/neutron/tests/unit/ml2/test_ml2_plugin.py", line 57, in setUp
      group='ml2_type_vlan')
    File "/opt/stack/oslo.config/oslo/config/cfg.py", line 1547, in __inner
      result = f(self, *args, **kwargs)
    File "/opt/stack/oslo.config/oslo/config/cfg.py", line 1797, in set_override
      opt_info = self._get_opt_info(name, group)
    File "/opt/stack/oslo.config/oslo/config/cfg.py", line 2102, in _get_opt_info
      group = self._get_group(group)
    File "/opt/stack/oslo.config/oslo/config/cfg.py", line 2086, in _get_group
      raise NoSuchGroupError(group_name)
  NoSuchGroupError: no such group: ml2_type_vlan

  Manually importing the type_vlan module where the config option is
  defined will result in an entirely different error, presumably because
  the ml2 drivers are intended to be loaded via stevador.

  It should be possible to run any given neutron test in isolation
  without error, so a fix is needed.

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


Follow ups

References