Bug 1937355 - RHOSP17 Tempest Component line jobs are failing with ImportError: cannot import name 'manager'
Summary: RHOSP17 Tempest Component line jobs are failing with ImportError: cannot impo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-neutron-tests-tempest
Version: 17.0 (Wallaby)
Hardware: x86_64
OS: Linux
high
urgent
Target Milestone: ---
: ---
Assignee: Slawek Kaplonski
QA Contact: Eran Kuris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-10 13:11 UTC by Sandeep Yadav
Modified: 2022-08-23 16:24 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-28 06:31:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 767715 0 None MERGED Use tempest's ServiceClients rather than Manager 2021-03-10 13:24:19 UTC
Red Hat Issue Tracker OSP-3352 0 None None None 2022-08-23 16:24:08 UTC

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.


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