-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[bgpmon] bgpmon error flooding in syslog #5858
Comments
do you have details? |
Yes, updated, just fat-fingered to create before filling the details. |
is this catch by log analyzer? or a specific test for bgpmon? |
Yes, it is caught by log analyzer in my debugging of pfcwd for master branch. |
@gechiang , have you added the bgpmon test? if not, please add then we won't have such regression. |
@lguohan, I have a quick fix for this, would you mind taking a look? |
@lolyu Did someone manually edited bgpmon.py in this DUT?
Also, I compared the code in the repository and the one that got modified in this DUT and found that there are two line of code that got changed by someone... Here is the original method:
But this what I see now in the DUT:
Line 71 and 72 is where the code got changed... Can you recall what actually happened that may have somehow caused the code get modified?? or you were manually changing this in attempt to fix some other issue? |
@lolyu |
@lguohan This should have been caught by vs image test as part of the bgp_fact testcase. |
@gechiang , can you investigate why bgp_fact missed this? how can we improve that? |
No problem, my bad not to reset my change on that DUT. |
keep this issue for missing test cases. |
@lguohan I tried to check the VsImage testlog for the PR that introduced this issue (#5746) but unfortunately those results were no longer available. But with the fix that @lolyu made (#5859) I was able to view the test result and it looks like it is due to the vsimage is still built and tested using python2.7 instead of the python3...
This means we need to change vsimage build to also start using python3 instead of python2 in order to catch issues similar to this... |
@lguohan As for the unit test test cases for bgpmon it is on my todo list. Let's keep this PR as a reminder for the missing testcases that I will raise a different PR in the near future to enhance test coverage. |
@gechiang , i think you need to talk to arvind why your testing code change is removed. sonic-net/sonic-mgmt@4703756#diff-23e2943a406c883e83d4105aa7fa57eb5f86a590a9f36125872ed375332a729d and someone either you or arvind needs to add it back. |
test fix sonic-net/sonic-mgmt#2490 |
Description
bgpmon
floods syslog with error messages like below:Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
bgpmon
fails to populate neighbors info in state DB:Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: