Linode Forum
https://forum.linode.com/

Keepalived v1.2.13
https://forum.linode.com/viewtopic.php?f=19&t=12326
Page 1 of 1

Author:  lennon [ Thu Oct 15, 2015 10:51 am ]
Post subject:  Keepalived v1.2.13

Hi!

I'm trying to build an IP failover service for our servers, but I cannot set up keepalived. I'm using version 1.2.13 (on ubuntu 14.04) from ppa:keepalived/stable. My current config is structured like this (it is generated for every host automatically with ansible):

Code:
vrrp_instance VI_1 {
  state {{ keepalived_state }}
  interface {{ keepalived_interface }}
  virtual_router_id {{ keepalived_router }}
  priority {{ keepalived_priority }}
  nopreemt
  advert_int {{ keepalived_advert_interval }}
  authentication {
    auth_type PASS
    auth_pass {{ keepalived_pass }}
  }
  unicast_src_ip {{ ip }}
  unicast_peer {
    {% for host in groups.proxies %}
    {% if hostvars[host].ip != ip %}{{ hostvars[host].ip }}{% endif %}
    {% endfor %}
  }
  virtual_ipaddress {
    {{ keepalived_ip }}
  }
}



If i try to start the keepalived service, it enters into an infinite loop, repeating this:

Code:
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14786]: Initializing ipvs 2.6
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14786]: IPVS: Can't initialize ipvs: Protocol not available
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Healthcheck child process(14786) died: Respawning
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Starting Healthcheck child process, pid=14790
Oct 14 14:40:57 sophie-dee modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14790]: Initializing ipvs 2.6
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14790]: IPVS: Can't initialize ipvs: Protocol not available
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Healthcheck child process(14790) died: Respawning
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Starting Healthcheck child process, pid=14794
Oct 14 14:40:57 sophie-dee modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14794]: Initializing ipvs 2.6
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14794]: IPVS: Can't initialize ipvs: Protocol not available
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Healthcheck child process(14794) died: Respawning
Oct 15 14:29:25 sophie-dee Keepalived[28774]: Starting Healthcheck child process, pid=14798
Oct 14 14:40:57 sophie-dee modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'
Oct 15 14:29:25 sophie-dee Keepalived_healthcheckers[14798]: Initializing ipvs 2.6


It seems that the ip_vs module is not loaded (the loop is caused by this bug): lsmod | grep ip_vs shows nothing, modprobe ip_vs errors with this:

Code:
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/4.1.5-x86_64-linode61/modules.dep.bin'


I've tried this:

Code:
$ sudo -s
# cd /lib/modules/`uname -r`
# depmod


but it does not resolves the issue... Any ideas?

Author:  Vance [ Tue Oct 20, 2015 1:22 am ]
Post subject:  Re: Keepalived v1.2.13

Looks like this is not built into the standard Linode kernel:
Code:
# zgrep IP_VS /proc/config.gz
# CONFIG_IP_VS is not set


I would suggest running a distribution-supplied kernel and loading the necessary module.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/