]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
nuke: clean up stray firmware.git locks 48/head
authorSage Weil <sage@inktank.com>
Fri, 23 Aug 2013 16:00:47 +0000 (09:00 -0700)
committerSage Weil <sage@inktank.com>
Fri, 23 Aug 2013 16:00:47 +0000 (09:00 -0700)
These get lost occasionally and cause all firmware.git updates to
fail when the kernel task runs.

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/nuke.py

index 82389f99d5ec2664f8d9207345d461f64c004bb1..4aa1fc791d456206311fbfe564d672f3ec09c984 100644 (file)
@@ -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...')