mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 14189 - multiple physical nw - SSVM fail to download guest templates from storage server which is in isolated network only accessible by host's bridge
if storage network is present, don't set route through private ip when adding internal download site status 14189: resovled fixed
This commit is contained in:
parent
8071f51678
commit
a6a54a2f87
@ -797,7 +797,12 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
||||
s_logger.warn("Error in allowing outgoing to " + destCidr + ", err=" + result );
|
||||
return "Error in allowing outgoing to " + destCidr + ", err=" + result;
|
||||
}
|
||||
addRouteToInternalIpOrCidr(_localgw, _eth1ip, _eth1mask, destCidr);
|
||||
|
||||
if (_storageIp == null) {
|
||||
/* only set route when no storage network present */
|
||||
addRouteToInternalIpOrCidr(_localgw, _eth1ip, _eth1mask, destCidr);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@ -374,9 +374,6 @@ public class SecondaryStorageManagerImpl implements SecondaryStorageVmManager, V
|
||||
}
|
||||
}
|
||||
List<? extends Nic> nics = _networkMgr.getNicsForTraffic(secStorageVm.getId(), TrafficType.Management);
|
||||
Nic privateNic = nics.get(0);
|
||||
String privateCidr = NetUtils.ipAndNetMaskToCidr(privateNic.getIp4Address(), privateNic.getNetmask());
|
||||
String publicCidr = NetUtils.ipAndNetMaskToCidr(secStorageVm.getPublicIpAddress(), secStorageVm.getPublicNetmask());
|
||||
setupCmd.setAllowedInternalSites(allowedCidrs.toArray(new String[allowedCidrs.size()]));
|
||||
}
|
||||
String copyPasswd = _configDao.getValue("secstorage.copy.password");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user