From: Vasu Kulkarni Date: Tue, 19 Jun 2018 19:43:30 +0000 (-0700) Subject: enable epel during cbt testing X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d63d2fd02e0b01edfdc3b6c0a4f445dc04e51b1f;p=ceph.git enable epel during cbt testing Signed-off-by: Vasu Kulkarni --- diff --git a/qa/tasks/cbt.py b/qa/tasks/cbt.py index ae2ae40f992..840fbd88276 100644 --- a/qa/tasks/cbt.py +++ b/qa/tasks/cbt.py @@ -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):