]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Install epel + dependency on all nodes
authorVasu Kulkarni <vasu@redhat.com>
Tue, 19 Jun 2018 20:05:36 +0000 (13:05 -0700)
committerrakeshgm <rgowdege@redhat.com>
Thu, 1 Aug 2019 05:43:12 +0000 (11:13 +0530)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/cbt.py

index 840fbd88276d7a7a2aadaffbfd85785a5da45233..3b3bb0955be267c8e1d343e4ef5b1dee6a489aa0 100644 (file)
@@ -72,11 +72,11 @@ class CBT(Task):
         system_type = misc.get_system_type(self.first_mon)
         if system_type == 'rpm':
             install_cmd = ['sudo', 'yum', '-y', 'install']
-            epel_pkg = 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm'
-            self.first_mon.run(args=install_cmd + epel_pkg)
+            epel_pkg = ['https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm']
+            self.ctx.cluster.run(args=install_cmd + epel_pkg)
             # enable epel
             enable_epel = ['sudo', 'yum-config-manager', '--enable', 'epel']
-            self.first_mon.run(args=enable_epel)
+            self.ctx.cluster.run(args=enable_epel)
 
     def install_dependencies(self):
         system_type = misc.get_system_type(self.first_mon)
@@ -87,7 +87,7 @@ class CBT(Task):
         else:
             install_cmd = ['sudo', 'apt-get', '-y', '--force-yes', 'install']
             cbt_depends = ['python-yaml', 'python-lxml', 'librbd-dev', 'collectl']
-        self.first_mon.run(args=install_cmd + cbt_depends)
+        self.ctx.cluster.run(args=install_cmd + cbt_depends)
 
         benchmark_type = self.cbt_config.get('benchmarks').keys()[0]
         self.log.info('benchmark: %s', benchmark_type)