-
Notifications
You must be signed in to change notification settings - Fork 316
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
cluster: improved error for missing tar #2499
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
@@ -51,6 +52,9 @@ func (c *InstallPackage) Execute(ctx context.Context) error { | |||
|
|||
_, stderr, err := exec.Execute(ctx, cmd, false) | |||
if err != nil { | |||
if bytes.Contains(stderr, []byte("command not found")) { |
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.
How about polish the text to install tar in the host xxx (xxx is the dest host name)? Then user will not misunderstood to install in the current machine. The rest LGTM.
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.
Fixed in 16da107
$ tiup cluster check topology.yaml
The SSH identity key is encrypted. Input its passphrase:
+ Detect CPU Arch Name
- Detecting node 192.168.122.196 Arch info ... Done
+ Detect CPU OS Name
- Detecting node 192.168.122.196 OS info ... Done
+ Download necessary tools
- Downloading check tools for linux/amd64 ... Done
+ Collect basic system information
- Getting system info of 192.168.122.196:22 ... Error
Error: tar command was not found on 192.168.122.196, please install it
Verbose debug logs has been written to /home/dvaneeden/.tiup/logs/tiup-cluster-debug-2025-01-21-13-26-46.log.
[LGTM Timeline notifier]Timeline:
|
/cc @xhebox |
What problem does this PR solve?
With a minimal install of Rocky Linux 9.5 tar isn't installed and the error could be improved
Without this PR:
With this PR:
What is changed and how it works?
Check List
Tests
Release notes: