-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
etcdctl member add -wjson --hex=true
does not output member IDs in hex
#19262
Comments
etcdctl member add -wjson --hex=true
does not output member IDs in hex
@kwohlfahrt ![]() |
Can I pick this? Thanks! |
/assign @wjf222 |
I noticed that the issue hasn’t been updated for a month. I’d love to take it on and get it sorted. I’ve already prepared the PR. |
/assign @kstrifonoff |
Hi @wjf222, are you still working on this? Is it okay if we re-assign to @kstrifonoff? Thanks. |
Reassigning to @kstrifonoff. /unassign @wjf222 |
Bug report criteria
What happened?
I ran
etcdctl member add -w json --hex=true
, with the aim of extracting the newly added member ID for use withetcdctl member promote later
. However, the member ID was printed as decimal:This does not match the behaviour of
etcdctl member list -w json --hex=true
, which prints the member IDs in hexadecimal, compatible for use with otheretcdctl
commands.What did you expect to happen?
I expect
etcdctl member add ... -w json --hex=true
to print the IDs in hexadecimal, just likeetcdctl member list
does.How can we reproduce it (as minimally and precisely as possible)?
Run the following command (the new member doesn't actually ever have to join the cluster, it can be immediately deleted afterwards):
Anything else we need to know?
No response
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
paste your configuration here
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Relevant log output
The text was updated successfully, but these errors were encountered: