]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Use yum localinstall to install ceph-release
authorZack Cerza <zack@redhat.com>
Thu, 22 Jan 2015 21:11:14 +0000 (14:11 -0700)
committerZack Cerza <zack@redhat.com>
Thu, 22 Jan 2015 21:17:03 +0000 (14:17 -0700)
Partly, do this so that if ceph-release is already installed, we don't
get an error.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/install.py

index d236b1b8f489f4b5f8de17026220ac819acb44dc..4e122baaccff24cf654e1898de3997ada17b83f6 100644 (file)
@@ -424,7 +424,7 @@ def _update_rpm_package_list_and_install(ctx, remote, rpm, config):
     # When this was one command with a pipe, it would sometimes
     # fail with the message 'rpm: no packages given for install'
     remote.run(args=['wget', base_url, ],)
-    remote.run(args=['sudo', 'rpm', '-i', rpm_name, ],)
+    remote.run(args=['sudo', 'yum', '-y', 'localinstall', rpm_name])
 
     remote.run(args=['rm', '-f', rpm_name])