Description of problem: ======================================= While running python-neutron-tests on the latest puddle of Openstack(2016-04-11.1), I came across an issue where neutron-tempest tests are not running and failing with the below exception Traceback (most recent call last): ImportError: Failed to import test module: neutron.tests.api.test_subnetpools 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 "/tmp/logs/neutron/neutron/tests/api/test_subnetpools.py", line 18, in <module> from tempest_lib.common.utils import data_utils ImportError: No module named tempest_lib.common.utils Instead of looking under tempest.lib it is looking under tempest_lib for which the rpm is not shipped and hence the tests are failing. This needs an urgent fix as tempest-liberty already has the required changes(tempest.lib instead of tempest_lib) Version-Release number of selected component (if applicable): openstack-neutron-7.0.1-15.el7ost.noarch How reproducible: Everytime Steps to Reproduce: 1. Run the python-neutron-tests after configuring the required details 2. Check if above exception is encountered Actual results: Exceptions of tempest_lib dependency Expected results: No Exceptions
Since, we are using tempest and python-neutron-tests as a part of our test suite in certification this issue impacts our partners and disable them to run the certification stack properly.
(In reply to Anshul Behl from comment #0) > Description of problem: > ======================================= > While running python-neutron-tests on the latest puddle of > Openstack(2016-04-11.1), I came across an issue where neutron-tempest tests > are not running and failing with the below exception > > Traceback (most recent call last): > ImportError: Failed to import test module: > neutron.tests.api.test_subnetpools > 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 "/tmp/logs/neutron/neutron/tests/api/test_subnetpools.py", line > 18, in <module> > from tempest_lib.common.utils import data_utils > ImportError: No module named tempest_lib.common.utils > > Instead of looking under tempest.lib it is looking under tempest_lib for > which the rpm is not shipped and hence the tests are failing. > > This needs an urgent fix as tempest-liberty already has the required > changes(tempest.lib instead of tempest_lib) This could be also a simpler "dependency missing" issue (python-neutron-tests should depend on python-tempest-lib) Technically the interface provided by tempest.lib (which was integrated back into tempest sources) should be the same as the old tempest_lib, so the change could be feasible. This is up to neutron maintainers/packagers.
(In reply to Luigi Toscano from comment #3) > (In reply to Anshul Behl from comment #0) > > Description of problem: > > ======================================= > > While running python-neutron-tests on the latest puddle of > > Openstack(2016-04-11.1), I came across an issue where neutron-tempest tests > > are not running and failing with the below exception > > > > Traceback (most recent call last): > > ImportError: Failed to import test module: > > neutron.tests.api.test_subnetpools > > 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 "/tmp/logs/neutron/neutron/tests/api/test_subnetpools.py", line > > 18, in <module> > > from tempest_lib.common.utils import data_utils > > ImportError: No module named tempest_lib.common.utils > > > > Instead of looking under tempest.lib it is looking under tempest_lib for > > which the rpm is not shipped and hence the tests are failing. > > > > This needs an urgent fix as tempest-liberty already has the required > > changes(tempest.lib instead of tempest_lib) > > This could be also a simpler "dependency missing" issue > (python-neutron-tests should depend on python-tempest-lib) > > Technically the interface provided by tempest.lib (which was integrated back > into tempest sources) should be the same as the old tempest_lib, so the > change could be feasible. This is up to neutron maintainers/packagers. Folks, Just to highlight on the impact. Our certification process relies on tempest for collecting API tests data. All neutron partners who are part of certification will be impacted and currently they have to do use workaround to use tempest and proceed with certification. So I would think this bug will be critical to address in product.
Hi Anil, We have certification coming in for RHOSP7 and RHOSP8 (kilo and liberty), after checking the version shipped are as below: kilo - python-tempest-lib-0.5.0-1.el7ost.noarch liberty - python-tempest-lib-0.13.0-3.el7ost.noarch This seems to be good as per your last comment. Let me know if there is anything else you want to confirm.
@Anshul Behl Can we close this bug? Thanks Anil
Hi Anil, Even though I do see the code changes in place for python-neutron-tests-8.0.0-1.el7ost.noarch, I am still unable to find python-tempest-lib as a dependency of any package. #rpm -q --whatrequires python-tempest-lib no package requires python-tempest-lib Someone who wants to run tests will have to manually install the rpm, please correct me if I am missing some context if not this will be required in the fix. Thanks, Anshul Behl
Hi Anil, Have you got time to look at this issue? Thanks, Anshul Behl
Proposed https://review.rdoproject.org/r/#/c/1382/ in rdo
I see a fix was merged to RDO 9, 10. Any fix for OSP 8, considering RDO 8 (Liberty) is EOL?
I will submit a fix directly on OSP8.
Build openstack-neutron-7.2.0-14.el7ost ceated with the fix
It's still tempest_lib in python-neutron-tests-7.2.0-20.el7ost.noarch.rpm as it should be
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/RHBA-2017:2690