Skip to content

tiup could not support "." in tidb cluster name? #1400

@Fighter324

Description

@Fighter324

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

tiup cluster display cluster8.tidb.xxxx.com

  1. What did you expect to see?

Starting component cluster: /home/tidb/.tiup/components/cluster/v1.3.2/tiup-cluster display cluster8.tidb.xxxx.com
Cluster type: tidb
Cluster name: cluster8.tidb.xxxx.com
Cluster version: v4.0.5
SSH type: builtin
Dashboard URL: http://10.200.xxxx:2379/dashboard

  1. What did you see instead?
    Error: Cluster name 'cluster8.tidb.xxxx.com' is invalid (common.invalid_cluster_name)

The cluster name should only contains alphabets, numbers, hyphen (-) and underscore (_).
Error: run /home/tidb/.tiup/components/cluster/v1.4.4/tiup-cluster (wd:/home/tidb/.tiup/data/SZG5pIZ) failed: exit status 1

  1. What version of TiUP are you using (tiup --version)?
    1.4.4 tiup
    Go Version: go1.16.4
    Git Ref: v1.4.4
    GitHash: 0d05073

Metadata

Metadata

Assignees

No one assigned

    Labels

    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