From e40a7945db91790ae38778c91cdb0f407374093e Mon Sep 17 00:00:00 2001 From: anthony Date: Fri, 27 May 2011 17:13:47 -0700 Subject: [PATCH] remove Shutdowned status --- .../xen/resource/CitrixResourceBase.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java index a248a9eb0e7..79d164a3890 100644 --- a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java +++ b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java @@ -2503,20 +2503,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe s_logger.debug("Ignoring VM " + vm + " in migrating state."); } else { State newState = State.Stopped; - try { - Set 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); } }