]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cbt: install pdsh from el9 RPMs on el10 systems 68424/head
authorNitzan Mordechai <nmordech@ibm.com>
Thu, 16 Apr 2026 10:52:52 +0000 (10:52 +0000)
committerNitzan Mordechai <nmordech@ibm.com>
Thu, 16 Apr 2026 12:54:04 +0000 (12:54 +0000)
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 <nmordech@ibm.com>
qa/tasks/cbt.py

index 37a4ed011f1b2d9b7441c489726b25b0a45916ce..858a34ed17fc5eacce8831384d988a44ffc8c5b9 100644 (file)
@@ -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(