git://git.onelab.eu
/
pcucontrol.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5d3dfa
)
add a parameter to RebootNodeWithPCU to perform a 'testrun' without rebooting the...
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 18 Jun 2010 19:51:25 +0000
(19:51 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 18 Jun 2010 19:51:25 +0000
(19:51 +0000)
pcucontrol/reboot.py
patch
|
blob
|
history
diff --git
a/pcucontrol/reboot.py
b/pcucontrol/reboot.py
index
f31f690
..
0ec2abd
100755
(executable)
--- a/
pcucontrol/reboot.py
+++ b/
pcucontrol/reboot.py
@@
-381,7
+381,7
@@
def model_to_object(modelname):
print "UNKNOWN model %s"%modelname
return Unknown
print "UNKNOWN model %s"%modelname
return Unknown
-def reboot_api(node, pcu):
+def reboot_api(node, pcu
, testrun=False
):
rb_ret = ""
try:
rb_ret = ""
try:
@@
-393,7
+393,7
@@
def reboot_api(node, pcu):
i = pcu['node_ids'].index(node['node_id'])
p = pcu['ports'][i]
# reboot
i = pcu['node_ids'].index(node['node_id'])
p = pcu['ports'][i]
# reboot
- rb_ret = instance.reboot(p,
False
)
+ rb_ret = instance.reboot(p,
testrun
)
else:
rb_ret = "No modelname in PCU record."
# TODO: how to handle the weird, georgetown pcus, the drac faults, and ilo faults
else:
rb_ret = "No modelname in PCU record."
# TODO: how to handle the weird, georgetown pcus, the drac faults, and ilo faults