use of org.ovirt.engine.core.bll.storage.pool.RefreshPoolSingleAsyncOperationFactory in project ovirt-engine by oVirt.
the class ActivateStorageDomainCommand method refreshAllVdssInPool.
private void refreshAllVdssInPool() {
final List<Guid> vdsIdsToSetNonOperational = new ArrayList<>();
getEventQueue().submitEventSync(new Event(getParameters().getStoragePoolId(), getParameters().getStorageDomainId(), null, EventType.POOLREFRESH, ""), () -> {
runSynchronizeOperation(new RefreshPoolSingleAsyncOperationFactory(), vdsIdsToSetNonOperational);
return null;
});
for (Guid vdsId : vdsIdsToSetNonOperational) {
Map<String, String> customLogValues = Collections.singletonMap("StorageDomainNames", getStorageDomainName());
SetNonOperationalVdsParameters tempVar = new SetNonOperationalVdsParameters(vdsId, STORAGE_DOMAIN_UNREACHABLE, customLogValues);
tempVar.setStorageDomainId(getStorageDomain().getId());
tempVar.setTransactionScopeOption(TransactionScopeOption.RequiresNew);
runInternalAction(ActionType.SetNonOperationalVds, tempVar, ExecutionHandler.createInternalJobContext(getContext()));
}
}
Aggregations