-
Notifications
You must be signed in to change notification settings - Fork 334
tiup cluster deploy will fail #991
Copy link
Copy link
Closed
Labels
category/monitoringCategorizes issue or PR related to monitoring components.Categorizes issue or PR related to monitoring components.category/stabilityCategorizes issue or PR as a stability enhancement.Categorizes issue or PR as a stability enhancement.type/bugCategorizes issue as related to a bug.Categorizes issue as related to a bug.type/duplicateCategorizes issue or PR as duplicate.Categorizes issue or PR as duplicate.
Metadata
Metadata
Assignees
Labels
category/monitoringCategorizes issue or PR related to monitoring components.Categorizes issue or PR related to monitoring components.category/stabilityCategorizes issue or PR as a stability enhancement.Categorizes issue or PR as a stability enhancement.type/bugCategorizes issue as related to a bug.Categorizes issue as related to a bug.type/duplicateCategorizes issue or PR as duplicate.Categorizes issue or PR as duplicate.
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do?
$ tiup cluster deploy test-compression nightly ./topology.yml --user root -p
What did you expect to see?
Succeed to deploy a cluster.
What did you see instead?
Error: init config failed: 172.16.5.187:9090: executor.ssh.execute_failed: Failed to execute command over SSH for 'root@172.16.5.187:22' {ssh_stderr: zsh:1: no matches found: /tidb-deploy/prometheus-9090/conf/.rules.yml
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/usr/bin:/usr/sbin rm -f /tidb-deploy/prometheus-9090/conf/.rules.yml}, cause: Process exited with status 1
What version of TiUP are you using (
tiup --version)?v1.2.5 tiup
Go Version: go1.13
Git Branch: release-1.2
GitHash: 5b9cf5d
A feasible workaround:
Seems Tiup will remove files before deploy a new cluster, but executing "rm -f /tidb-deploy/prometheus-9090/conf/*.rules.yml" will fail since there is no such file, and thus cause process exit.
workaround:
$ touch 1.rules.yml
touch a trivial file at promethesus folder before execute tiup deploy command.
$ touch 1.json
touch a file at grafana folder as well