-
Notifications
You must be signed in to change notification settings - Fork 593
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
rpk: brokers list exposing Host/Port/Rack/UUID #23595
rpk: brokers list exposing Host/Port/Rack/UUID #23595
Conversation
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55629#01924c7e-d38f-428e-9563-5089462bc888 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55629#01924c7e-d388-4470-b640-f53f3aafd35e ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55685#01924f5f-469e-4409-8a40-13e40b09f09e ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55685#01924f4d-0efb-4933-8997-0f1184a5ece8 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55989#01926b5a-748e-4715-9944-e4e574794df5 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55989#01926b83-0f91-4606-8890-1d12692386f8 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/56025#01926d30-07b8-462c-90f5-6ae4d724eb2c |
/ci-repeat 1 |
81eba0e
to
2d1d078
Compare
Rebased. In 2d1d078, I have made the following changes.
e.g. node 2 is a decommissioned host.
|
2d1d078
to
81224a0
Compare
Nit change; I should have considered the case where |
/ci-repeat 1 |
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, 2 minor comments/questions.
Thanks for this and for the detailed description of the command and the changes
81224a0
to
bf93c5d
Compare
In bf93c5d, I've made the following changes:
|
bf93c5d
to
0739f23
Compare
Sorry, did another rebase; merged |
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, just one small left over in the docs from the flag name change. Thanks!
Expose each broker's host, port, rack, and UUID in the 'rpk redpanda admin brokers list' command. Also add a new flag '--include-decommissioned' to list decommissioned brokers with their UUIDs.
78a3cf6
to
08e30aa
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.
Thanks!
/backport v24.2.x |
/backport v24.1.x |
Failed to create a backport PR to v24.1.x branch. I tried:
|
Relevant to redpanda-data/common-go#27.
rpk redpanda admin brokers list
now exposes additional fields that makes troubleshooting easier.Before:
After:
It uses the fairly new
/v1/broker_uuids
endpoint for the UUID field. If a cluster doesn't support the endpoint, the command just hide the column.If multiple node UUIDs being found for a node ID, the command prints all with a comma separated fashion in the same row. It could happen when a new node joins the cluster using the same node ID, e.g. being hard-corded in redpanda.yaml. This is not encouraged though.
With the new
--include-decommissioned
flag, it can list all decommissioned brokers along with its ID and UUID. This is useful when we deal with thenode_id_overrides
feature, #22972Added a detailed help text too.
Backports Required
Release Notes
Improvements
redpanda admin brokers list
exposes Host/Port/Rack/UUID additionally