← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1925406] Re: [functional] run dsvm-functional locally will need ovn no matter the running cases are

 

I just tried this on a recent devstack with basically no changes to
local.conf (so OVN was used) and it worked fine. So I think some changes
over the past year have addressed this.

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

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

Title:
  [functional] run dsvm-functional locally will need ovn no matter the
  running cases are

Status in neutron:
  Fix Released

Bug description:
  Code: neutron master
  Env: a new deployment by devstack

  
  $ tox -e dsvm-functional neutron.tests.functional.agent.test_firewall.FirewallTestCase.test_rule_ordering_correct

  =========================
  Failures during discovery
  =========================
  --- import errors ---
  Failed to import test module: neutron.tests.functional.plugins.ml2.drivers.ovn.mech_driver.ovsdb.test_impl_idl
  Traceback (most recent call last):
    File "/usr/lib64/python3.6/unittest/loader.py", line 428, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib64/python3.6/unittest/loader.py", line 369, in _get_module_from_name
      __import__(name)
    File "/opt/stack/neutron/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/ovsdb/test_impl_idl.py", line 20, in <module>
      from ovsdbapp.tests.functional import base
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/tests/functional/base.py", line 23, in <module>
      class FunctionalTestCase(base.TestCase):
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/tests/functional/base.py", line 28, in FunctionalTestCase
      remove=not bool(os.getenv('KEEP_VENV')))
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 165, in __init__
      [self.SBSCHEMA, self.NBSCHEMA])
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 75, in _share_path
      ", ".join(paths + (str(override),)))
  Exception: Invalid directories: /usr/local/share/ovn, /usr/share/ovn, /usr/local/share/openvswitch, /usr/share/openvswitch, None

  Failed to import test module: neutron.tests.functional.plugins.ml2.drivers.ovn.mech_driver.test_mech_driver
  Traceback (most recent call last):
    File "/usr/lib64/python3.6/unittest/loader.py", line 428, in _find_test_path
      module = self._get_module_from_name(name)
    File "/usr/lib64/python3.6/unittest/loader.py", line 369, in _get_module_from_name
      __import__(name)
    File "/opt/stack/neutron/neutron/tests/functional/plugins/ml2/drivers/ovn/mech_driver/test_mech_driver.py", line 24, in <module>
      from ovsdbapp.tests.functional import base as ovs_base
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/tests/functional/base.py", line 23, in <module>
      class FunctionalTestCase(base.TestCase):
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/tests/functional/base.py", line 28, in FunctionalTestCase
      remove=not bool(os.getenv('KEEP_VENV')))
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 165, in __init__
      [self.SBSCHEMA, self.NBSCHEMA])
    File "/opt/stack/neutron/.tox/dsvm-functional/lib/python3.6/site-packages/ovsdbapp/venv.py", line 75, in _share_path
      ", ".join(paths + (str(override),)))
  Exception: Invalid directories: /usr/local/share/ovn, /usr/share/ovn, /usr/local/share/openvswitch, /usr/share/openvswitch, None

  ================================================================================
  The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
  ERROR: InvocationError for command /opt/stack/neutron/.tox/dsvm-functional/bin/stestr run neutron.tests.functional.agent.test_firewall.FirewallTestCase.test_rule_ordering_correct (exited with code 100)
  __________________________________________________________ summary __________________________________________________________
  ERROR:   dsvm-functional: commands failed

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



References