String logline = "No NFS storage pools found. No way to safely fence " + command.getVmName() + " on host " + command.getHostGuid(); s_logger.warn(logline); return new FenceAnswer(command, false, logline); final KVMHAChecker ha = new KVMHAChecker(pools, command.getHostIp());
FenceCommand fence = new FenceCommand(vm, host);
final Connection conn = xenServer56.getConnection(); try { final Boolean alive = xenServer56.checkHeartbeat(command.getHostGuid()); if (alive == null) { s_logger.debug("Failed to check heartbeat, so unable to fence"); return new FenceAnswer(command, false, "Heartbeat is still going on unable to fence"); final Set<VM> vms = VM.getByNameLabel(conn, command.getVmName()); for (final VM vm : vms) { s_logger.info("Fence command for VM " + command.getVmName()); vm.powerStateReset(conn); vm.destroy(conn);
public FenceAnswer execute(FenceCommand cmd) { LOGGER.debug("FenceCommand"); try { Boolean res = false; return new FenceAnswer(cmd, res, res.toString()); } catch (Exception e) { LOGGER.error("Unable to fence" + cmd.getHostIp(), e); return new FenceAnswer(cmd, false, e.getMessage()); } }
FenceCommand fence = new FenceCommand(vm, host);
final Connection conn = xenServer56.getConnection(); try { final Boolean alive = xenServer56.checkHeartbeat(command.getHostGuid()); if ( alive == null ) { s_logger.debug("Failed to check heartbeat, so unable to fence"); return new FenceAnswer(command, false, "Heartbeat is still going on unable to fence"); final Set<VM> vms = VM.getByNameLabel(conn, command.getVmName()); for (final VM vm : vms) { final Set<VDI> vdis = new HashSet<VDI>(); s_logger.info("Fence command for VM " + command.getVmName()); vm.powerStateReset(conn); vm.destroy(conn);
FenceCommand fence = new FenceCommand(vm, host);
FenceCommand fence = new FenceCommand(vm, host);