mirror of https://github.com/apache/cloudstack.git
bug 8754,8738: don't throw Exception for getCurrentStatus
status 8754,8738: resolved fixed
This commit is contained in:
parent
88a310aa29
commit
f11d9064ca
|
|
@ -3499,8 +3499,8 @@ public abstract class CitrixResourceBase implements ServerResource {
|
|||
|
||||
@Override
|
||||
public PingCommand getCurrentStatus(long id) {
|
||||
Connection conn = getConnection();
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
if (!pingxenserver()) {
|
||||
Thread.sleep(1000);
|
||||
if (!pingxenserver()) {
|
||||
|
|
|
|||
|
|
@ -412,14 +412,15 @@ public class XenServerConnectionPool {
|
|||
// wait 2 second
|
||||
forceSleep(2);
|
||||
}
|
||||
throw new CloudRuntimeException("Unable to reset master of slave " + slaveIp
|
||||
+ " to " + masterIp + "after 30 retry");
|
||||
} catch (Exception e) {
|
||||
|
||||
throw new CloudRuntimeException("Unable to reset master of slave " + slaveIp
|
||||
+ " to " + masterIp + " due to " + e.toString());
|
||||
} finally {
|
||||
localLogout(slaveConn);
|
||||
slaveConn = null;
|
||||
}
|
||||
throw new CloudRuntimeException("Unable to reset master of slave " + slaveIp
|
||||
+ " to " + masterIp + "after 30 retry");
|
||||
}
|
||||
|
||||
protected void ensurePoolIntegrity(Connection conn,
|
||||
|
|
|
|||
Loading…
Reference in New Issue