Commit 9838ea2e authored by Paul Rich's avatar Paul Rich
Browse files

fixing script crash and logging date/month reversal

parent 2df5a45d
......@@ -50,7 +50,7 @@ logger.addHandler(syslog)
ACCOUNTING_LOG_PATH = '/var/log/pbs/boot'
ACCOUNTING_MSG_FMT = "%s;%s;%s;%s" # Date, Type, Jobid, keyvals
def dict_to_keyval_str(dct):
'''put a record keyval dict into a string format for pbs logging'''
......@@ -240,8 +240,8 @@ def main():
initial_modes[mode] = [int(nid)]
initial_mode_list = []
for mode, node_list in initial_modes.items():
initial_mode_list.append('%s:%s' % (mode, compact_num_list(node_list)))
for mode, mod_node_list in initial_modes.items():
initial_mode_list.append('%s:%s' % (mode, compact_num_list(mod_node_list)))
# assuming that mode change is immediately followed by reboot. Modify when
# current setting inspection available.
......@@ -250,9 +250,9 @@ def main():
reboot_info = {'bootid': bootid,
'boot_time': 'N/A',
'rebooted': compact_num_list(nodes_to_modify),
'blocked': compact_num_list(node_list),
'blocked': node_list,
'from_mode': ','.join(initial_mode_list),
'to_mode': '%s:%s:%s' %(mcdram_mode, numa_mode, compact_num_list(node_list)),
'to_mode': '%s:%s:%s' % (mcdram_mode, numa_mode, node_list),
'successful': False,
if len(nodes_to_modify) != 0: #if we don't have to reboot, don't go through this.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment