Description of problem: It seems a backport of an upstream patch (https://review.opendev.org/c/openstack/manila-tempest-plugin/+/840282) broke the usage of manila-tempest-tests. When running discovery (during tempest run) the following error is printed: 2022-11-06 19:13:17.233 | ========================= 2022-11-06 19:13:17.236 | Failures during discovery 2022-11-06 19:13:17.238 | ========================= 2022-11-06 19:13:17.240 | --- import errors --- 2022-11-06 19:13:17.243 | Failed to import test module: manila_tempest_tests.tests.api.test_rules 2022-11-06 19:13:17.245 | Traceback (most recent call last): 2022-11-06 19:13:17.248 | File "/usr/lib/python3.6/site-packages/unittest2/loader.py", line 456, in _find_test_path 2022-11-06 19:13:17.250 | module = self._get_module_from_name(name) 2022-11-06 19:13:17.252 | File "/usr/lib/python3.6/site-packages/unittest2/loader.py", line 395, in _get_module_from_name 2022-11-06 19:13:17.255 | __import__(name) 2022-11-06 19:13:17.257 | File "/usr/lib/python3.6/site-packages/manila_tempest_tests/tests/api/test_rules.py", line 80, in <module> 2022-11-06 19:13:17.260 | class ShareIpRulesForNFSTest(base.BaseSharesMixedTest): 2022-11-06 19:13:17.262 | File "/usr/lib/python3.6/site-packages/manila_tempest_tests/tests/api/test_rules.py", line 107, in ShareIpRulesForNFSTest 2022-11-06 19:13:17.264 | utils.deduplicate(['1.0', '2.9', '2.37', LATEST_MICROVERSION]), 2022-11-06 19:13:17.267 | AttributeError: module 'manila_tempest_tests.utils' has no attribute 'deduplicate' The failure is caused by the missing definition of the deduplicate methodin the version of manila-tempest-plugin shipped with 16.1. That version has python-manila-tests-tempest 1.1.0, while deduplicate was added to 1.3.0. The patch should then be reverted Version-Release number of selected component (if applicable): python-manila-tests-tempest-1.1.0-1.20211117153357.eba8fa9.el8ost
Tested using: python3-manila-tests-tempest-1.1.0-1.20220914203223.eba8fa9.el8ost.noarch
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 (Red Hat OpenStack Platform 16.1.9 bug fix and enhancement 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-2022:8795