# create the RGW keyring
rgw_user = f'{rados_user}-rgw'
rgw_keyring = self.create_rgw_keyring(daemon_spec)
- if spec.virtual_ip:
+ if spec.virtual_ip and not spec.enable_haproxy_protocol:
bind_addr = spec.virtual_ip
daemon_spec.port_ips = {str(port): spec.virtual_ip}
else:
}
if spec.enable_haproxy_protocol:
context["haproxy_hosts"] = self._haproxy_hosts()
+ if spec.virtual_ip:
+ context["haproxy_hosts"].append(spec.virtual_ip)
logger.debug("selected haproxy_hosts: %r", context["haproxy_hosts"])
return self.mgr.template.render('services/nfs/ganesha.conf.j2', context)
virtual_ip_for_ganesha: Optional[str] = None
keepalive_only: bool = False
enable_haproxy_protocol: bool = False
+ if ingress_mode != IngressType.haproxy_standard:
+ virtual_ip_for_ganesha = virtual_ip.split('/')[0]
if ingress_mode == IngressType.haproxy_protocol:
enable_haproxy_protocol = True
elif ingress_mode == IngressType.keepalive_only:
keepalive_only = True
- virtual_ip_for_ganesha = virtual_ip.split('/')[0]
ganesha_port = port
frontend_port = None