Avoid namespace isolation on LoadBalancer type svcs

This patch ensures namespace isolation is not applied when svcs
are of LoadBalancer type, regardless of the sg_mode (update or create)

Closes-Bug: 1809649
Change-Id: I9af39073fd6546ec44b849be1c5d216ed9fe1f31
This commit is contained in:
Luis Tomas Bolivar 2018-12-24 11:28:51 +01:00
parent 6b80b5bfc0
commit 70e706619f
1 changed files with 1 additions and 2 deletions

View File

@ -288,8 +288,7 @@ class LBaaSv2Driver(base.LBaaSDriver):
if loadbalancer.provider == const.NEUTRON_LBAAS_HAPROXY_PROVIDER:
self._ensure_lb_security_group_rule(loadbalancer, listener)
elif namespace_isolation and (service_type == 'ClusterIP' or
create_sg):
elif namespace_isolation and service_type == 'ClusterIP':
self._extend_lb_security_group_rules(loadbalancer, listener)
elif create_sg:
self._create_lb_security_group_rule(loadbalancer, listener)