networking-bgpvpn-functional-full job is failing 100% on master and on freshly cut stable/ussuri branches with the following exception:
2020-04-28 22:56:15.630615 | controller | =========================
2020-04-28 22:56:15.630635 | controller | Failures during discovery
2020-04-28 22:56:15.630654 | controller | =========================
2020-04-28 22:56:15.630673 | controller | --- import errors ---
2020-04-28 22:56:15.630694 | controller | Failed to import test module: networking_bgpvpn.tests.functional.db.test_migrations
2020-04-28 22:56:15.630714 | controller | Traceback (most recent call last):
2020-04-28 22:56:15.630734 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
2020-04-28 22:56:15.630753 | controller | module = self._get_module_from_name(name)
2020-04-28 22:56:15.630773 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
2020-04-28 22:56:15.630792 | controller | __import__(name)
2020-04-28 22:56:15.630812 | controller | File "/home/zuul/src/opendev.org/openstack/networking-bgpvpn/networking_bgpvpn/tests/functional/db/test_migrations.py", line 17, in <module>
2020-04-28 22:56:15.630832 | controller | from neutron.tests.functional.db import test_migrations
2020-04-28 22:56:15.630852 | controller | File "/usr/local/lib/python3.6/dist-packages/neutron/tests/functional/db/test_migrations.py", line 25, in <module>
2020-04-28 22:56:15.630872 | controller | from oslotest import base as oslotest_base
2020-04-28 22:56:15.630892 | controller | ModuleNotFoundError: No module named 'oslotest'
2020-04-28 22:56:15.630911 | controller |
2020-04-28 22:56:15.630930 | controller | Failed to import test module: networking_bgpvpn.tests.functional.test_placeholder
2020-04-28 22:56:15.630949 | controller | Traceback (most recent call last):
2020-04-28 22:56:15.630968 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
2020-04-28 22:56:15.630987 | controller | module = self._get_module_from_name(name)
2020-04-28 22:56:15.631007 | controller | File "/usr/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
2020-04-28 22:56:15.631026 | controller | __import__(name)
2020-04-28 22:56:15.631045 | controller | File "/home/zuul/src/opendev.org/openstack/networking-bgpvpn/networking_bgpvpn/tests/functional/test_placeholder.py", line 1, in <module>
2020-04-28 22:56:15.631065 | controller | from neutron.tests import base
2020-04-28 22:56:15.631084 | controller | File "/usr/local/lib/python3.6/dist-packages/neutron/tests/base.py", line 29, in <module>
2020-04-28 22:56:15.631104 | controller | import mock
2020-04-28 22:56:15.631124 | controller | ModuleNotFoundError: No module named 'mock'
2020-04-28 22:56:15.631142 | controller |
2020-04-28 22:56:15.631161 | controller | ================================================================================
2020-04-28 22:56:15.631181 | controller | The above traceback was encountered during test discovery which imports all the found test modules in the specified test_path.
Reviewed: https:/ /review. opendev. org/724300 /git.openstack. org/cgit/ openstack/ networking- bgpvpn/ commit/ ?id=1fbfb94bc08 859ad2a5398b32b 4fe2e64c98724b
Committed: https:/
Submitter: Zuul
Branch: master
commit 1fbfb94bc08859a d2a5398b32b4fe2 e64c98724b
Author: Elod Illes <email address hidden>
Date: Wed Apr 29 14:07:52 2020 +0200
Fix dsvm-functional and cleanup tox.ini
Remove unnecessary things from tox.ini:
- install_command: it's better to use the built-in install command
- VIRTUAL_ENV: this is set anyways
- sitepackages: it's enough to use virtualenv's packages
Besides these seem to be unnecessary 'sitepackages' setting started to
break functional job with an error message that there are missing
packages, however those were installed. By removing sitepackages=True
setting the errors dissapear.
Closes-Bug: #1876028 caaa8cd623112f4 19ac57ea286
Change-Id: Ifc4904fa89eb7f