Commit 64befbf0 authored by Aurel's avatar Aurel

handle 'stopping' cluster state


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@785 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 745c557c
......@@ -56,9 +56,15 @@ class AdministrationEventHandler(MasterEventHandler):
self.checkClusterName(name)
if state == protocol.RUNNING:
self.app.cluster_state = state
if state == STOPPING:
self.app.cluster_state = state
p = protocol.noError('cluster state changed')
conn.answer(p, packet)
self.app.shutdown()
p = protocol.noError('cluster state changed')
conn.answer(p, packet)
def handleSetNodeState(self, conn, packet, uuid, state, modify_partition_table):
logging.info("set node state for %s-%s : %s" % (dump(uuid), state, modify_partition_table))
app = self.app
......
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