Skip to content
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

tiup cluster exec failed when hostname include "-" #1790

Closed
nexustar opened this issue Mar 10, 2022 · 1 comment · Fixed by #1794
Closed

tiup cluster exec failed when hostname include "-" #1790

nexustar opened this issue Mar 10, 2022 · 1 comment · Fixed by #1794
Labels
type/bug Categorizes issue as related to a bug.

Comments

@nexustar
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

tiup cluster exec cluster-xxx --sudo --command "mkdir xxx"

  1. What did you expect to see?

success

  1. What did you see instead?

Execute command finished "code": 1, "error": "no executor",

  1. What version of TiUP are you using (tiup --version)?
@nexustar nexustar added the type/bug Categorizes issue as related to a bug. label Mar 10, 2022
@nexustar
Copy link
Collaborator Author

host := strings.Split(hostKey, "-")[0]

the host id is wrongly splited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant