CLOUDSTACK-7104: perform ipassoc for ip when network is implemented after the gc

This commit is contained in:
Jayapal 2014-07-14 17:35:59 +05:30
parent 1ed554650c
commit 778e04cb77
2 changed files with 6 additions and 1 deletions

View File

@ -420,6 +420,11 @@ public class IpAddressManagerImpl extends ManagerBase implements IpAddressManage
// 1.there is at least one public IP associated with the network on which first rule (PF/static NAT/LB) is being applied.
// 2.last rule (PF/static NAT/LB) on the public IP has been revoked. So the public IP should not be associated with any provider
boolean checkIfIpAssocRequired(Network network, boolean postApplyRules, List<PublicIp> publicIps) {
if (network.getState() == Network.State.Implementing) {
return true;
}
for (PublicIp ip : publicIps) {
if (ip.isSourceNat()) {
continue;

View File

@ -1137,7 +1137,7 @@ public class LoadBalancingRulesManagerImpl<Type> extends ManagerBase implements
loadBalancer.setState(backupState);
_lbDao.persist(loadBalancer);
CloudRuntimeException ex = new CloudRuntimeException("Failed to add specified loadbalancerruleid for vms "
+ instanceIds);
+ vmInstanceIds);
ex.addProxyObject(loadBalancer.getUuid(), "loadBalancerId");
// TBD: Also pack in the instanceIds in the exception using the
// right VO object or table name.