]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: add 'rhel' to family of RH OS in xfstest_dev.py 52585/head
authorRishabh Dave <ridave@redhat.com>
Thu, 16 Feb 2023 12:02:37 +0000 (17:32 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 25 Aug 2023 06:41:17 +0000 (12:11 +0530)
The string returned by get_system_type() for RHEL 8.4 recently wasn't
one of the strings that xfstests_dev.py expects. The string returned
this time was instead "rhel". Add this string to the list of strings
that xfstests_dev.py expects for Red Hat OS family so that this failure
won't occur again in future. Also log the detected distro and version so
that it is easier to debug when this issue occurs next time.

Fixes: https://tracker.ceph.com/issues/58726
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit fec9be184d06f3c322ec03b75d9ed4a9b7ec3093)

qa/tasks/cephfs/xfstests_dev.py

index 857d4ed388d758c7ae89365027c6fcd9b9f2592c..db9716ff88f7f78e638b5afe04b0569fb3ffb643 100644 (file)
@@ -90,11 +90,12 @@ class XFSTestsDev(CephFSTestCase):
         distro = distro.lower()
         major_ver_num = int(version.split('.')[0]) # only keep major release
                                                    # number
+        log.info(f'distro and version detected is "{distro}" and "{version}".')
 
         # we keep fedora here so that right deps are installed when this test
         # is run locally by a dev.
         if distro in ('redhatenterpriseserver', 'redhatenterprise', 'fedora',
-                      'centos', 'centosstream'):
+                      'centos', 'centosstream', 'rhel'):
             deps = """acl attr automake bc dbench dump e2fsprogs fio \
             gawk gcc indent libtool lvm2 make psmisc quota sed \
             xfsdump xfsprogs \