-
Notifications
You must be signed in to change notification settings - Fork 10.2k
etcdctl
: Migrate etcd-diagnosis
as a new subcommand diagnosis
#20280
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
base: main
Are you sure you want to change the base?
Conversation
Hi @seshachalam-yv. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
etcdctl
: Migrate etcd-diagnosis
as a new subcommand diagnosis
0403580
to
653a723
Compare
f33e222
to
26a9904
Compare
Thanks @ahrtr for your review. I’ve addressed your comments. |
Please license header for each new go file. etcd/tests/e2e/reproduce_18667_test.go Lines 1 to 13 in 636bbdd
Also I suggest to move the directory diagnosis to |
8150f28
to
5ea93eb
Compare
pls signoff the commit or squash the commit (preferred) |
Introduces `etcdctl diagnose` with plugin-based checks: endpoint status, membership, metrics, and read path. Produces machine-readable JSON output. Places engine and plugins under `etcdctl/ctlv3/command/diagnosis/...`. Wires the subcommand into `ctlv3` CLI. Signed-off-by: Yerasala Venkata, Seshachalam <[email protected]>
Adds README section for `diagnose` command, flags, and output. Fixes README link to the example. Signed-off-by: Yerasala Venkata, Seshachalam <[email protected]>
1831f6f
to
95785f0
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.
LGTM with a minor comment.
Thank you!
#### Flags | ||
|
||
- `--cluster`: use all endpoints discovered from the cluster member list. | ||
- `--etcd-storage-quota-bytes`: expected etcd storage quota in bytes (value passed to etcd with `--quota-backend-bytes`). |
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.
For etcd version >= 3.6.0, we are able to get the quota by endpoint status
query. For versions < 3.6.0, we still need to users to provide a value for this flag.
It's OK to enhance this in a followup PR.
/ok-to-test |
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.
Please resolve the workflow failures, thx
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: seshachalam-yv The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@seshachalam-yv: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
Fixes #20275
Part of #20217
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.
etcdctl sample output
cc @ahrtr