X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bootman.py;h=ff2a6d5608780df0ac287f30d469a8fb93b059a2;hb=fe6912be9d7dd52418b9d53026d0812ae0e3caf1;hp=87d8b71ea3bb2dff24eba7ab05238b712c3054f4;hpb=ee740a3ff286a9720cd1656cd60a3c85f0f14b29;p=monitor.git diff --git a/bootman.py b/bootman.py index 87d8b71..ff2a6d5 100755 --- a/bootman.py +++ b/bootman.py @@ -24,7 +24,7 @@ from unified_model import * from emailTxt import mailtxt from nodeconfig import network_config_to_str import traceback -import monitorconfig +import config import signal class Sopen(subprocess.Popen): @@ -207,7 +207,7 @@ class PlanetLabSession: args['port'] = self.port args['user'] = 'root' args['hostname'] = self.node - args['monitordir'] = monitorconfig.MONITOR_SCRIPT_ROOT + args['monitordir'] = config.MONITOR_SCRIPT_ROOT ssh_port = 22 if self.nosetup: @@ -541,11 +541,11 @@ def reboot(hostname, config=None, forced_action=None): # By using the sequence identifier, we guarantee that there will be no # frequent loops. I'm guessing there is a better way to track loops, # though. - if not config.force and pflags.getRecentFlag(s): - pflags.setRecentFlag(s) - pflags.save() - print "... flag is set or it has already run recently. Skipping %s" % node - return True + #if not config.force and pflags.getRecentFlag(s): + # pflags.setRecentFlag(s) + # pflags.save() + # print "... flag is set or it has already run recently. Skipping %s" % node + # return True sequences = {}