git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
catch the 'cable error' status in ipals
[monitor.git]
/
reboot.py
diff --git
a/reboot.py
b/reboot.py
index
67be293
..
34b9b00
100755
(executable)
--- a/
reboot.py
+++ b/
reboot.py
@@
-343,6
+343,8
@@
class IPAL(PCUControl):
elif status == '0':
# down
power_on = False
elif status == '0':
# down
power_on = False
+ elif status == '6':
+ raise ExceptionPort("IPAL reported 'Cable Error' on %s socket %s : %s" % (self.host, node_port, ret))
else:
raise Exception("Unknown status for PCU %s socket %s : %s" % (self.host, node_port, ret))
else:
else:
raise Exception("Unknown status for PCU %s socket %s : %s" % (self.host, node_port, ret))
else:
@@
-371,6
+373,8
@@
class IPAL(PCUControl):
elif status == '0':
# down
power_on = False
elif status == '0':
# down
power_on = False
+ elif status == '6':
+ raise ExceptionPort("IPAL reported 'Cable Error' on %s socket %s : %s" % (self.host, node_port, ret))
else:
raise Exception("Unknown status for PCU %s socket %s : %s" % (self.host, node_port, ret))
else:
else:
raise Exception("Unknown status for PCU %s socket %s : %s" % (self.host, node_port, ret))
else: