Public bug reported: The launch script for ipvsadm has a bug that prevents LVS from start in synchronization mode.
How to reproduce. 1. Install ipvsadm on ubuntu server 16.04 and modify /etc/default/ipvsadm to lauch LVS in master mode (or backup): AUTO="true" DAEMON="master" IFACE="eno1" SYNCID="0" 2. Start "ipvsadm" service and check systemd unit log: # systemctl start ipvsadm # journalctl -u ipvsadm What you expected to happen The log output without error: May 22 12:41:46 xxxxxxxxxxx systemd[1]: Starting LSB: ipvsadm daemon... May 22 12:41:46 xxxxxxxxxxx ipvsadm[4619]: * Clearing the current IPVS table... May 22 12:41:46 xxxxxxxxxxx ipvsadm[4619]: ...done. May 22 12:41:46 xxxxxxxxxxx ipvsadm[4619]: * Loading IPVS configuration... May 22 12:41:46 xxxxxxxxxxx ipvsadm[4619]: ...done. May 22 12:41:46 xxxxxxxxxxx ipvsadm[4619]: * Starting IPVS Connection Synchronization Daemon master May 22 12:41:46 xxxxxxxxxxx ipvsadm[4619]: ...done. May 22 12:41:46 xxxxxxxxxxx systemd[1]: Started LSB: ipvsadm daemon. What happened instead: May 22 12:32:59 xxxxxxx systemd[1]: Starting LSB: ipvsadm daemon... May 22 12:32:59 xxxxxxx ipvsadm[15743]: * Clearing the current IPVS table... May 22 12:32:59 xxxxxxx ipvsadm[15743]: ...done. May 22 12:32:59 xxxxxxx ipvsadm[15743]: * Loading IPVS configuration... May 22 12:32:59 xxxxxxx ipvsadm[15743]: ...done. May 22 12:32:59 xxxxxxx ipvsadm[15743]: * Starting IPVS Connection Synchronization Daemon master May 22 12:32:59 xxxxxxx ipvsadm[15743]: Try `/sbin/ipvsadm -h' or '/sbin/ipvsadm --help' for more information. May 22 12:32:59 xxxxxxx ipvsadm[15743]: ...fail! May 22 12:32:59 xxxxxxx ipvsadm[15743]: ...done. May 22 12:32:59 xxxxxxx systemd[1]: Started LSB: ipvsadm daemon. As you can see in log output, there is an message: "Try `/sbin/ipvsadm -h' or '/sbin/ipvsadm --help' for more information". This message relates to bug in script /etc/init.d/ipvsadm. Here a difference how script should be updated to get it work: --- /etc/init.d/ipvsadm 2019-05-22 12:41:34.429916226 +0000 +++ /root/ipvsadm 2019-05-22 11:18:04.307344255 +0000 @@ -29,16 +29,16 @@ case $DAEMON in master|backup) log_daemon_msg "Starting IPVS Connection Synchronization Daemon" "$DAEMON" - $IPVSADM --start-daemon $DAEMON --mcast-interface \ + $IPVSADM --syncid $SYNCID --start-daemon $DAEMON --mcast-interface \ $IFACE --syncid $SYNCID || log_end_msg 1 log_end_msg 0 ;; both) log_daemon_msg "Starting IPVS Connection Synchronization Daemon" "master" - $IPVSADM --start-daemon master --mcast-interface \ + $IPVSADM --syncid $SYNCID --start-daemon master --mcast-interface \ $IFACE --syncid $SYNCID || FAILURE=1 log_progress_msg "backup" - $IPVSADM --start-daemon backup --mcast-interface \ + $IPVSADM --syncid $SYNCID --start-daemon backup --mcast-interface \ $IFACE --syncid $SYNCID || FAILURE=1 if [ "$FAILURE" -eq 1 ] then /root/ipvsadm - this is an original script from ipvsadm package # lsb_release -rd Description: Ubuntu 16.04.6 LTS Release: 16.04 # apt-cache policy ipvsadm ipvsadm: Installed: 1:1.28-3 Candidate: 1:1.28-3 Version table: *** 1:1.28-3 500 500 http://nl.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status ** Affects: ipvsadm (Ubuntu) Importance: Undecided Status: New ** Tags: ipvs ipvsadm lvs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1830033 Title: Connection synchronization daemon fails at start due to a bug in launch script To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ipvsadm/+bug/1830033/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs