-
Notifications
You must be signed in to change notification settings - Fork 1.3k
SNMP trigger fails on peer state going to Established first time #5963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
joshdcox
pushed a commit
to pureport/frr
that referenced
this issue
Mar 19, 2020
It was previously comparing an fsm event variable with an fsm status constant. This fixes issue FRRouting#5963. Signed-off-by: Josh Cox <[email protected]>
donaldsharp
added a commit
to donaldsharp/frr
that referenced
this issue
Mar 20, 2020
In PR FRRouting#6052 which fixes issue FRRouting#5963 the bgp fsm events were confused with the bgp fsm status leading to a bug. Let's start separating those out so these types of failures cannot just easily occur. Signed-off-by: Donald Sharp <[email protected]>
joshdcox
pushed a commit
to pureport/frr
that referenced
this issue
Mar 20, 2020
It was previously comparing an fsm event variable with an fsm status constant. This fixes issue FRRouting#5963. Signed-off-by: Josh Cox <[email protected]>
donaldsharp
added a commit
to donaldsharp/frr
that referenced
this issue
Mar 20, 2020
In PR FRRouting#6052 which fixes issue FRRouting#5963 the bgp fsm events were confused with the bgp fsm status leading to a bug. Let's start separating those out so these types of failures cannot just easily occur. Signed-off-by: Donald Sharp <[email protected]>
gpziemba
pushed a commit
to LabNConsulting/frr
that referenced
this issue
Apr 27, 2020
It was previously comparing an fsm event variable with an fsm status constant. This fixes issue FRRouting#5963. Signed-off-by: Josh Cox <[email protected]>
gpziemba
pushed a commit
to LabNConsulting/frr
that referenced
this issue
Apr 27, 2020
In PR FRRouting#6052 which fixes issue FRRouting#5963 the bgp fsm events were confused with the bgp fsm status leading to a bug. Let's start separating those out so these types of failures cannot just easily occur. Signed-off-by: Donald Sharp <[email protected]>
I think this can be closed. It is fixed by #6052. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In 6.0.3, with SNMP enabled for zebra and bgpd, establishing a connection with a peer would trigger an SNMP event and our trap-handler script would insert some routes. When the peer connection was no longer Established, an SNMP trigger would fire and the trap-handler script would remove the routes.
In 7.3, the SNMP trigger for bgpEstablished does not always get fired, therefore our trap-handler script does not get called and the routes are not inserted like they were in 6.0.3. The SNMP trigger for bgpBackwardTransition does not always seemed to get fired either like it did in 6.0.3. I think something changed with the logic around peer state "transition", but not sure. The problem might have surfaced around commit 7d8d0ea.
From the peer (also FRR 7.3), I can do "service frr restart", I will see a log message from the trap-handler script that shows only an Established connection, but not one for the connection going away. From the peer, I do "service frr stop; sleep 5; service frr start", I will only see a message saying that the connection has gone away and not one saying the re-established connection was Established. Doing either of these commands would trigger both the bgpEstablished and bgpBackwardTransition notifications in 6.0.3 and show in the logs of the trap-handler script.
[x] Did you check if this is a duplicate issue?
[ ] Did you test it on the latest FRRouting/frr master branch?
Steps to reproduce the behavior:
Expected behavior
The behavior has changed from 6.0.3 to 7.3. I don't think this was an intentional change, but there should get a trigger every time a connection is Established with bgpEstablished MIB (.1.3.6.1.2.1.15.0.1) or the connection state goes backwards with bgpBackwardTransition MIB (.1.3.6.1.2.1.15.0.2)
Versions
Additional context
MIBs were obtained with the snmp-mibs-downloader ubuntu package.
/etc/frr/daemons:
/etc/snmp/snmptrapd.conf:
/etc/snmp/traphandler.sh"
The text was updated successfully, but these errors were encountered: