bug 10094:

remove Shutdowned status
master 542928ca6d651ee17cf91e8e6bfa45582c5ffd07

status 10094: resolved fixed
This commit is contained in:
anthony 2011-05-27 17:13:47 -07:00
parent c12654afb5
commit e94d1af718
1 changed files with 0 additions and 14 deletions

View File

@ -2491,20 +2491,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
s_logger.debug("Ignoring VM " + vm + " in migrating state.");
} else {
State newState = State.Stopped;
try {
Set<VM> missingVMs = VM.getByNameLabel(conn, vm);
if( missingVMs != null && !missingVMs.isEmpty()) {
String shutdownInitiator = missingVMs.iterator().next().getOtherConfig(conn).get("last_shutdown_initiator");
if( shutdownInitiator != null && shutdownInitiator.equals("internal")) {
newState = State.Shutdowned;
}
}
} catch (Exception e) {
}
/*
* if (_vmsKilled.remove(entry.getKey())) { s_logger.debug("VM " + vm +
* " has been killed by storage monitor"); state = State.Error; }
*/
changes.put(entry.getKey(), newState);
}
}