Commit 2667e70c authored by Paul Rich's avatar Paul Rich
Browse files

Restart cleanup for disabled nodes

There was one further step needed for running jobs. Also fixing a
potential statefile issue with prior versions.
parent 94c44544
......@@ -311,6 +311,7 @@ class CraySystem(BaseSystem):
new_node.admin_down = True
new_node.status = 'down'
self.logger.warning('Node %s marked down.', nid)
new_node.managed = True
self.nodes[str(nid)] = new_node
self.logger.warning('Node %s added to tracking.', nid)
......
......@@ -40,7 +40,10 @@ class Resource(object):
self.reserved_jobid = node.reserved_jobid
self.reserved_until = node.reserved_until
self.managed = node.managed
self.admin_down = node.admin_down
try:
self.admin_down = node.admin_down
except:
self.admin_down = False
def __hash__(self):
'''Hash is the hash of the string name for the resource.'''
......
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