Repository navigation
virtual router: Collect the FRR log and a masked frr.conf in router diagnostics - #14884
Open
MitchDrage wants to merge 2 commits into
Open
MitchDrage wants to merge 2 commits into
MitchDrage wants to merge 2 commits into
Conversation
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Router diagnostics collect no FRR files today, so a BGP problem on a virtual router needs a shell on the router to investigate. This PR adds the FRR log and a copy of
frr.confwith the peer passwords masked to the default router file list.CsBgpPeerswrites/var/cache/cloud/frr.conf.maskedeach time it rendersfrr.conf. Every neighbour password in the copy reads****. The plainfrr.confstays on the router.frr.confnow haslog syslog informational, so the router's own FRR daemons write tofrr.log. Before this, only watchfrr wrote there.diagnostics.data.router.defaultsgains/var/log/frr/frr.logand/var/cache/cloud/frr.conf.masked. The upgrade appends both to the existing value.This was split from #14841, where the review of which FRR files to collect took place. It touches
CsBgpPeers.py, as do #14841 and #14869, so it will need a rebase after those merge.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Screenshots (if appropriate):
N/A
How Has This Been Tested?
TestCsBgpPeersandDiagnosticsFilesListFactoryTest, and a smoke test,test_14_diagnostics_frr_filesintest_ipv4_routing.py, which checks the zip fromgetDiagnosticsData.frr.conf.frr.logreceived the router's own bgpd and zebra lines.getDiagnosticsDatawith the default file list returned a zip holdingfrr.logandfrr.conf.masked, with no password in either.How did you try to break this feature and the system with this change?
/etc/frr/frr.conf.