cli/sysdump: capture more operator and clustermesh-apiserver troubleshooting information#46503
Merged
Merged
Conversation
Extend the clustermesh-related sysdump tasks to additionally capture the outputs of the `db/dump` and `kvstore/list` statedb commands on the clustermesh-apiserver replicas (both apiserver and kvstoremesh containers), to aid during troubleshooting. The `kvstore/list` output is expected to match in both cases, but it is retrieved twice anyways for resiliency in case only one of the two containers is enabled in the target environment. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Extend the sysdump collection logic to additionally capture Cilium operator debug information, including the dump of the statedb tables and kvstore/clustermesh related information. The collection logic mimics the one already used for the clustermesh-apiserver replicas. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
[1] moved the `gops` binary from `/bin/gops` to `/usr/bin/gops`. The commit message claims that the change is fully backwards compatible since `/bin` symlinks to `/usr/bin`. However, that does not apply in case of the Cilium operator, as based on a scratch image that contains no such symlink. In turn, this broke the collection of gops data for the Cilium operator in sysdumps, as it still invokes the binary at the old location. Let's get this fixed by trying both paths, and picking the first command which succeeds. [1]: a927457 ("images: Only build `gops` for the relevant platform") Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Member
Author
|
/test |
asauber
approved these changes
Jun 22, 2026
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.
Please review commit by commit, and refer to the individual commit messages for additional details.
The
db/dumpcommand is introduced in cilium/statedb#164.