Commit 132d5f2c authored by Grégory Wisniewski's avatar Grégory Wisniewski

Master register unknown storage node found in the proposed partition table.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1105 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a1c254ac
...@@ -51,5 +51,14 @@ class RecoveryHandler(MasterHandler): ...@@ -51,5 +51,14 @@ class RecoveryHandler(MasterHandler):
logging.warn('got answer partition table from %s while waiting for %s', logging.warn('got answer partition table from %s while waiting for %s',
dump(uuid), dump(app.target_uuid)) dump(uuid), dump(app.target_uuid))
return return
# load unknown storage nodes
for offset, row in row_list:
for uuid, state in row:
node = app.nm.getNodeByUUID(uuid)
if node is None:
node = StorageNode(uuid=uuid)
node.setState(protocol.TEMPORARILY_DOWN_STATE)
app.nm.add(node)
# load partition in memory
self.app.pt.load(ptid, row_list, self.app.nm) self.app.pt.load(ptid, row_list, self.app.nm)
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