Bug #14491
openFRR not starting with AgentX enabled
0%
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..
Related issues
Updated by Yif Swery over 1 year ago
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
Updated by Danilo Zrenjanin over 1 year ago
- 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
Updated by Jim Pingle over 1 year ago
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.
Updated by Yif Swery over 1 year ago
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.
Updated by Jim Pingle over 1 year ago
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/
.
Updated by Yif Swery 12 months ago
I see this issue is now assigned, just for reference here are some probably heavily related tickets:
https://github.com/FRRouting/frr/issues/14875
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275252
https://github.com/opnsense/ports/issues/179
https://redmine.pfsense.org/issues/14491#change-68711
All ultimately say "upstream fault" and the FRR guys claim that its user issue with lacking libs :(
I really hope someone will be able to see what has been missing in the FRR package/setup to enable snmp/agentx support
Updated by Christian McDonald 12 months ago
- Target version set to 2.7.2
- Plus Target Version set to 23.09.1
Updated by Jim Pingle 12 months ago
- Target version deleted (
2.7.2) - Plus Target Version deleted (
23.09.1)
Updated by Mike Moore 12 months ago
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?
Updated by Jim Pingle 12 months ago
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.
Updated by Jim Pingle 4 months ago
- Has duplicate Bug #15620: NET-SNMP & FRR with AgentX is not starting with library errors. added