X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=monitor%2Fbootman.py;fp=monitor%2Fbootman.py;h=975421871593f2677ff2317fe24916c268eda8a8;hp=2070e008330588ab46ff6c683b735c6d03d85eeb;hb=32e47491837a321e684ea167ab6aa430145562f1;hpb=5757568294bc4a4fee336acbc1822c28166b5715 diff --git a/monitor/bootman.py b/monitor/bootman.py index 2070e00..9754218 100755 --- a/monitor/bootman.py +++ b/monitor/bootman.py @@ -129,6 +129,21 @@ class NodeConnection: print key, " == ", bm.VARS[key] else: print " Unable to read Node Configuration" + + def fprobe_repair_node(self): + # When fprobe data gets too much, it fills the root partition and + # fails to boot + c = self.c + self.c.modules.sys.path.append("/tmp/source/") + + # NOTE: assume that the root fs is already mounted... + if self.c.modules.os.path.exists('/tmp/mnt/sysimg/var/local/fprobe'): + print "CLEARING FPROBE DATA on %s" % self.node + self.c.modules.os.chdir('/tmp/mnt/sysimg/var/local/fprobe') + cmd = """ ls -lrt . | awk '{if (i