From 86caebbed7dd8a27d253b6e94345479e3d0b0284 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 23 Aug 2013 09:00:47 -0700 Subject: [PATCH] nuke: clean up stray firmware.git locks These get lost occasionally and cause all firmware.git updates to fail when the kernel task runs. Signed-off-by: Sage Weil --- teuthology/nuke.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teuthology/nuke.py b/teuthology/nuke.py index 82389f99d5..4aa1fc791d 100644 --- a/teuthology/nuke.py +++ b/teuthology/nuke.py @@ -467,6 +467,11 @@ def nuke_helper(ctx, log): need_reboot = ctx.cluster.remotes.keys() synch_clocks(need_reboot, log) + log.info('Making sure firmware.git is not locked...') + ctx.cluster.run(args=[ + 'sudo', 'rm', '-f', '/lib/firmware/updates/.git/index.lock', + ]) + log.info('Reseting syslog output locations...') reset_syslog_dir(ctx, log) log.info('Clearing filesystem of test data...') -- 2.39.5