Skip to content

cilium-cli: Print partial output upon bgp peers errors #40278

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

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

rastislavs
Copy link
Contributor

In clusters with multiple nodes, some of the cilium-agents may be in non-running state (e.g. init, crashloop, pending etc.). Instead of just erroring out completely, print the output for the nodes that are running, and error messages for the nodes where the bgp peer status retrieval failed.
Same behavior is already present for bgp routes output.

In clusters with multiple nodes, some of the cilium-agents
may be in non-running state (e.g. init, crashloop, pending etc.).
Instead of just erroring out completely, print the output for
the nodes that are running, and error messages for the nodes
where the bgp peer status retrieval failed.
Same behavior is already present for bgp routes output.

Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>
@rastislavs rastislavs added area/cli Impacts the command line interface of any command in the repository. release-note/misc This PR makes changes that have no direct user impact. area/bgp Impacts the Border Gateway Protocol feature. labels Jun 30, 2025
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Jun 30, 2025
@rastislavs
Copy link
Contributor Author

/test

@rastislavs rastislavs marked this pull request as ready for review June 30, 2025 14:27
@rastislavs rastislavs requested a review from a team as a code owner June 30, 2025 14:27
@tklauser tklauser enabled auto-merge July 1, 2025 15:45
@rastislavs rastislavs requested a review from YutaroHayakawa July 1, 2025 16:05
Copy link
Member

@YutaroHayakawa YutaroHayakawa left a comment

Choose a reason for hiding this comment

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

Nice catch!

@tklauser tklauser added this pull request to the merge queue Jul 2, 2025
Merged via the queue into cilium:main with commit be21af9 Jul 2, 2025
78 of 80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bgp Impacts the Border Gateway Protocol feature. area/cli Impacts the command line interface of any command in the repository. cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary 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.

3 participants