Bug #14491
open
FRR not starting with AgentX enabled
Added by beermount beermount over 1 year ago.
Updated 12 months ago.
Affected Architecture:
amd64
Description
After upgrading to pfSense 2.7.0 Beta, FRR wont't start with AgentX enabled in the configuration.
Syslog
Jun 18 16:49:49 root 85099 /usr/local/etc/rc.d/frr: WARNING: failed to start ospfd
Jun 18 16:49:49 root 79090 /usr/local/etc/rc.d/frr: WARNING: failed to start zebra
Output from interactively trying to start frr.
/usr/local/etc/rc.d/frr.sh start
Performing intergrated config test
Starting FRR Checking intergrated config...
Checking vtysh.conf OK
Starting zebra.
loading module "snmp" failed: Shared object "snmp" not found, required by "zebra" /usr/local/etc/rc.d/frr: WARNING: failed to start zebra
Starting staticd.
Starting ospfd.
loading module "snmp" failed: Shared object "snmp" not found, required by "ospfd" /usr/local/etc/rc.d/frr: WARNING: failed to start ospfd
Booting for integrated-vtysh-config..
We can confirm this also on our 2.7 Upgrade which broke FRR from starting (although I think its somthing to do with the new FRR package though instead of pfsense core itself)
[2.7.0-RELEASE][root@pfsense]/root: /usr/local/sbin/zebra -d -M snmp
loading module "snmp" failed: Shared object "snmp" not found, required by "zebra"
Even though we have the modules on the machine
[2.7.0-RELEASE][root@pfsense]/root: pkg info -l frr7 | grep snmp
/usr/local/lib/frr/modules/bgpd_snmp.so
/usr/local/lib/frr/modules/ospf6d_snmp.so
/usr/local/lib/frr/modules/ospfd_snmp.so
/usr/local/lib/frr/modules/ripd_snmp.so
/usr/local/lib/frr/modules/zebra_snmp.so
/usr/local/lib/libfrrsnmp.a
/usr/local/lib/libfrrsnmp.so
/usr/local/lib/libfrrsnmp.so.0
/usr/local/lib/libfrrsnmp.so.0.0.0
- Status changed from New to Confirmed
I can confirm this behavior.
Tested against:
23.05.1-RELEASE (amd64)
built on Wed Jun 28 03:57:27 UTC 2023
FreeBSD 14.0-CURRENT
frr 1.2_3
Jul 26 10:12:47 root 38186 /usr/local/etc/rc.d/frr: WARNING: failed to start zebra
Jul 26 10:12:48 root 47201 /usr/local/etc/rc.d/frr: WARNING: failed to start zebra
For those hitting this error, do you have the NET-SNMP package installed and active?
The AgentX integration is intended for use with that package and wouldn't work without it.
If it works with NET-SNMP installed then FRR should just detect that case and not try to use it when it's not there.
If it doesn't work even when NET-SNMP is installed, then the AgentX integration is broken somehow and should maybe be removed if it can't be repaired.
Jim Pingle wrote in #note-3:
For those hitting this error, do you have the NET-SNMP package installed and active?
The AgentX integration is intended for use with that package and wouldn't work without it.
If it works with NET-SNMP installed then FRR should just detect that case and not try to use it when it's not there.
If it doesn't work even when NET-SNMP is installed, then the AgentX integration is broken somehow and should maybe be removed if it can't be repaired.
For us when we upgraded from 2.60 to 2.7 we did in fact have `net-snmp` packages installed before and after the upgrade (and continued to work fine too for us) while having the above described failure.
We did not try a fresh 2.70 install, so cant not comment on this.
The FRR package is built with SNMP support but it doesn't appear to be loading the module somehow.
The vtysh CLI lists "agentx" as a valid command but trying to enter it in vtysh results in an error saying it is an unknown command. Searching on that error says that the daemons aren't loading the module, however, I tried a few different ways to load the module (e.g. zebra -d -M snmp
) but none succeeded. They all produce an error saying the module cannot be found, even when the relevant .so
files are in place in /usr/local/lib/frr/modules/
.
- Assignee set to Christian McDonald
- Target version set to 2.7.2
- Plus Target Version set to 23.09.1
- Target version deleted (
2.7.2)
- Plus Target Version deleted (
23.09.1)
Found a use case for AgentX and ran into the frr start.
Jim - i see the target versions have been deleted. Does that mean this wont be investigated?
Mike Moore wrote in #note-10:
Found a use case for AgentX and ran into the frr start.
Jim - i see the target versions have been deleted. Does that mean this wont be investigated?
It's a package, it doesn't need to be tied to a release.
- Has duplicate Bug #15620: NET-SNMP & FRR with AgentX is not starting with library errors. added
Also available in: Atom
PDF