Bug 1937355

Summary: RHOSP17 Tempest Component line jobs are failing with ImportError: cannot import name 'manager'
Product: Red Hat OpenStack Reporter: Sandeep Yadav <sandyada>
Component: python-neutron-tests-tempestAssignee: Slawek Kaplonski <skaplons>
Status: CLOSED CURRENTRELEASE QA Contact: Eran Kuris <ekuris>
Severity: urgent Docs Contact:
Priority: high    
Version: 17.0 (Wallaby)CC: apevec, lhh, slinaber, sshnaidm, udesale, whayutin
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-28 06:31:48 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-03-10 13:11:47 UTC
Description:

RHOSP17 Tempest Component line jobs are failing with ImportError: cannot import name 'manager'

Log snippet:

~~~
2021-03-09 16:02:47.516170 | primary | =========================
2021-03-09 16:02:47.516174 | primary | Failures during discovery
2021-03-09 16:02:47.516179 | primary | =========================
2021-03-09 16:02:47.516183 | primary | --- import errors ---
2021-03-09 16:02:47.516188 | primary | Failed to import test module: neutron_tempest_plugin.api.admin.test_agent_availability_zone
2021-03-09 16:02:47.516193 | primary | Traceback (most recent call last):
2021-03-09 16:02:47.516198 | primary |   File "/usr/lib64/python3.6/unittest/loader.py", line 428, in _find_test_path
2021-03-09 16:02:47.516203 | primary |     module = self._get_module_from_name(name)
2021-03-09 16:02:47.516208 | primary |   File "/usr/lib64/python3.6/unittest/loader.py", line 369, in _get_module_from_name
2021-03-09 16:02:47.516213 | primary |     __import__(name)
2021-03-09 16:02:47.516218 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/admin/test_agent_availability_zone.py", line 16, in <module>
2021-03-09 16:02:47.516222 | primary |     from neutron_tempest_plugin.api import base
2021-03-09 16:02:47.516227 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/base.py", line 28, in <module>
2021-03-09 16:02:47.516231 | primary |     from neutron_tempest_plugin.api import clients
2021-03-09 16:02:47.516236 | primary |   File "/usr/lib/python3.6/site-packages/neutron_tempest_plugin/api/clients.py", line 23, in <module>
2021-03-09 16:02:47.516240 | primary |     from tempest import manager
2021-03-09 16:02:47.516245 | primary | ImportError: cannot import name 'manager'
~~~

Comment 2 Martin Kopec 2021-03-10 13:23:51 UTC
in order to use neutron_tempest_plugin with the new tempest (master or 26.1.0) it needs to be updated so that it contains this change:
https://opendev.org/openstack/neutron-tempest-plugin/commit/dd96e9a6aeffd2181ad70248aab0dc02403fe2c4

Comment 5 wes hayutin 2021-03-11 02:27:34 UTC
sorry.. I need to confirm this once it drops into the network component.

Comment 6 Slawek Kaplonski 2021-06-28 06:31:48 UTC
I see that this job is now running fine https://sf.hosted.upshift.rdu2.redhat.com/logs/openstack-component-tempest/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-rhel-8-standalone-tempest-rhos-17/55cc3d4/logs/undercloud/var/log/tempest/tempest_run.log so I'm closing this BZ for now. Feel free to reopen it if there is still some issue which I missed somehow.