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

cilium-dbg/troubleshoot: do not import cilium-dbg from operator #37326

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

aanm
Copy link
Member

@aanm aanm commented Jan 29, 2025

Since we are importing cilium-dbg from the operator, this is causing all of its init() functions to be initialized causing some potential concurrency issues as cilium-dbg is initializing functions assuming it's the only binary using them, same as with the operator. To avoid this problem, we will move the troubleshoot as an independent package that can be imported by the operator, the clustermesh-apiserver and the cilium-dbg tool.

Fixes: 5f0e3e2 ("operator: add troubleshoot subcommands")

@aanm aanm added release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.16 This PR / issue needs backporting to the v1.16 branch needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch labels Jan 29, 2025
@aanm aanm requested a review from giorio94 January 29, 2025 09:25
@aanm aanm requested review from a team as code owners January 29, 2025 09:25
@aanm aanm requested review from dlapcevic and asauber January 29, 2025 09:25
@aanm aanm enabled auto-merge January 29, 2025 09:25
@aanm
Copy link
Member Author

aanm commented Jan 29, 2025

/test

@aanm aanm force-pushed the pr/fix-troubleshooting-concurrency branch from 8efa608 to ece4894 Compare January 29, 2025 09:49
@aanm
Copy link
Member Author

aanm commented Jan 29, 2025

/test

Since we are importing cilium-dbg from the operator, this is causing all
of its init() functions to be initialized causing some potential
concurrency issues as cilium-dbg is initializing functions assuming it's
the only binary using them, same as with the operator. To avoid this
problem, we will move the troubleshoot as an independent package that
can be imported by the operator, the clustermesh-apiserver and the
cilium-dbg tool.

Fixes: 5f0e3e2 ("operator: add troubleshoot subcommands")
Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm force-pushed the pr/fix-troubleshooting-concurrency branch from ece4894 to 6625571 Compare January 29, 2025 11:05
@aanm
Copy link
Member Author

aanm commented Jan 29, 2025

/test

@aanm aanm added this pull request to the merge queue Jan 29, 2025
@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 Jan 29, 2025
Merged via the queue into main with commit 71da825 Jan 29, 2025
288 checks passed
@aanm aanm deleted the pr/fix-troubleshooting-concurrency branch January 29, 2025 19:54
@giorio94 giorio94 mentioned this pull request Jan 31, 2025
20 tasks
@giorio94 giorio94 added backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. and removed needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch labels Jan 31, 2025
@giorio94 giorio94 mentioned this pull request Jan 31, 2025
9 tasks
@giorio94 giorio94 added backport-pending/1.16 The backport for Cilium 1.16.x for this PR is in progress. and removed needs-backport/1.16 This PR / issue needs backporting to the v1.16 branch labels Jan 31, 2025
@github-actions github-actions bot added backport-done/1.17 The backport for Cilium 1.17.x for this PR is done. backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. and removed backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. backport-pending/1.16 The backport for Cilium 1.16.x for this PR is in progress. labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.16 The backport for Cilium 1.16.x for this PR is done. backport-done/1.17 The backport for Cilium 1.17.x for this PR is done. 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.

4 participants