Search in sources :

Example 6 with SetNonOperationalVdsParameters

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()));
}
Also used : SetNonOperationalVdsParameters(org.ovirt.engine.core.common.action.SetNonOperationalVdsParameters)

Example 7 with SetNonOperationalVdsParameters

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);
}
Also used : SetNonOperationalVdsParameters(org.ovirt.engine.core.common.action.SetNonOperationalVdsParameters) Cluster(org.ovirt.engine.core.common.businessentities.Cluster)

Aggregations

SetNonOperationalVdsParameters (org.ovirt.engine.core.common.action.SetNonOperationalVdsParameters)7 Cluster (org.ovirt.engine.core.common.businessentities.Cluster)2 ArrayList (java.util.ArrayList)1 RefreshPoolSingleAsyncOperationFactory (org.ovirt.engine.core.bll.storage.pool.RefreshPoolSingleAsyncOperationFactory)1 ManagementNetworkOnClusterOperationParameters (org.ovirt.engine.core.common.action.ManagementNetworkOnClusterOperationParameters)1 ServerCpu (org.ovirt.engine.core.common.businessentities.ServerCpu)1 Event (org.ovirt.engine.core.common.eventqueue.Event)1 Guid (org.ovirt.engine.core.compat.Guid)1