From: Zack Cerza Date: Mon, 29 Jun 2015 20:38:10 +0000 (-0600) Subject: Remove yum timedhosts files X-Git-Tag: 1.1.0~899^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa45ae2aaa654f5d31f4839cb670a2313f822301;p=teuthology.git Remove yum timedhosts files Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1233329 Signed-off-by: Zack Cerza --- diff --git a/teuthology/nuke.py b/teuthology/nuke.py index 7fe64e4b8..1dfa9774c 100644 --- a/teuthology/nuke.py +++ b/teuthology/nuke.py @@ -261,6 +261,18 @@ def dpkg_configure(ctx): proc.wait() +def remove_yum_timedhosts(ctx): + # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1233329 + log.info("Removing yum timedhosts files...") + for remote in ctx.cluster.remotes.iterkeys(): + if remote.os.package_type != 'rpm': + continue + remote.run( + args="find /var/cache/yum -name 'timedhosts' -exec rm {} \;", + check_status=False, + ) + + def remove_installed_packages(ctx): dpkg_configure(ctx) conf = {'project': 'ceph'} @@ -548,5 +560,6 @@ def nuke_helper(ctx, should_unlock): log.info('Clearing filesystem of test data...') remove_testing_tree(ctx) log.info('Filesystem Cleared.') + remove_yum_timedhosts(ctx) remove_installed_packages(ctx) log.info('Installed packages removed.')