mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 6359: find the existing pool master
status 6359: resolved fixed
This commit is contained in:
parent
2c5723d26c
commit
1f173cc8f3
@ -69,6 +69,7 @@ import com.cloud.storage.template.TemplateInfo;
|
||||
import com.cloud.user.Account;
|
||||
import com.cloud.utils.NumbersUtil;
|
||||
import com.cloud.utils.component.Inject;
|
||||
import com.cloud.utils.exception.CloudRuntimeException;
|
||||
import com.xensource.xenapi.Connection;
|
||||
import com.xensource.xenapi.Host;
|
||||
import com.xensource.xenapi.Pool;
|
||||
@ -374,14 +375,12 @@ public class XcpServerDiscoverer extends DiscovererBase implements Discoverer, L
|
||||
}
|
||||
hostConn.dispose();
|
||||
hostConn = null;
|
||||
poolMaster = null;
|
||||
poolUuid1 = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (poolMaster == null) {
|
||||
s_logger.warn("Unable to reach the pool master of the existing cluster");
|
||||
throw new DiscoveryException("Unable to reach the pool master of the existing cluster");
|
||||
throw new CloudRuntimeException("Unable to reach the pool master of the existing cluster");
|
||||
}
|
||||
|
||||
Set<Pool> pools = Pool.getAll(conn);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user