【安装部署】校验通过,部署失败

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 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. :slight_smile:

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服务 也是正常的

性能优化、故障排查等需要收集“系统/集群信息”的问题,请下载脚本运行。全选终端打印结果,并复制粘贴上传。

麻烦在报错节点执行一下 ntpstat | grep -w synchronised | wc -l

ntpstat | grep -w synchronised | wc -l
1

结果为 1

sudo systemctl status ntpd.service 结果也是正常的吗?如果两个结果都是正常的话。重新 deploy 一下,看还有没有报错。

您好,问题已解决 公司是用chronyd.service 管理的ntpd与dns,改为直接启动ntpd.service服务就行了

:+1::+1::+1:

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。