Source:
<code>protected void connectAllHostsToStorage(List<String> connectionIds) { List<Callable<Void>> tasks = new ArrayList<>(); final List<StorageServerConnections> connections = getDbFacade().getStorageServerConnectionDao().getByIds(connectionIds); List<VDS> hosts = getVdsDAO().getAllForStoragePoolAndStatus(getIscsiBond().getStoragePoolId(), VDSStatus.Up); for (final VDS host : hosts) { tasks.add(new Callable<Void>() { @Override public Void call() throws Exception { try { final List<StorageServerConnections> conns = ISCSIStorageHelper.updateIfaces(connections, host.getId()); VDSReturnValue returnValue = runVdsCommand(VDSCommandType.ConnectStorageServer, new StorageServerConnectionManagementVDSParameters(host.getId(), Guid.Empty, StorageType.ISCSI, conns) ); final Map<String, String> iscsiMap = (Map<String, String>) returnValue.getReturnValue(); List<String> failedConnectionsList = LinqUtils.filter(iscsiMap.keySet(), new Predicate<String>() { @Override public boolean eval(String a) { return !"0".equals(iscsiMap.get(a)); } }); if (!failedConnectionsList.isEmpty()) { <START> log.errorFormat("Host {0} - {1} encounter problems to connect to the Iscsi Storage Server. The following connections were problematic (connectionid=vdsm result): {2}", <END> host.getName(), host.getId(), iscsiMap.toString()); encounterConnectionProblems = true; } } catch (VdcBLLException e) { log.errorFormat("Could not connect Host {0} - {1} to Iscsi Storage Server. The exception is: {2}", host.getName(), host.getId(), e); encounterConnectionProblems = true; } return null; } }); } ThreadPoolUtil.invokeAll(tasks); }</code><technical_language>s/Iscsi/iSCSI</technical_language>

Target:
protected void connectAllHostsToStorage(List<String> connectionIds) { List<Callable<Void>> tasks = new ArrayList<>(); final List<StorageServerConnections> connections = getDbFacade().getStorageServerConnectionDao().getByIds(connectionIds); List<VDS> hosts = getVdsDAO().getAllForStoragePoolAndStatus(getIscsiBond().getStoragePoolId(), VDSStatus.Up); for (final VDS host : hosts) { tasks.add(new Callable<Void>() { @Override public Void call() throws Exception { try { final List<StorageServerConnections> conns = ISCSIStorageHelper.updateIfaces(connections, host.getId()); VDSReturnValue returnValue = runVdsCommand(VDSCommandType.ConnectStorageServer, new StorageServerConnectionManagementVDSParameters(host.getId(), Guid.Empty, StorageType.ISCSI, conns) ); final Map<String, String> iscsiMap = (Map<String, String>) returnValue.getReturnValue(); List<String> failedConnectionsList = LinqUtils.filter(iscsiMap.keySet(), new Predicate<String>() { @Override public boolean eval(String a) { return !"0".equals(iscsiMap.get(a)); } }); if (!failedConnectionsList.isEmpty()) { log.errorFormat("Host {0} - {1} encounter problems to connect to the iSCSI Storage Server. The following connections were problematic (connectionid=vdsm result): {2}", host.getName(), host.getId(), iscsiMap.toString()); encounterConnectionProblems = true; } } catch (VdcBLLException e) { log.errorFormat("Could not connect Host {0} - {1} to Iscsi Storage Server. The exception is: {2}", host.getName(), host.getId(), e); encounterConnectionProblems = true; } return null; } }); } ThreadPoolUtil.invokeAll(tasks); }