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

Bug #1925406 reported by LIU Yulong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Unassigned

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

Changed in neutron:
importance: Undecided → Medium
Revision history for this message
Brian Haley (brian-haley) wrote :

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.