From 780f6f55cd605302e13c0022ef62766edac299f8 Mon Sep 17 00:00:00 2001 From: Matan Breizman Date: Thu, 9 Mar 2023 15:09:12 +0000 Subject: [PATCH] qa/tasks/cbt.py: Install collectl manually See: d4a04809fd7fd8aaf447005f76a1090db99d75c5 Signed-off-by: Matan Breizman --- qa/tasks/cbt.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index 56c57138b0c..2e7d89d5cc0 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -74,7 +74,19 @@ class CBT(Task): if system_type == 'rpm': install_cmd = ['sudo', 'yum', '-y', 'install'] - cbt_depends = ['python3-yaml', 'python3-lxml', 'librbd-devel', 'pdsh', 'collectl'] + cbt_depends = ['python3-yaml', 'python3-lxml', 'librbd-devel', '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( + args=[ + 'sudo', 'mkdir', 'collectl', run.Raw('&&'), + 'cd', 'collectl', run.Raw('&&'), + 'sudo', 'wget', collectl_location, '-O', 'collectl.tar.gz', run.Raw('&&'), + 'sudo', 'tar', '-xvf', 'collectl.tar.gz' , run.Raw('&&'), + 'cd', 'collectl-4.3.1', run.Raw('&&'), + 'sudo', './INSTALL' + ] + ) else: install_cmd = ['sudo', 'apt-get', '-y', '--force-yes', 'install'] cbt_depends = ['python3-yaml', 'python3-lxml', 'librbd-dev', 'collectl'] -- 2.39.5