Re: [CTDB] function ctdb_sys_have_ip() always returns true ifNONLOCAL BINDING is turned on

zhangzujian.7 zhangzujian.7 at gmail.com
Mon Jun 26 04:09:05 UTC 2017


Thanks for reply.

The option is required to bind non-existing IP address while using HAProxy+Keepalived.

Sent from YoMail for Gmail

< Martin Schwenke> 在 2017-06-26 12:00:31 写道: 
On Mon, 26 Jun 2017 11:39:09 +0800, "zhangzujian.7 via samba-technical"
<samba-technical at lists.samba.org> wrote:

> I found that function ctdb_sys_have_ip() in *common/system_common.c*
> always returns true if nonlocal binding is turned on (sysctl -w
> net.ipv4.ip_nonlocal_bind=1).

Yes, we know that you can't use net.ipv4.ip_nonlocal_bind=1 with CTDB's
public IP addresses. We created the configuration variable
CTDB_NODE_ADDRESS for a user who was using CTDB and haproxy on the same
cluster. They weren't planning to use CTDB's public addresses.

> I suggest that the function should be implemented with a better
> method.

It probably should. However, most of the code for handling public IP
addresses will probably be rewritten in the next 12 months, so this
problem will go away.

Why do you need to use net.ipv4.ip_nonlocal_bind=1 ?

Thanks...

peace & happiness,
martin


More information about the samba-technical mailing list