From e00a7dfd6fc0bec19c3f10ef35452c4d38bb3fc9 Mon Sep 17 00:00:00 2001 From: Nitzan Mordechai Date: Thu, 16 Apr 2026 10:52:52 +0000 Subject: [PATCH] qa/tasks/cbt: install pdsh from el9 RPMs on el10 systems PDSH is not available in EPEL10 repos. Install the el9 RPMs directly via yum, which are compatible with el10. Fixes: https://tracker.ceph.com/issues/75877 Signed-off-by: Nitzan Mordechai --- qa/tasks/cbt.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 37a4ed011f1b..858a34ed17fc 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -67,7 +67,22 @@ class CBT(Task): if system_type == 'rpm': install_cmd = ['sudo', 'yum', '-y', 'install'] - cbt_depends = ['librbd-devel', 'pdsh', 'pdsh-rcmd-ssh','perf'] + cbt_depends = ['librbd-devel', 'perf'] + + # pdsh is not available in the repos for el10, use el9 version which works fine + os_version = misc.get_distro_version(self.ctx) + os_major_version = int(os_version.split('.')[0]) + if os_major_version >= 10: + self.log.info('Installing pdsh from el9 repo into el10 system') + pdsh_base = 'https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Packages/p' + self.first_mon.run(args=[ + 'sudo', 'yum', '-y', 'install', + f'{pdsh_base}/pdsh-2.34-7.el9.x86_64.rpm', + f'{pdsh_base}/pdsh-rcmd-ssh-2.34-7.el9.x86_64.rpm', + ]) + else: + cbt_depends += ['pdsh', 'pdsh-rcmd-ssh'] + self.log.info('Installing collectl') collectl_location = "https://sourceforge.net/projects/collectl/files/collectl/collectl-4.3.1/collectl-4.3.1.src.tar.gz/download" self.first_mon.run( -- 2.47.3