为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:
3.0.2 - 【问题描述】:
1.第一次执行ansible-playbook bootstrap.yml 是通过的,结尾日志如下:
TASK [check_system_optional : set_fact] ***********************************************************************************************************************************************************************
TASK [check_system_optional : Preflight check - Check TiDB server’s disk space] *******************************************************************************************************************************
TASK [check_system_optional : set_fact] ***********************************************************************************************************************************************************************
TASK [check_system_optional : Preflight check - Check TiKV server’s disk space] *******************************************************************************************************************************
TASK [check_system_optional : set_fact] ***********************************************************************************************************************************************************************
TASK [check_system_optional : Preflight check - Check PD server’s disk space] *********************************************************************************************************************************
TASK [check_system_optional : set_fact] ***********************************************************************************************************************************************************************
TASK [check_system_optional : Preflight check - Check Monitor server’s disk space] ****************************************************************************************************************************
PLAY RECAP ****************************************************************************************************************************************************************************************************
10.132.18.7 : ok=32 changed=9 unreachable=0 failed=0
10.162.13.6 : ok=32 changed=9 unreachable=0 failed=0
10.162.14.2 : ok=32 changed=9 unreachable=0 failed=0
localhost : ok=7 changed=4 unreachable=0 failed=0
Congrats! All goes well.
2.部署时却出现ntp不通过的错误:
TASK [check_system_dynamic : Preflight check - NTP service] ***************************************************************************************************************************************************
fatal: [10.162.14.2]: FAILED! => {“changed”: false, “msg”: “Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/orchestrated/ansible.md#how-to-check-whether-the-ntp-service-is-normal .”}
fatal: [10.162.13.6]: FAILED! => {“changed”: false, “msg”: “Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/orchestrated/ansible.md#how-to-check-whether-the-ntp-service-is-normal .”}
fatal: [10.132.18.7]: FAILED! => {“changed”: false, “msg”: “Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/orchestrated/ansible.md#how-to-check-whether-the-ntp-service-is-normal .”}
NO MORE HOSTS LEFT ********************************************************************************************************************************************************************************************
to retry, use: --limit @/home/work/tidb-ansible/retry_files/deploy.retry
PLAY RECAP ****************************************************************************************************************************************************************************************************
10.132.18.7 : ok=3 changed=0 unreachable=0 failed=1
10.162.13.6 : ok=3 changed=0 unreachable=0 failed=1
10.162.14.2 : ok=4 changed=0 unreachable=0 failed=1
localhost : ok=7 changed=4 unreachable=0 failed=0
ERROR MESSAGE SUMMARY *****************************************************************************************************************************************************************************************
[10.162.14.2]: Ansible FAILED! => playbook: deploy.yml; TASK: check_system_dynamic : Preflight check - NTP service; message: {“changed”: false, “msg”: “Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/orchestrated/ansible.md#how-to-check-whether-the-ntp-service-is-normal .”}
[10.162.13.6]: Ansible FAILED! => playbook: deploy.yml; TASK: check_system_dynamic : Preflight check - NTP service; message: {“changed”: false, “msg”: “Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/orchestrated/ansible.md#how-to-check-whether-the-ntp-service-is-normal .”}
[10.132.18.7]: Ansible FAILED! => playbook: deploy.yml; TASK: check_system_dynamic : Preflight check - NTP service; message: {“changed”: false, “msg”: “Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/dev/how-to/deploy/orchestrated/ansible.md#how-to-check-whether-the-ntp-service-is-normal .”}
3.去每台机器上检查了ntp服务 也是正常的
性能优化、故障排查等需要收集“系统/集群信息”的问题,请下载脚本运行。全选终端打印结果,并复制粘贴上传。