-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[SONiC] FRR did not completely read/load frr.conf and missed generating bgpd.log #13773
Comments
I suspect this issue is related this code, it doesn't check the errno when fgets done. It could hit some error during fgets. It should check errno, then it could try reopen the config file or drop an error msg. /* Configuration make from file. */
|
Please check to see if this issue is seen in latest master. 7.5.1 is 2+ years old at this point in time and no-one is going to look at this |
hi @donaldsharp, I checked the code in master branch, it doesn't change, when read from frr.conf by vtysh -b, it assumes NULL is eof by default, but actually it could be an error for either hardware issue or corrupted content of frr.conf, when fgets return NULL. In current code, it could be silent failure and leave user no chance to capture and save it in first place. I'm working on a PR to enhance this. while (fgets(vty->buf, VTY_BUFSIZ, fp)) { |
This issue is stale because it has been open 180 days with no activity. Comment or remove the |
This issue will be automatically closed in the specified period unless there is further activity. |
Describe the bug
FRR version: 7.5.1-sonic
Operating system: SONiC 202012
Kernel: 4.19.0-12-2-amd64
FRR missed parts of config that was present in
frr.conf
fileAdditionally, bgpd.log was not generated due to loading partial config.
Below is an example of config. When the issue happens FRR missed to load config contents after
router bgp 4200065100
.That means, router-id config, graceful-restart config and announcing Loopback0 and Vlan routes was missed.
This caused production issue for SONiC.
Similar issues that I could find, but unsure if this is the same issue:
#12343
#12049
Common symptom from above issue: Config was missed.
Uncommon symptom: bgpd.log was also missed due to partial read of config.
To Reproduce
It is difficult to repro the issue.
However, when we laoded partial config we could repro the issue of missing bgpd.log.
Expected behavior
FRR should load / read all of config fully.
FRR should always generate bgpd.log.
Screenshots
Versions
Additional context
The text was updated successfully, but these errors were encountered: