Skip to content

tiup cluster deploy will fail #991

@ZhenhanGong

Description

@ZhenhanGong

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    $ tiup cluster deploy test-compression nightly ./topology.yml --user root -p

  2. What did you expect to see?
    Succeed to deploy a cluster.

  3. What did you see instead?

  • Copy files
    • Copy pd -> 172.16.5.187 ... Done
    • Copy tikv -> 172.16.5.187 ... Done
    • Copy tikv -> 172.16.5.187 ... Done
    • Copy tikv -> 172.16.5.187 ... Done
    • Copy tidb -> 172.16.5.187 ... Done
    • Copy tiflash -> 172.16.5.187 ... Done
    • Copy prometheus -> 172.16.5.187 ... Error
    • Copy grafana -> 172.16.5.187 ... Error
    • Copy node_exporter -> 172.16.5.187 ... Done
    • Copy blackbox_exporter -> 172.16.5.187 ... Done

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

  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

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/monitoringCategorizes issue or PR related to monitoring components.category/stabilityCategorizes issue or PR as a stability enhancement.type/bugCategorizes issue as related to a bug.type/duplicateCategorizes issue or PR as duplicate.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions