From f6f3ab2bc382d3f1d596f79fb7c99a59d9c67b4c Mon Sep 17 00:00:00 2001 From: anthony Date: Tue, 5 Oct 2010 17:20:58 -0700 Subject: [PATCH] bug 6415: destroy this host in DB, if this host can't be connected status 6415: resolved fixed --- .../cloud/hypervisor/xen/resource/CitrixResourceBase.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java index 105d75b804f..a41f3757f70 100644 --- a/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java +++ b/core/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java @@ -6079,7 +6079,11 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR return new Answer(cmd); } Host host = Host.getByUuid(conn, hostuuid); - Pool.eject(conn, host); + try { + Pool.eject(conn, host); + } catch (Exception e) { + host.destroy(conn); + } return new Answer(cmd); } catch (XenAPIException e) { String msg = "Unable to eject host " + _host.uuid + " due to " + e.toString();