git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hrn might be empty during transition period
[nodemanager.git]
/
plugins
/
omf_resctl.py
diff --git
a/plugins/omf_resctl.py
b/plugins/omf_resctl.py
index
b8b5e16
..
bd09c05
100644
(file)
--- a/
plugins/omf_resctl.py
+++ b/
plugins/omf_resctl.py
@@
-32,8
+32,12
@@
def GetSlivers(data, conf = None, plc = None):
# xxx might need to clean up more deeply..
return
# xxx might need to clean up more deeply..
return
+ # as hrn is set only at AddNode-time, upgraded myplcs might still miss this
+ # clue: just overwrite the hostname of all nodes
+ # for node in GetNodes(): UpdateNode(node['node_id'],{'hostname':node['hostname']})
try:
node_hrn = data['hrn']
try:
node_hrn = data['hrn']
+ if not hrn: raise Exception,"Empty hrn"
except:
node_hrn='default # Failed to read hrn from GetSlivers, please upgrade PLCAPI'
except:
node_hrn='default # Failed to read hrn from GetSlivers, please upgrade PLCAPI'