Bug 2109816

Summary: tempest.api.volume.admin.test_backends_capabilities.BackendsCapabilitiesAdminTestsJSON.test_compare_volume_stats_values failure on a NFS-derived backend
Product: Red Hat OpenStack Reporter: Luigi Toscano <ltoscano>
Component: openstack-tempestAssignee: Martin Kopec <mkopec>
Status: CLOSED ERRATA QA Contact: Lukas Piwowarski <lpiwowar>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.0 (Wallaby)CC: apevec, lhh, mkopec, slinaber, udesale
Target Milestone: gaKeywords: Regression, Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tempest-32.0.0-1.20221003160712.bc12bd4.el9ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 01:11:24 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-07-22 08:41:44 UTC
Description of problem:
Dyue to some refactoring of the tempest test 
tempest.api.volume.admin.test_backends_capabilities.BackendsCapabilitiesAdminTestsJSON.test_compare_volume_stats_values

the behavior when comparing the results on an NFS backend was broken for stable releases.


Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/tempest/api/volume/admin/test_backends_capabilities.py", line 91, in test_compare_volume_stats_values
    self.assertEqual(expected_list, observed_list)
  File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 391, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3.9/site-packages/testtools/testcase.py", line 478, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [('NetApp', 'tripleo_netapp', 'nfs')]
actual    = [('NetApp', 'tripleo_netapp', 'NFS')]


The upstream bug (https://bugs.launchpad.net/cinder/+bug/1979826) and the related fix (https://review.opendev.org/c/openstack/tempest/+/847952) provide more details.
This bug is needed to track the failure and ensure the fix lands at some point.

Version-Release number of selected component (if applicable):
openstack-tempest-31.1.0-0.20220705220828.56d259d.el9ost.noarch

Comment 11 Lukas Piwowarski 2023-02-28 08:56:24 UTC
The bug fix fixes the issue and it is present in openstack-tempest-32.0.0-1.20221003160712.bc12bd4.el9ost (see verifying-fix-bug-2109816.txt). I'm moving this to VERIFIED.

[1] https://review.opendev.org/c/openstack/tempest/+/847952

Comment 20 errata-xmlrpc 2023-08-16 01:11:24 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 (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), 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/RHEA-2023:4577