keepalived systemd service file has multiple problems 1) Missing reload option Reloading keepalived is useful in cases where you want to remove a VRRP IP, or add a new VRRP IP without removing existing IPs. This should be added to keepalived.service: ExecReload=/bin/kill -1 $MAINPID 2) Stop does not always remove VRRP IPs By default, keepalived running in VRRP mode starts 2 processes. When systemd uses its default stop method (cgroup), it kills both of these processes, and this does not allow keepalived to perform any required cleanup (such as removing VRRP IPs). On stop, only the main process should receive a kill signal This should be added to keepalived.service: KillMode=process Version-Release number of selected component (if applicable): keepalived-1.2.2-3.fc16
(In reply to comment #0) > keepalived systemd service file has multiple problems > > 1) Missing reload option > Reloading keepalived is useful in cases where you want to remove > a VRRP IP, or add a new VRRP IP without removing existing IPs. > > This should be added to keepalived.service: > > ExecReload=/bin/kill -1 $MAINPID > > 2) Stop does not always remove VRRP IPs > By default, keepalived running in VRRP mode starts 2 processes. > When systemd uses its default stop method (cgroup), it kills > both of these processes, and this does not allow keepalived to > perform any required cleanup (such as removing VRRP IPs). On stop, > only the main process should receive a kill signal > > This should be added to keepalived.service: > > KillMode=process > > > Version-Release number of selected component (if applicable): > keepalived-1.2.2-3.fc16 Thanks for the suggestions. I was able to recreate the problem with virtual IP addresses not being removed after a 'systemctl stop keepalived.service'. The missing reload should also be addressed. I'll add both of these to the service file and do some testing.
Fixed in rawhide.
keepalived-1.2.7-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/keepalived-1.2.7-1.fc17
keepalived-1.2.7-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/keepalived-1.2.7-1.fc18
keepalived-1.2.7-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
keepalived-1.2.7-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.