Page MenuHomeVyOS Platform

Ability to disable SNMP for VRRP keepalived service
Closed, ResolvedPublicBUG

Description

Ability to disable SNMP for keepalived.service or disable it by default if not configured snmp/enable-snmp option
In some cases, keepalived with enabled SNMP could be a cause of a bug and generates a lot of logs like:

Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: scheduler: No read thread bound on fd:16 (fl:0x0001)
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: message repeated 53 times: [ scheduler: No read thread bound on fd:16 (fl:0x0001)]
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: scheduler: No read thread bound on fd:16 (fl:0x0001)
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: message repeated 168 times: [ scheduler: No read thread bound on fd:16 (fl:0x0001)]
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: scheduler: No read thread bound on fd:16 (fl:0x0001)
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: message repeated 6213 times: [ scheduler: No read thread bound on fd:16 (fl:0x0001)]
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: NET-SNMP version 5.7.3 AgentX subagent connected
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: AgentX master disconnected us, reconnecting in 15
Mar 28 10:14:39 ht-int-gw01 Keepalived_vrrp[27844]: scheduler: No read thread bound on fd:16 (fl:0x0001)
Mar 28 10:14:50 ht-int-gw01 Keepalived_vrrp[27844]: message repeated 400246 times: [ scheduler: No read thread bound on fd:16 (fl:0x0001)]

Only one option to fix it

sudo nano -c +11 /usr/lib/systemd/system/keepalived.service

And replace string:

ExecStart=/usr/sbin/keepalived --use-file /run/keepalived/keepalived.conf --pid /run/keepalived/keepalived.pid --dont-fork --snmp

to string:

ExecStart=/usr/sbin/keepalived --use-file /run/keepalived/keepalived.conf --pid /run/keepalived/keepalived.pid --dont-fork

Mentions in the code:
disable/delete --snmp option
1.4 - https://github.com/vyos/vyos-1x/blob/f67614c66d6570c06be199ffffe439a589a06d4b/src/etc/systemd/system/keepalived.service.d/override.conf#L13
1.3 - https://github.com/vyos/vyos-1x/blob/616bdb5299bf8252dfdab26f21a4b356cff6724e/src/systemd/keepalived.service#L11

Details

Version
1.3.3
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

Viacheslav changed the task status from Open to In progress.Sep 4 2023, 4:13 PM
Viacheslav claimed this task.