From 83906ac4dfdb7007687511655e2852a2f5c190a4 Mon Sep 17 00:00:00 2001 From: Sandon Van Ness Date: Thu, 5 Sep 2013 11:58:27 -0700 Subject: [PATCH] Run yum clean all after installing new ceph-release. 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 --- teuthology/task/install.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teuthology/task/install.py b/teuthology/task/install.py index 3964951ad7..05c58ae2d1 100644 --- a/teuthology/task/install.py +++ b/teuthology/task/install.py @@ -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] -- 2.39.5