weizhouapache commented on a change in pull request #4401:
URL: https://github.com/apache/cloudstack/pull/4401#discussion_r504497817
##########
File path:
server/src/main/java/com/cloud/network/lb/LoadBalancingRulesManagerImpl.java
##########
@@ -1598,65 +1602,73 @@ public LoadBalancer createPublicLoadBalancerRule(String
xId, String name, String
// LoadBalancer result = _elbMgr.handleCreateLoadBalancerRule(lb,
// lbOwner, lb.getNetworkId());
LoadBalancer result = null;
- if (result == null) {
- IpAddress systemIp = null;
- NetworkOffering off = _entityMgr.findById(NetworkOffering.class,
network.getNetworkOfferingId());
- if (off.isElasticLb() && ipVO == null && network.getVpcId() ==
null) {
- systemIp = _ipAddrMgr.assignSystemIp(networkId, lbOwner, true,
false);
- if (systemIp != null) {
- ipVO = _ipAddressDao.findById(systemIp.getId());
+ IpAddress systemIp = null;
+ NetworkOffering off = _entityMgr.findById(NetworkOffering.class,
network.getNetworkOfferingId());
+
+ if (srcPortStart == 53) {
Review comment:
@Spaceman1984
(1) the issue happens only if lb uses source nat IP. so IP needs to be
checked
(2) what about port 8081 which is used for haproxy stats ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]