Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1995541

Summary: RHOSP16-2 Tempest Component line jobs are failing with ImportError: cannot import name 'manager'
Product: Red Hat OpenStack Reporter: Sandeep Yadav <sandyada>
Component: openstack-tempestAssignee: Chandan Kumar <chkumar>
Status: CLOSED ERRATA QA Contact: Martin Kopec <mkopec>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.2 (Train)CC: apevec, jschluet, lhh, slinaber, svyas, udesale
Target Milestone: z2Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tempest-26.1.0-2.20211013134917.271f820.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-23 22:11:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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