From: Sandon Van Ness Date: Sat, 13 Jul 2013 03:24:19 +0000 (-0700) Subject: Workaround repopriority of yum local repo. X-Git-Tag: 1.1.0~2042^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bd9cf10ca0d41a67d23bf94be6284b989fcb1498;p=teuthology.git Workaround repopriority of yum local repo. Because of issues with package name differences vps are setup to use repopriority and our local repo (which has some ceph/librados stuff in it) gets high priority so the ceph.repo that is created on the machine from ceph-release basically gets ignored. This change makes it so ceph.repo is the same priority level as our local repo. Signed-off-by: Sandon Van Ness --- diff --git a/teuthology/task/install.py b/teuthology/task/install.py index ad8d81dda..ea7367cee 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -190,7 +190,13 @@ def _update_rpm_package_list_and_install(ctx, remote, rpm, config): pkg=ceph_release) if cmp_msg != err_mess.getvalue().strip(): raise - + + #Fix Repo Priority + remote.run( + args=[ + 'sudo', 'sed', '-i', run.Raw('\'s/enabled=1/enabled=1\\npriority=1/g\''), '/etc/yum.repos.d/ceph.repo', + ]) + remote.run( args=[ 'sudo', 'yum', 'clean', 'all',