]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
enable epel during cbt testing
authorVasu Kulkarni <vasu@redhat.com>
Tue, 19 Jun 2018 19:43:30 +0000 (12:43 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Mon, 3 Dec 2018 19:43:01 +0000 (11:43 -0800)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
qa/tasks/cbt.py

index ae2ae40f992b1d4ca26638ab6957e96fcc81cc69..840fbd88276d7a7a2aadaffbfd85785a5da45233 100644 (file)
@@ -68,6 +68,16 @@ class CBT(Task):
             benchmarks=benchmark_config,
             )
 
+    def enable_epel(self):
+        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)
+            # enable epel
+            enable_epel = ['sudo', 'yum-config-manager', '--enable', 'epel']
+            self.first_mon.run(args=enable_epel)
+
     def install_dependencies(self):
         system_type = misc.get_system_type(self.first_mon)
 
@@ -201,6 +211,7 @@ class CBT(Task):
         misc.write_file(self.first_mon, os.path.join(self.cbt_dir, 'cbt_config.yaml'),
                         yaml.safe_dump(self.cbt_config, default_flow_style=False))
         self.checkout_cbt()
+        self.enable_epel()
         self.install_dependencies()
 
     def begin(self):