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
Add experimental gather and must-gather commands #1368
Conversation
@tnozicka: GitHub didn't allow me to request PR reviews from the following users: tnozicka. Note that only scylladb members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
4d9390b
to
cd6a04c
Compare
cd6a04c
to
d82eefb
Compare
/test images |
d82eefb
to
c62c3b7
Compare
07f5f3b
to
18e1ecc
Compare
39f8974
to
dc4de15
Compare
/retest |
dc4de15
to
818f4ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
lgtm, waiting for other reviewers
e659e54
to
cabaefe
Compare
cabaefe
to
4a39fe7
Compare
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rzetelskik, tnozicka, zimnx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
must-gather and namespace dump in https://gcsweb.scylla-operator.scylladb.com/gcs/scylla-operator-prow/pr-logs/pull/scylladb_scylla-operator/1368/pull-scylla-operator-e2e-gke-parallel/1706672007518621696/ look ok |
Is QA using it now in their tests? @rayakurl ? |
We are not using this in cloud (we are using the cloud CLI so perhaps it will be wrapped in CLI and we will use if needed), I think that this question should be addressed to @fruch and @vponomaryov , who are testing operator directly |
@mykaul we aren't using those commands, I don't think we ever run into a situation we needed those. We have a much more serve issue, that we don't have the instructions on how to be able to catch scylla coredump on operator setup... |
I totally agree with @fruch |
I take some of it back, we are not using those commands, since they are new ( I thought this is some fix) we wrote a task down, I'm not sure when we'll get to add it to the tests. |
yep, from what I recall QA collects artifacts based on our old bash script so that part should definitely migrate over, but they may wait a few days to get the docs (#1367) for it to have an easier transition core dumps are kind of an off topic, but I've made #1436 to track it |
it's not a bash script, but python, but it collects all the k8s resources information it can get.
great, we should be able to explain users on how to setup it up for coredumps to be collected |
Description of your changes:
This PR introduces 2 new commands for the
scylla-operator
binary that help collecting debug dumps.must-gather
collects a predefined set of resources in the Kubernetes cluster that relate toscylla-operator
APIs or the cluster state itself. It also has a flag (--all-resources
) that can collect every namespaced and non-namespaced resource that is "listable" which is useful in case the default dump wouldn't be enough to identify the issue or for our CI.gather
is aimed at collecting individual resources (+ related objects by default) and helps to get extra data in case there would need to ask for an extra resource to be collected.All commands redact Secret's data except for well known Kubernetes keys ("ca.crt", "tls.crt", "service-ca.crt") that hold public parts of certificates.
Which issue is resolved by this Pull Request:
Resolves #1365 #1394
Also shaves off about 35 minutes from our e2e suites!
/cc