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

Bug 2140579

Summary: Broken tempest test discovery when using manila-tempest-tests after a backport
Product: Red Hat OpenStack Reporter: Luigi Toscano <ltoscano>
Component: python-manila-tests-tempestAssignee: Goutham Pacha Ravi <gouthamr>
Status: CLOSED ERRATA QA Contact: lkuchlan <lkuchlan>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 16.1 (Train)CC: gouthamr, stchen, tvignaud, vhariria, vimartin
Target Milestone: ---Keywords: Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-manila-tests-tempest-1.1.0-1.20220914203223.eba8fa9.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-07 20:27:53 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 Luigi Toscano 2022-11-07 10:06:19 UTC
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

Comment 4 lkuchlan 2022-11-16 07:52:36 UTC
Tested using:
python3-manila-tests-tempest-1.1.0-1.20220914203223.eba8fa9.el8ost.noarch

Comment 11 errata-xmlrpc 2022-12-07 20:27:53 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 (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