git://git.onelab.eu
/
monitor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d9a5522
)
typos and wrong variable names.
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 13 Feb 2009 23:35:45 +0000
(23:35 +0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Fri, 13 Feb 2009 23:35:45 +0000
(23:35 +0000)
reboot.py
patch
|
blob
|
history
diff --git
a/reboot.py
b/reboot.py
index
503ca63
..
8efebae
100755
(executable)
--- a/
reboot.py
+++ b/
reboot.py
@@
-1211,14
+1211,14
@@
def reboot_policy(nodename, continue_probe, dryrun):
pcu = plc.getpcu(nodename)
if not pcu:
pcu = plc.getpcu(nodename)
if not pcu:
- logger.debug("no pcu for %s" %
host
name)
- print "no pcu for %s" %
host
name
+ logger.debug("no pcu for %s" %
node
name)
+ print "no pcu for %s" %
node
name
return False # "%s has no pcu" % nodename
values = get_pcu_values(pcu['pcu_id'])
if values == None:
return False # "%s has no pcu" % nodename
values = get_pcu_values(pcu['pcu_id'])
if values == None:
- logger.debug("No values for pcu probe %s" %
host
name)
- print "No values for pcu probe %s" %
host
name
+ logger.debug("No values for pcu probe %s" %
node
name)
+ print "No values for pcu probe %s" %
node
name
return False #"no info for pcu_id %s" % pcu['pcu_id']
# Try the PCU first
return False #"no info for pcu_id %s" % pcu['pcu_id']
# Try the PCU first
@@
-1314,8
+1314,12
@@
def reboot_test(nodename, values, continue_probe, verbose, dryrun):
# TODO: I don't think DRACRacAdm will throw an exception for the
# default method to catch...
try:
# TODO: I don't think DRACRacAdm will throw an exception for the
# default method to catch...
try:
- drac = DRACRacAdm(values, verbose, ['443', '5869'])
- rb_ret = drac.reboot(0, dryrun)
+ if values['pcu_id'] in [1402]:
+ drac = DRAC(values, verbose, ['22'])
+ rb_ret = drac.reboot(0, dryrun)
+ else:
+ drac = DRACRacAdm(values, verbose, ['443', '5869'])
+ rb_ret = drac.reboot(0, dryrun)
except:
drac = DRAC(values, verbose, ['22'])
rb_ret = drac.reboot(0, dryrun)
except:
drac = DRAC(values, verbose, ['22'])
rb_ret = drac.reboot(0, dryrun)