Bug 1328109 - openstack-neutron-7.0.1-15.el7ost.noarch is still using tempest_lib as dependency instead of tempest.lib
Summary: openstack-neutron-7.0.1-15.el7ost.noarch is still using tempest_lib as depend...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: zstream
: 8.0 (Liberty)
Assignee: anil venkata
QA Contact: GenadiC
URL:
Whiteboard:
Depends On:
Blocks: 1471652 1472075
TreeView+ depends on / blocked
 
Reported: 2016-04-18 13:22 UTC by Anshul Behl
Modified: 2017-09-12 17:19 UTC (History)
13 users (show)

Fixed In Version: openstack-neutron-7.2.0-20.el7ost
Doc Type: Bug Fix
Doc Text:
Prior to this update, clients could not run tempest tests because the tempest library was missing from the Red Hat OpenStack Platform packages. To address this issue, the tempest library has now been added.
Clone Of:
: 1471652 1472075 (view as bug list)
Environment:
Last Closed: 2017-09-12 17:19:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 3141 0 None None None 2017-07-19 10:12:29 UTC
Red Hat Product Errata RHBA-2017:2690 0 normal SHIPPED_LIVE openstack-neutron bug fix advisory 2017-09-12 21:19:00 UTC

Description Anshul Behl 2016-04-18 13:22:24 UTC
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

Comment 2 Anshul Behl 2016-04-18 15:09:23 UTC
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.

Comment 3 Luigi Toscano 2016-04-18 15:12:15 UTC
(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.

Comment 4 Suman Guha 2016-04-18 16:03:29 UTC
(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.

Comment 9 Anshul Behl 2016-04-25 11:16:33 UTC
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.

Comment 14 anil venkata 2016-05-04 12:57:21 UTC
@Anshul Behl

Can we close this bug?

Thanks
Anil

Comment 15 Anshul Behl 2016-05-13 12:49:45 UTC
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

Comment 16 Anshul Behl 2016-05-18 10:49:43 UTC
Hi Anil,

Have you got time to look at this issue?

Thanks,
Anshul Behl

Comment 18 anil venkata 2016-06-14 11:14:13 UTC
Proposed https://review.rdoproject.org/r/#/c/1382/ in rdo

Comment 19 Assaf Muller 2017-01-13 19:10:56 UTC
I see a fix was merged to RDO 9, 10. Any fix for OSP 8, considering RDO 8 (Liberty) is EOL?

Comment 20 anil venkata 2017-01-16 11:45:10 UTC
I will submit a fix directly on OSP8.

Comment 21 anil venkata 2017-07-19 09:46:18 UTC
Build openstack-neutron-7.2.0-14.el7ost ceated with the fix

Comment 24 GenadiC 2017-09-06 08:34:58 UTC
It's still tempest_lib in python-neutron-tests-7.2.0-20.el7ost.noarch.rpm as it should be

Comment 27 errata-xmlrpc 2017-09-12 17:19:28 UTC
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


Note You need to log in before you can comment on or make changes to this bug.