X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=bootman.py;h=0cd88ecfcacddaafe626167a2920e14ee3aaccb0;hb=4c9eba6b66e93acca71aae2eacc18d00b38e88fa;hp=640f9ee0dba6570bfd199ef22e9af3420dd62a65;hpb=9b8db783f3d465c4652b806395d5c0873b498cbd;p=monitor.git diff --git a/bootman.py b/bootman.py index 640f9ee..0cd88ec 100755 --- a/bootman.py +++ b/bootman.py @@ -82,11 +82,11 @@ class NodeConnection: print " ERROR:", x print " Possibly, unable to find valid configuration file" - if bm_continue and self.config and not self.config.quiet: + if bm_continue: for key in bm.VARS.keys(): print key, " == ", bm.VARS[key] else: - if self.config and not self.config.quiet: print " Unable to read Node Configuration" + print " Unable to read Node Configuration" def compare_and_repair_nodekeys(self): @@ -308,7 +308,8 @@ def reboot(hostname, config=None, forced_action=None): # NOTE: Nothing works if the bootcd is REALLY old. # So, this is the first step. fbnode = FindbadNodeRecord.get_latest_by(hostname=hostname).to_dict() - if fbnode['category'] == "OLDBOOTCD": + print fbnode.keys() + if fbnode['observed_category'] == "OLDBOOTCD": print "...NOTIFY OWNER TO UPDATE BOOTCD!!!" args = {} args['hostname_list'] = " %s" % hostname @@ -594,6 +595,7 @@ def reboot(hostname, config=None, forced_action=None): # actual solution appears to involve removing the bad files, and # continually trying to boot the node. "bminit-cfg-auth-getplc-update-installinit-validate-rebuildinitrd-netcfg-disk-update4-update3-update3-implementerror-update-debug-done", + "bminit-cfg-auth-getplc-installinit-validate-exception-bmexceptmount-exception-noinstall-update-debug-done", ]: sequences.update({n : "restart_bootmanager_rins"})