Bug 2140579 - Broken tempest test discovery when using manila-tempest-tests after a backport
Summary: Broken tempest test discovery when using manila-tempest-tests after a backport
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-manila-tests-tempest
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Goutham Pacha Ravi
QA Contact: lkuchlan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-07 10:06 UTC by Luigi Toscano
Modified: 2022-12-07 20:28 UTC (History)
5 users (show)

Fixed In Version: python-manila-tests-tempest-1.1.0-1.20220914203223.eba8fa9.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 20:27:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-19916 0 None None None 2022-11-07 10:33:09 UTC
Red Hat Product Errata RHBA-2022:8795 0 None None None 2022-12-07 20:28:31 UTC

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


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