Bug 13823: Throw network conflict expection when LB rules conflict

Status 13823: resolved fixed
Reviewed-By: Nitin
This commit is contained in:
kishan 2012-02-22 01:13:47 +05:30
parent 0682f3411b
commit d0612151d8
1 changed files with 3 additions and 0 deletions

View File

@ -728,6 +728,9 @@ public class LoadBalancingRulesManagerImpl<Type> implements LoadBalancingRulesMa
result = createLoadBalancer(lb, openFirewall);
} catch (Exception ex) {
s_logger.warn("Failed to create load balancer due to ", ex);
if (ex instanceof NetworkRuleConflictException) {
throw (NetworkRuleConflictException) ex;
}
} finally {
if (result == null && ip != null) {
s_logger.debug("Releasing elastic IP address " + ip + " as corresponding lb rule failed to create");