use of org.ovirt.engine.core.common.action.SetNonOperationalVdsParameters in project ovirt-engine by oVirt.
the class InitVdsOnUpCommand method setNonOperational.
private void setNonOperational(NonOperationalReason reason, Map<String, String> customLogValues) {
SetNonOperationalVdsParameters tempVar = new SetNonOperationalVdsParameters(getVds().getId(), reason, customLogValues);
runInternalAction(ActionType.SetNonOperationalVds, tempVar, ExecutionHandler.createInternalJobContext(getContext()));
}
use of org.ovirt.engine.core.common.action.SetNonOperationalVdsParameters in project ovirt-engine by oVirt.
the class GlusterSyncJob method setNonOperational.
private void setNonOperational(VDS server) {
Cluster cluster = clusterDao.get(server.getClusterId());
if (!cluster.supportsVirtService()) {
SetNonOperationalVdsParameters nonOpParams = new SetNonOperationalVdsParameters(server.getId(), NonOperationalReason.GLUSTER_COMMAND_FAILED, Collections.singletonMap(GlusterConstants.COMMAND, "gluster peer status"));
backend.runInternalAction(ActionType.SetNonOperationalVds, nonOpParams, ExecutionHandler.createInternalJobContext());
}
serverDao.updatePeerStatus(server.getId(), PeerStatus.DISCONNECTED);
logUtil.logServerMessage(server, AuditLogType.GLUSTER_SERVER_STATUS_DISCONNECTED);
}
Aggregations