[Linux-HA] IPaddr2 unique_clone_address

Vadym Chepkov vchepkov at gmail.com
Sat Jun 12 21:38:19 MDT 2010


Hi,

I think there is a bug in IPaddr2 RA.
If parameter unique_clone_address set to "true" and meta globally-unique="true", there is no reason to install any iptables rules, since each node will have it's own unique IP.  for example:

primitive ip ocf:heartbeat:IPaddr2 \
	params nic="eth0" ip="10.10.10.22" cidr_netmask="32" unique_clone_address="true"

clone ips ip \
	meta globally-unique="true"

# ip addr show
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:16:36:b7:43:e4 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.19/24 brd 10.10.10.255 scope global eth0
    inet 10.10.10.23/32 brd 10.10.10.23 scope global eth0

# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
CLUSTERIP  all  --  anywhere             10.10.10.23     CLUSTERIP hashmode=sourceip-sourceport clustermac=79:A4:08:46:5D:6B total_nodes=3 local_node=2 hash_init=0

As a result only one out of 3 virtual IPs is available, not something I was expecting.

Thanks,
Vadym


More information about the Linux-HA mailing list