On 3/25/22 23:57, Vincent Bernat wrote:
  ❦ 25 March 2022 11:48 +01, Arturo Borrero Gonzalez:

I honestly don't know how this relates to the execution error itself.
Do you think the address assignment fails because some misconfigured
netmask?

Usually, on Linux, VIP are using /32 to avoid issues with source address
selection. Notably, when contacting a peer, the VIP could be selected
when using a /29, while this is not possible when using a /32.

I just tested your theory, used this in the config:

  virtual_ipaddress {
    185.15.57.9/32 dev eno2.2107
    208.80.153.190/32 dev eno2.2120
  }

Downgraded to the Bullseye version, but keepalived fails with the same error:

aborrero@cloudgw2001-dev:~ $ sudo /usr/sbin/keepalived -lD --dont-fork
Tue Apr  5 08:14:32 2022: Starting Keepalived v2.1.5 (07/13,2020)
Tue Apr 5 08:14:32 2022: WARNING - keepalived was build for newer Linux 5.10.70, running on Linux 5.10.0-12-amd64 #1 SMP Debian 5.10.103-1 (2022-03-07) Tue Apr 5 08:14:32 2022: Command line: '/usr/sbin/keepalived' '-lD' '--dont-fork'
Tue Apr  5 08:14:32 2022: Opening file '/etc/keepalived/keepalived.conf'.
Tue Apr 5 08:14:32 2022: NOTICE: setting config option max_auto_priority should result in better keepalived performance
Tue Apr  5 08:14:32 2022: Starting VRRP child process, pid=1571242
Tue Apr  5 08:14:32 2022: Registering Kernel netlink reflector
Tue Apr  5 08:14:32 2022: Registering Kernel netlink command channel
Tue Apr  5 08:14:32 2022: Opening file '/etc/keepalived/keepalived.conf'.
Tue Apr 5 08:14:32 2022: (/etc/keepalived/keepalived.conf: Line 25) Warning - cannot track route 185.15.57.0/29 with no interface specified, not tracking Tue Apr 5 08:14:32 2022: (/etc/keepalived/keepalived.conf: Line 26) Warning - cannot track route 172.16.128.0/24 with no interface specified, not tracking Tue Apr 5 08:14:32 2022: Assigned address 208.80.153.188 for interface eno2.2120 Tue Apr 5 08:14:32 2022: Assigned address fe80::32e1:71ff:fe60:e97d for interface eno2.2120
Tue Apr  5 08:14:32 2022: Registering gratuitous ARP shared channel
Tue Apr  5 08:14:32 2022: (VRRP1) removing Virtual Routes
Tue Apr  5 08:14:32 2022: (VRRP1) removing VIPs.
Tue Apr 5 08:14:32 2022: bind unicast_src 208.80.153.188 failed 99 - Cannot assign requested address Tue Apr 5 08:14:32 2022: (VRRP1): entering FAULT state (src address not configured)
Tue Apr  5 08:14:32 2022: (VRRP1) Entering FAULT STATE
Tue Apr  5 08:14:32 2022: (VRRP1) removing Virtual Routes
Tue Apr 5 08:14:32 2022: VRRP sockpool: [ifindex( 8), family(IPv4), proto(112), fd(-1,-1), unicast, address(208.80.153.188)]
^CTue Apr  5 08:14:36 2022: Stopping
Tue Apr 5 08:14:37 2022: Stopped - used 0.001718 user time, 0.000000 system time Tue Apr 5 08:14:37 2022: CPU usage (self/children) user: 0.006457/0.003166 system: 0.006457/0.000000
Tue Apr  5 08:14:37 2022: Stopped Keepalived v2.1.5 (07/13,2020)

Reply via email to