X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=grouprins.py;h=433ecd39f5eadb5be9c514beabeeca9ea1d4bdec;hb=58169a282f00178a05413752d07a63553f3374b1;hp=ed6149d17c1edf896acc804e6685faa5293dcd96;hpb=3d05a7e5452d9cafe6411532c809f8cfcce610c2;p=monitor.git diff --git a/grouprins.py b/grouprins.py index ed6149d..433ecd3 100755 --- a/grouprins.py +++ b/grouprins.py @@ -73,6 +73,7 @@ class Reboot(object): return ret except Exception,e: + email_exception() print traceback.print_exc(); print e # NOTE: this failure could be an implementation issue on @@ -95,6 +96,7 @@ class Reboot(object): return ret except Exception,e: + email_exception() print traceback.print_exc(); print e # NOTE: this failure could be an implementation issue on @@ -138,6 +140,7 @@ class Reboot(object): try: return mailmonitor.reboot(host) except Exception, e: + email_exception(host) print traceback.print_exc(); print e return False @@ -261,6 +264,7 @@ for host in hostnames: try: node = api.GetNodes(host)[0] except: + email_exception() print traceback.print_exc(); print "FAILED GETNODES for host: %s" % host continue @@ -285,6 +289,7 @@ for host in hostnames: # todo: send thank you, etc. mailmonitor.reboot(host) except Exception, e: + email_exception() print traceback.print_exc(); print e continue @@ -355,6 +360,7 @@ for host in hostnames: print "Killed by interrupt" sys.exit(0) except: + email_exception() print traceback.print_exc(); print "Continuing..."