use of org.ovirt.engine.core.common.action.gluster.GlusterVolumeActionParameters in project ovirt-engine by oVirt.
the class ScheduleGlusterVolumeSnapshotCommand method checkAndDisableCliScheduler.
private boolean checkAndDisableCliScheduler() {
GlusterVolumeEntity metaVolume = glusterVolumeDao.getByName(getClusterId(), Config.getValue(ConfigValues.GlusterMetaVolumeName));
Cluster cluster = getCluster();
if (metaVolume != null && cluster.isGlusterCliBasedSchedulingOn()) {
ActionReturnValue returnValue = runInternalAction(ActionType.DisableGlusterCliSnapshotScheduleInternal, new GlusterVolumeActionParameters(getGlusterVolumeId(), true));
if (!returnValue.getSucceeded()) {
handleVdsErrors(AuditLogType.GLUSTER_CLI_SNAPSHOT_SCHEDULE_DISABLE_FAILED, returnValue.getExecuteFailedMessages());
}
return returnValue.getSucceeded();
}
return true;
}
Aggregations