]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cbt.py: Install collectl manually 50458/head
authorMatan Breizman <mbreizma@redhat.com>
Thu, 9 Mar 2023 15:09:12 +0000 (15:09 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Tue, 4 Jul 2023 11:42:34 +0000 (11:42 +0000)
See: d4a04809fd7fd8aaf447005f76a1090db99d75c5

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
qa/tasks/cbt.py

index 56c57138b0c2aa6a2daad06e28c845f9e34176b3..2e7d89d5cc0a601d4ca0c449dd10445e87139655 100644 (file)
@@ -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']