-
Notifications
You must be signed in to change notification settings - Fork 573
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
redpanda admin config print --hosts 0 uses localhost #4000
Comments
@travisdowns The admin API endpoint that I tried with:
And it works, I'll be making changes in the help output to make this clear. |
@r-vasquez - but how does this I feel the experience here is poor because most other rpk commands take their parameters from the local configuration when possible, but then |
|
I agree with what you're saying about keeping the rpk config separate, but the "peek inside" behavior of the other rpk commands does set the precedent that stuff "just works" when you deploy redpanda and then use In any case, if that's the behavior, I guess that's the behavior and this is not a bug but just by design and changing the help text makes sense. Though I guess it does not answer the question of why it tries to connect to localhost? Shouldn't it give an error that host 0 does not exist in the config section? |
IME, having magic is nice until there's a problem, but then once there's a problem, the magic makes it very confusing for what to fix. My longer term preference is to have as minimal magic as possible, but make it very easy to set and obvious things up the first time. This would result in a better learning experience as to what's actually happening when you do anything (that's my hope). |
Version & Environment
Redpanda version: v21.11.10 (rev edc2c49)
What went wrong?
rpk redpanda admin config print --host 0
tries to accesslocalhost
rather than the configured API endpoint in the config YAML.What should have happened instead?
The admin config should have been printed based on connecting to the local redpanda, as per the help output:
How to reproduce the issue?
rpk redpanda admin config print --host 0
Additional information
First part of redpanda.yaml showing admin API endpoint config (
cat /etc/redpanda/redpanda.yaml
):The text was updated successfully, but these errors were encountered: