Source:
<code>private void connectAndRefreshAllUpHosts(final boolean commandSucceeded) { try { for (VDS vds : getAllRunningVdssInPool()) { try { if (!_isLastMaster && commandSucceeded) { <START> VDSReturnValue returnValue = executeRefreshStoragePoolCommand(vds); <END> if (!returnValue.getSucceeded() && VdcBllErrors.StoragePoolUnknown.equals(returnValue.getVdsError().getCode())) { returnValue = executeConnectStoragePoolCommand(vds); } if (!returnValue.getSucceeded()) { log.errorFormat("Post reconstruct actions (connectPool) did not complete on host {0} in the pool. error {1}", vds.getId(), returnValue.getVdsError().getMessage()); } } if (getParameters().isInactive()) { StorageHelperDirector.getInstance() .getItem(getStorageDomain().getstorage_type()) .DisconnectStorageFromDomainByVdsId(getStorageDomain(), vds.getId()); } } catch (Exception e) { log.errorFormat("Post reconstruct actions (connectPool,refreshPool,disconnect storage)" + " did not complete on host {0} in the pool. error {1}", vds.getId(), e.getMessage()); } } } catch (Exception ex) { log.errorFormat("Post reconstruct actions (connectPool,refreshPool,disconnect storage)" + " did not complete on all up hosts in the pool. error {0}", ex.getMessage()); } }</code><technical_language>verified. is code of RefreshStoragePool: public class RefreshStoragePoolVDSCommand<P extends RefreshStoragePoolVDSCommandParameters> extends VdsBrokerCommand<P> { public RefreshStoragePoolVDSCommand(P parameters) { super(parameters); } @Override protected void ExecuteVdsBrokerCommand() { status = getBroker() .refreshStoragePool(getParameters().getStoragePoolId().toString(), getParameters().getMasterStorageDomainId().toString(), getParameters().getMasterVersion()); ProceedProxyReturnValue(); } } condition true: !returnValue.getSucceeded() && VdcBllErrors.StoragePoolUnknown.equals(re turnValue.getVdsError().getCode()) I imagine</technical_language>

Target:
private void connectAndRefreshAllUpHosts(final boolean commandSucceeded) { for (VDS vds : getAllRunningVdssInPool()) { try { if (!_isLastMaster && commandSucceeded) { try { Backend.getInstance() .getResourceManager() .RunVdsCommand( VDSCommandType.RefreshStoragePool, new RefreshStoragePoolVDSCommandParameters(vds.getId(), getStoragePool().getId(), _newMasterStorageDomainId, getStoragePool().getmaster_domain_version())); } catch (VDSExceptionBase ex) { if (VdcBllErrors.StoragePoolUnknown.equals(ex.getVdsError().getCode())) { VDSReturnValue returnVal = Backend.getInstance() .getResourceManager() .RunVdsCommand( VDSCommandType.ConnectStoragePool, new ConnectStoragePoolVDSCommandParameters(vds.getId(), getStoragePool().getId(), vds.getvds_spm_id(), _newMasterStorageDomainId, getStoragePool() .getmaster_domain_version())); if (!returnVal.getSucceeded()) { log.errorFormat("Post reconstruct actions (connectPool) did not complete on host {0} in the pool. error {1}", vds.getId(), returnVal.getVdsError().getMessage()); } } else { log.errorFormat("Post reconstruct actions (refreshPool)" + " did not complete on host {0} in the pool. error {1}", vds.getId(), ex.getMessage()); } } } if (!getParameters().isInactive()) { StorageHelperDirector.getInstance() .getItem(getStorageDomain().getstorage_type()) .DisconnectStorageFromDomainByVdsId(getStorageDomain(), vds.getId()); } } catch (Exception e) { log.errorFormat("Post reconstruct actions (connectPool,refreshPool,disconnect storage)" + " did not complete on host {0} in the pool. error {1}", vds.getId(), e.getMessage()); } } }