]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Workaround repopriority of yum local repo.
authorSandon Van Ness <sandon@inktank.com>
Sat, 13 Jul 2013 03:24:19 +0000 (20:24 -0700)
committerSandon Van Ness <sandon@inktank.com>
Sat, 13 Jul 2013 03:24:19 +0000 (20:24 -0700)
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 <sandon@inktank.com>
teuthology/task/install.py

index ad8d81dda801fe0a8024f503fbdab752fd8af431..ea7367ceea576335bfab4a58f47b85e560869805 100644 (file)
@@ -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',