From fec9be184d06f3c322ec03b75d9ed4a9b7ec3093 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 16 Feb 2023 17:32:37 +0530 Subject: [PATCH] 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 --- qa/tasks/cephfs/xfstests_dev.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/xfstests_dev.py b/qa/tasks/cephfs/xfstests_dev.py index f551dc3e6163f..3d7c2184af153 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 \ -- 2.39.5