pingcap / tidb-ansible

Apache License 2.0
326 stars 276 forks source link

tidb滚动升级失败!hostnames of all nodes in cluster #612

Closed jiancaiHub closed 5 years ago

jiancaiHub commented 5 years ago

inventory.ini

[tidb_servers]
127.0.0.37

[tikv_servers]
127.0.0.35
127.0.0.36
127.0.0.38

[pd_servers]
127.0.0.35
127.0.0.36
127.0.0.38

[spark_master]

[spark_slaves]

## Monitoring Part
# prometheus and pushgateway servers
[monitoring_servers]
127.0.0.34

[grafana_servers]
127.0.0.34

# node_exporter and blackbox_exporter servers
[monitored_servers]
127.0.0.34
127.0.0.35
127.0.0.36
127.0.0.37
127.0.0.38

[alertmanager_servers]
127.0.0.34

## Binlog Part
[pump_servers]

[drainer_servers]

## Group variables
[pd_servers:vars]
# location_labels = ["zone","rack","host"]

## Global variables
[all:vars]
deploy_dir = /data1/deploy

## Connection
# ssh via normal user
ansible_user = tidb

cluster_name = test-cluster

tidb_version = v2.1.0-rc.5

error message

TASK [check_system_dynamic : Preflight check - Does every node in cluster have different hostname] ************************************************************************************************************************
fatal: [127.0.0.34]: FAILED! => {"changed": false, "msg": "hostnames of all nodes in cluster: [busi-prom01, busi-tikv, busi-tikv, busi-tikv00, busi-tikv]\n"}

NO MORE HOSTS LEFT ********************************************************************************************************************************************************************************************************
    to retry, use: --limit @/home/tidb/tidb-ansible/retry_files/rolling_update.retry

PLAY RECAP ****************************************************************************************************************************************************************************************************************
127.0.0.34               : ok=3    changed=0    unreachable=0    failed=1   
127.0.0.35               : ok=2    changed=0    unreachable=0    failed=0   
127.0.0.36               : ok=2    changed=0    unreachable=0    failed=0   
127.0.0.37               : ok=2    changed=0    unreachable=0    failed=0   
127.0.0.38               : ok=2    changed=0    unreachable=0    failed=0   
localhost                  : ok=1    changed=0    unreachable=0    failed=0   

ERROR MESSAGE SUMMARY *****************************************************************************************************************************************************************************************************
[127.0.0.34]: Ansible FAILED! => playbook: rolling_update.yml; TASK: check_system_dynamic : Preflight check - Does every node in cluster have different hostname; message: {"changed": false, "msg": "hostnames of all nodes in cluster: [busi-prom01, busi-tikv, busi-tikv, busi-tikv00, busi-tikv]\n"}

中控机:127.0.0.34 question:There is not a server named "localhost", Why it appears in the deployment log. and what can i do?

superlzs0476 commented 5 years ago

The same host is "busi-tikv" , every node in cluster must have differenct hostname .

superlzs0476 commented 5 years ago

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you are still experiencing this issue, please test against a recent version of TiDB Ansible, and open a new issue with a full reproducer showing this issue.