Description of problem: Unable to run neutron OSP 11 unit tests. The problem seems to be the missing tests directory in oslo_db. The failure is: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name __import__(name) File "neutron/tests/unit/db/test_sqlalchemytypes.py", line 17, in <module> from oslo_db.tests.sqlalchemy import base as test_base ImportError: No module named tests.sqlalchemy The test run didn't actually run any tests Note: this is probably a packaging issue and not an issue with neutron. python-oslo-db should include the tests so we can run neutorn unit tests. How reproducible: 100% Steps to Reproduce: 1. Install python-oslo-db from puddle 2. Run neutron unit tests Actual results: Fail to execute unit tests. Expected results: All the unit tests passed successfully
The fix is to add oslo-db-tests as a dependency of the Neutron tests subpackage in RDO master, backport it to RDO stable/ocata and that will be imported in to OSP 11 by release delivery.
Thanks, it works. Submitted patch to RDO: https://review.rdoproject.org/r/#/c/5877
Arie added the package in component CI to unblock. For developers that install the tests RPM and want to run the unit tests, Arie will pursue the RDO patch.
Fixed merged to RDO Ocata branch, will be available in OSP 11 in next import.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1245