]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: add 'rhel' to family of RH OS in xfstest_dev.py 50142/head
authorRishabh Dave <ridave@redhat.com>
Thu, 16 Feb 2023 12:02:37 +0000 (17:32 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 23 Feb 2023 17:01:27 +0000 (22:31 +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>
qa/tasks/cephfs/xfstests_dev.py

index f551dc3e6163fc2795f80b6cf7bc88fa7b3c557e..3d7c2184af153fd566f4484152ee4816f7497355 100644 (file)
@@ -175,11 +175,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 \