]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Run yum clean all after installing new ceph-release.
authorSandon Van Ness <sandon@inktank.com>
Thu, 5 Sep 2013 18:58:27 +0000 (11:58 -0700)
committerSandon Van Ness <sandon@inktank.com>
Thu, 5 Sep 2013 19:01:17 +0000 (12:01 -0700)
In order to get around the issue of repomd.xml being older than
the previously installed one depending on when the gitbuilder
built the repo.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
teuthology/task/install.py

index 3964951ad790289edc721ec3578c1a8265d50c35..05c58ae2d185f6817f5009e06f60bdb578df5c5d 100644 (file)
@@ -745,6 +745,11 @@ def _upgrade_rpm_packages(ctx, config, remote, pkgs, branch):
     _run_and_log_error_if_fails(remote, args)
     _yum_fix_repo_priority(remote, project)
 
+    remote.run(
+        args=[
+            'sudo', 'yum', 'clean', 'all',
+        ])
+
     # Build a space-separated string consisting of $PKG-$VER for yum
     pkgs_with_vers = ["%s-%s" % (pkg, version) for pkg in pkgs]