From: Rishabh Dave Date: Thu, 16 Feb 2023 12:02:37 +0000 (+0530) Subject: qa/cephfs: add 'rhel' to family of RH OS in xfstest_dev.py X-Git-Tag: v18.1.0~296^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fec9be184d06f3c322ec03b75d9ed4a9b7ec3093;p=ceph.git qa/cephfs: add 'rhel' to family of RH OS in xfstest_dev.py 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 --- diff --git a/qa/tasks/cephfs/xfstests_dev.py b/qa/tasks/cephfs/xfstests_dev.py index f551dc3e616..3d7c2184af1 100644 --- a/qa/tasks/cephfs/xfstests_dev.py +++ b/qa/tasks/cephfs/xfstests_dev.py @@ -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 \