bug 6500: add back the special handle for secodary storage host, it is in the same path of handling xenserver host, it is easy to break that, so I add some comments there

status 6500: resolved fixed
This commit is contained in:
anthony 2010-10-11 12:04:56 -07:00
parent 6a362cf6a4
commit 09cefaf3e9
1 changed files with 3 additions and 1 deletions

View File

@ -938,8 +938,10 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
ReadyCommand ready = new ReadyCommand(dcId);
Answer answer = easySend(hostId, ready);
if (answer == null) {
// this is tricky part for secondary storage
// make it as disconnected, wait for secondary storage VM to be up
// return the attache instead of null, even it is disconnectede
handleDisconnect(attache, Event.AgentDisconnected, false);
return null;
}
_hostDao.updateStatus(host, Event.Ready, _nodeId);