use of org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters in project ovirt-engine by oVirt.
the class UpdateGlusterGeoRepKeysVDSCommand method executeVdsBrokerCommand.
@Override
protected void executeVdsBrokerCommand() {
UpdateGlusterGeoRepKeysVDSParameters parameters = getParameters();
status = getBroker().glusterGeoRepKeysUpdate(parameters.getGeoRepPubKeys(), parameters.getRemoteUserName());
proceedProxyReturnValue();
}
use of org.ovirt.engine.core.common.vdscommands.gluster.UpdateGlusterGeoRepKeysVDSParameters in project ovirt-engine by oVirt.
the class UpdateGlusterHostPubKeyToSlaveInternalCommand method executeCommand.
@Override
protected void executeCommand() {
final VDSReturnValue writePubKeysReturnValue = runVdsCommand(VDSCommandType.UpdateGlusterGeoRepKeys, new UpdateGlusterGeoRepKeysVDSParameters(getParameters().getId(), getParameters().getPubKeys(), getParameters().getRemoteUserName()));
setSucceeded(writePubKeysReturnValue.getSucceeded());
if (!writePubKeysReturnValue.getSucceeded()) {
String errorMsg = writePubKeysReturnValue.getVdsError().getMessage();
writePubKeysReturnValue.getVdsError().setMessage(errorMsg + " : " + vdsDao.get(getParameters().getId()).getName());
propagateFailure(convertToActionReturnValue(writePubKeysReturnValue));
return;
}
}
Aggregations