iqiyi / dpvs

DPVS is a high performance Layer-4 load balancer based on DPDK.
Other
3.03k stars 728 forks source link

Bug: keepalived cannot remove local IP from inet address list when restart. #700

Closed ywc689 closed 3 years ago

ywc689 commented 3 years ago

Keepalived cannot remove local IP from inet address list when restart. Local IP can be removed successfully when reload.

How to reproduce the bug?

  1. add some local IPs to keepalived.conf.
local_address_group laddr_g1 {
    192.168.1.1 bond0
    192.168.1.2 bond0
}
  1. start keepalived
  2. remove 192.168.1.1 from keepalived.conf
  3. restart keepalived
  4. check with dpip addr show -s, and IP address 192.168.1.1 still exists.

If use reload instead of restart in step 4, everything is OK.

ywc689 commented 3 years ago

Fix by pr #718