mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
try pingXenServer first before getConnect in getCurrentStatus
This commit is contained in:
parent
4e5ce5690a
commit
5e1886ee35
@ -3813,7 +3813,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
@Override
|
||||
public PingCommand getCurrentStatus(long id) {
|
||||
try {
|
||||
Connection conn = getConnection();
|
||||
if (!pingXenServer()) {
|
||||
Thread.sleep(1000);
|
||||
if (!pingXenServer()) {
|
||||
@ -3821,6 +3820,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Connection conn = getConnection();
|
||||
HashMap<String, State> newStates = deltaSync(conn);
|
||||
if (newStates == null) {
|
||||
s_logger.warn("Unable to get current status from sync");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user