Bug 1995541 - RHOSP16-2 Tempest Component line jobs are failing with ImportError: cannot import name 'manager'
Summary: RHOSP16-2 Tempest Component line jobs are failing with ImportError: cannot im...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tempest
Version: 16.2 (Train)
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Chandan Kumar
QA Contact: Martin Kopec
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-19 11:19 UTC by Sandeep Yadav
Modified: 2022-03-23 22:11 UTC (History)
6 users (show)

Fixed In Version: openstack-tempest-26.1.0-2.20211013134917.271f820.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-23 22:11:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 33467 0 None None None 2021-08-20 05:46:09 UTC
Red Hat Issue Tracker OSP-7217 0 None None None 2021-11-15 12:58:52 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:11:30 UTC

Description Sandeep Yadav 2021-08-19 11:19:58 UTC
Description of problem:

RHOSP16-2 Tempest Component line jobs are failing with ImportError: cannot import name 'manager'

We have faced a similiar bug for rhos17 few months back: https://bugzilla.redhat.com/show_bug.cgi?id=1937355

Log snippet:-

~~~
2021-08-18 16:07:58.012919 | primary | Failed to import test module: neutron_tempest_plugin.vpnaas.scenario.test_vpnaas
2021-08-18 16:07:58.012923 | primary | Traceback (most recent call last):
2021-08-18 16:07:58.012926 | primary |   File "/usr/lib/python3.6/site-packages/unittest2/loader.py", line 456, in _find_test_path
2021-08-18 16:07:58.012930 | primary |     module = self._get_module_from_name(name)
2021-08-18 16:07:58.012934 | primary |   File "/usr/lib/python3.6/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
2021-08-18 16:07:58.012937 | primary |     __import__(name)
2021-08-18 16:07:58.012941 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/vpnaas/scenario/test_vpnaas.py", line 28, in <module>
2021-08-18 16:07:58.012945 | primary |     from neutron_tempest_plugin.vpnaas.scenario import base_vpnaas as base
2021-08-18 16:07:58.012949 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/vpnaas/scenario/base_vpnaas.py", line 16, in <module>
2021-08-18 16:07:58.012953 | primary |     from neutron_tempest_plugin.scenario import base
2021-08-18 16:07:58.012957 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/scenario/base.py", line 31, in <module>
2021-08-18 16:07:58.012960 | primary |     from neutron_tempest_plugin.api import base as base_api
2021-08-18 16:07:58.012964 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/base.py", line 28, in <module>
2021-08-18 16:07:58.012968 | primary |     from neutron_tempest_plugin.api import clients
2021-08-18 16:07:58.012971 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/clients.py", line 23, in <module>
2021-08-18 16:07:58.012975 | primary |     from tempest import manager
2021-08-18 16:07:58.012983 | primary | ImportError: cannot import name 'manager'
~~~



Version-Release number of selected component (if applicable):

16.2


How reproducible:

Everytime in Downstream tempest component Ci


Actual results:

Job failing during tempest test run with "ImportError: cannot import name 'manager'"

Expected results:

Job should not fail with "ImportError: cannot import name 'manager'"


Additional info:

Comment 2 svyas 2021-08-19 12:06:39 UTC
The failure may be caused because manager has been deprecated long ago and tempest.scenario.manager is expected to be used.
Here is the patch which removes the manager[1].

[1] https://github.com/openstack/neutron-tempest-plugin/commit/dd96e9a6aeffd2181ad70248aab0dc02403fe2c4

Comment 9 Martin Kopec 2022-02-01 10:30:52 UTC
Fixed in version package openstack-tempest-26.1.0-2.20211013134917.271f820.el8ost contains the fix - removal of the tempest.manager is reverted to give some time to neutron-tempest-plugin to adapt to the change - and the package is part of RHOS-16.2-RHEL-8-20220125.n.2 puddle -> VERIFIED

Comment 15 errata-xmlrpc 2022-03-23 22:11:12 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 (Release of components for Red Hat OpenStack Platform 16.2.2), 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-2022:1001


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