GitHub user DaanHoogland edited a comment on the discussion: Issue with Fenced
not to be pedantic @slavkap but don't you mean ``` public boolean fence(Host r) throws HAFenceException { try { // host exists and is managed OOB if (r!= null && outOfBandManagementService.isOutOfBandManagementEnabled(r)) { // check host status if (Host.Status.DOWN.equals(r.getStatus())) { LOG.info("Host " + r.getName() + " is already down. Returning success."); return true; } else { final OutOfBandManagementResponse resp = outOfBandManagementService.executePowerOperation(r, PowerOperation.OFF, null); return resp.getSuccess(); } } else { LOG.warn("OOBM fence operation failed for this host " + r.getName()); return false; } } catch (Exception e) { LOG.warn("OOBM service is not configured or enabled for this host " + r.getName() + " error is " + e.getMessage()); throw new HAFenceException("OBM service is not configured or enabled for this host " + r.getName(), e); } } ``` GitHub link: https://github.com/apache/cloudstack/discussions/10026#discussioncomment-11458964 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org