Skip to content
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

docs: BGPv2 CP documentation update #33307

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Conversation

dswaffordcw
Copy link
Contributor

@dswaffordcw dswaffordcw commented Jun 21, 2024

Please ensure your pull request adheres to the following guidelines:

  • For first time contributors, read Submitting a pull request
  • All code is covered by unit and/or runtime tests where feasible.
  • All commits contain a well written commit description including a title,
    description and a Fixes: #XXX line if the commit addresses a particular
    GitHub issue.
  • If your commit description contains a Fixes: <commit-id> tag, then
    please add the commit author[s] as reviewer[s] to this issue.
  • All commits are signed off. See the section Developer’s Certificate of Origin
  • Provide a title or release-note blurb suitable for the release notes.
  • Are you a user of Cilium? Please add yourself to the Users doc
  • Thanks for contributing!

This PR updates Cilium's documentation for the BGPv2 Control Plane. In specific, it adds a caution note for the transport section.

This update was prompted by https://cilium.slack.com/archives/C53TG4J4R/p1718753533112889. In that, I had started a thread regarding extremely slow convergence after a neighbor reset event. In my testing, I observed a 2+ minute delay before Cilium's BGP session re-established with a remote BGP speaker after issuing a hard reset of the session from the remote speaker's side.

After removing:

spec:
  transport:
    localPort: 179
    peerPort: 179

From my CiliumBGPPeerConfig, what previously took 2+ minutes was now less than 10 seconds.

Documentation update for BGPv2 transport configuration

Testing

For testing, I ran make html from the Documentation directory. Then I opened the modified HTML file from _build/. A screenshot is shown below.
Screenshot 2024-06-20 at 5 06 10 PM

@maintainer-s-little-helper
Copy link

Commit 9dd9f2f does not match "(?m)^Signed-off-by:".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Jun 21, 2024
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Jun 21, 2024
@maintainer-s-little-helper
Copy link

Commit 9dd9f2f does not match "(?m)^Signed-off-by:".

Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin

@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label Jun 21, 2024
@dswaffordcw dswaffordcw force-pushed the docs/bgpv2-transport branch 2 times, most recently from 7ba3c65 to ff8230d Compare June 21, 2024 00:27
@dswaffordcw dswaffordcw changed the title Documentation update for BGPv2 transport configuration docs: BGPv2 CP documentation update Jun 21, 2024
@lambdanis lambdanis added area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. release-note/misc This PR makes changes that have no direct user impact. labels Jun 21, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Jun 21, 2024
@lambdanis
Copy link
Contributor

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 21, 2024
@harsimran-pabla harsimran-pabla removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 21, 2024
Copy link
Contributor

@harsimran-pabla harsimran-pabla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, thanks for adding this in docs. 🙏

This PR updates Cilium's documentation for the BGPv2 Control Plane. In specific, it adds a caution note for the transport section.

Signed-off-by: David Swafford <dswafford@coreweave.com>
@dswaffordcw
Copy link
Contributor Author

dswaffordcw commented Jun 21, 2024

@harsimran-pabla @rastislavs How's this look now?

I removed all references to localPort, but kept the transport section and moved it later. It now describes configuring only the remote peer's port.

In the main example, I removed the transport section entirely and removed connectRetryTimerSeconds.

Screenshot 2024-06-21 at 1 48 58 PM Screenshot 2024-06-21 at 1 49 28 PM

@harsimran-pabla
Copy link
Contributor

I removed all references to localPort, but kept the transport section and moved it later. It now describes configuring only the remote peer's port.

That's great. After discussing this with @YutaroHayakawa, we decided to remove the LocalPort setting. But since CRD has already been published, we will mark the field as deprecated for now and remove it after two releases.

@harsimran-pabla
Copy link
Contributor

/test

@harsimran-pabla harsimran-pabla added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 25, 2024
@aanm aanm merged commit bb211e7 into cilium:main Jun 26, 2024
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Impacts the documentation, including textual changes, sphinx, or other doc generation code. kind/community-contribution This was a contribution made by a community member. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants