[Bug 1800159] Re: keepalived ip_vs
** Bug watch added: Debian Bug tracker #888747 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888747 ** Also affects: keepalived (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888747 Importance: Unknown Status: Unknown ** Summary changed: - keepalived ip_vs + keepalived does not autoload the ip_vs kernel module when it is required ** Changed in: keepalived (Ubuntu) Status: New => Triaged ** Changed in: keepalived (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived does not autoload the ip_vs kernel module when it is required To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800159] Re: keepalived ip_vs
** Changed in: keepalived (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800159] Re: keepalived ip_vs
global_defs { notification_email { r...@domain.tld } notification_email_from r...@hosteurope.de smtp_server 127.0.0.1 smtp_connect_timeout 15 router_id lb2.domain.tld } vrrp_instance VRRP_SERVICE { virtual_router_id 24 interface uplink0 state BACKUP priority 200 nopreempt garp_master_delay 5 advert_int 3 authentication { auth_type AH auth_pass secret } notify "/usr/local/bin/script" notify_stop "/usr/local/bin/script backup" virtual_ipaddress { 10.1.2.3 } } virtual_server 10.1.2.3 4119 { delay_loop 10 lb_algo wlc lb_kind DR protocol TCP persistence_timeout 1440 real_server 10.80.22.54 4119 { weight 10 TCP_CHECK { connect_port 4119 connect_timeout 3 } } real_server 10.80.22.53 4119 { weight 10 TCP_CHECK { connect_port 4119 connect_timeout 3 } } } virtual_server 10.1.2.3 4120 { delay_loop 10 lb_algo wlc lb_kind DR protocol TCP persistence_timeout 1440 real_server 10.80.22.54 4120 { weight 10 TCP_CHECK { connect_port 4120 connect_timeout 3 } } real_server 10.80.22.53 4120 { weight 10 TCP_CHECK { connect_port 4120 connect_timeout 3 } } } virtual_server 10.1.2.3 4122 { delay_loop 10 lb_algo wlc lb_kind DR protocol TCP persistence_timeout 1440 real_server 10.80.22.54 4122 { weight 10 TCP_CHECK { connect_port 4122 connect_timeout 3 } } real_server 10.80.22.53 4122 { weight 10 TCP_CHECK { connect_port 4122 connect_timeout 3 } } } -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800159] Re: keepalived ip_vs
Can you share your config /etc/keepalived/keepalived.conf ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800159] Re: keepalived ip_vs
Can you share your config /etc/keepalived/keepalived.conf ? -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to keepalived in Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1800159] Re: keepalived ip_vs
@pqa It's not running in a container we want stable software -- @kstenerud # dmsg ... [Fri Nov 16 10:45:58 2018] nf_conntrack version 0.5.0 (65536 buckets, 262144 max) [Fri Nov 16 10:45:58 2018] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP) [Fri Nov 16 10:45:58 2018] IPVS: Connection hash table configured (size=4096, memory=64Kbytes) [Fri Nov 16 10:45:58 2018] IPVS: ipvs loaded. # systemctl status keepalived.service ● keepalived.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/lib/systemd/system/keepalived.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2018-11-16 10:45:54 CET; 1min 13s ago Process: 1751 ExecStart=/usr/sbin/keepalived $DAEMON_ARGS (code=exited, status=0/SUCCESS) Main PID: 1832 (keepalived) CGroup: /system.slice/keepalived.service ├─1832 /usr/sbin/keepalived -d ├─1833 /usr/sbin/keepalived -d └─1834 /usr/sbin/keepalived -d # lsmod | grep ip_ ip_vs 151552 0 nf_conntrack 131072 1 ip_vs libcrc32c 16384 3 nf_conntrack,xfs,ip_vs # systemctl stop keepalived.service # lsmod | grep ip_ ip_vs 151552 0 nf_conntrack 131072 1 ip_vs libcrc32c 16384 3 nf_conntrack,xfs,ip_vs # modprobe -r ip_vs # lsmod | grep ip ipmi_ssif 32768 0 ipmi_si57344 0 ipmi_devintf 20480 0 ipmi_msghandler53248 3 ipmi_devintf,ipmi_si,ipmi_ssif # modprobe ip_vs # lsmod | grep ip ip_vs 151552 0 nf_conntrack 131072 1 ip_vs libcrc32c 16384 3 nf_conntrack,xfs,ip_vs # systemctl start keepalived.service # lsmod | grep ip_ ip_vs_wlc 16384 3 ip_vs 151552 5 ip_vs_wlc nf_conntrack 131072 1 ip_vs libcrc32c 16384 3 nf_conntrack,xfs,ip_vs So the problem is "ip_vs_wlc" if this module isn't loading # ipvsadm -Ln IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn with the module # ipvsadm -Ln IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP 10.10.10.10:1234 wlc persistent 1440 -> 10.1.1.2:1234 Route 10 0 0 -> 10.1.1.3:1234 Route 10 0 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800159] Re: keepalived ip_vs
Hi Thorsten, I tried installing keepalived on a fresh xenial VM, and all seems to be working: karl@tp-work:~$ uvt-kvm create x release=xenial arch=amd64 label=daily karl@tp-work:~$ uvt-kvm wait x karl@tp-work:~$ uvt-kvm ssh x ubuntu@x:~$ sudo apt update && sudo apt dist-upgrade -y && sudo apt install -y keepalived ubuntu@x:~$ echo "global_defs { notification_email { ad...@example.com } notification_email_from nore...@example.com smtp_server 127.0.0.1 smtp_connect_timeout 60 }" | sudo tee /etc/keepalived/keepalived.conf >/dev/null ubuntu@x:~$ sudo service keepalived start ubuntu@x:~$ sudo service keepalived status ● keepalived.service - Keepalive Daemon (LVS and VRRP) Loaded: loaded (/lib/systemd/system/keepalived.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-11-14 11:35:56 UTC; 18s ago Process: 8850 ExecStart=/usr/sbin/keepalived $DAEMON_ARGS (code=exited, status=0/SUCCESS) Main PID: 8854 (keepalived) Tasks: 3 Memory: 1.7M CPU: 11ms CGroup: /system.slice/keepalived.service ├─8854 /usr/sbin/keepalived ├─8855 /usr/sbin/keepalived └─8856 /usr/sbin/keepalived Nov 14 11:35:56 x Keepalived_vrrp[8856]: Registering gratuitous ARP shared channel Nov 14 11:35:56 x Keepalived_vrrp[8856]: Unable to load ipset library Nov 14 11:35:56 x Keepalived_vrrp[8856]: Unable to initialise ipsets Nov 14 11:35:56 x Keepalived_vrrp[8856]: Opening file '/etc/keepalived/keepalived.conf'. Nov 14 11:35:56 x Keepalived_vrrp[8856]: Using LinkWatch kernel netlink reflector... Nov 14 11:35:56 x Keepalived_healthcheckers[8855]: Initializing ipvs Nov 14 11:35:56 x Keepalived_healthcheckers[8855]: Registering Kernel netlink reflector Nov 14 11:35:56 x Keepalived_healthcheckers[8855]: Registering Kernel netlink command channel Nov 14 11:35:56 x Keepalived_healthcheckers[8855]: Opening file '/etc/keepalived/keepalived.conf'. Nov 14 11:35:56 x Keepalived_healthcheckers[8855]: Using LinkWatch kernel netlink reflector... Are you running it in a container? If so, Patrick's comments will apply. ** Changed in: keepalived (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800159] Re: keepalived ip_vs
This looks as though you are running keepalived from within a container. Due to the isolation of containers, applications running within the container cannot load kernel modules. Once you manually load the module, keepalived can use the module from within the container. If keepalived is run natively within the host (i.e. not in a container) then keepalived can cause the module to be loaded. The version of keepalived you are using is very old; there is a much newer version available as a snap. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800159] Re: keepalived ip_vs
Bionic is working -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800159 Title: keepalived ip_vs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/keepalived/+bug/1800159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs