Ansible安装集群下载数据包失败

用ansible的方式安装集群,下载other binary的时候报错

建议尝试几次。有可能是网络不稳定或者下载源不稳定。

1. 问题

github偶尔出现下载不了tar包

2. 临时解决办法

在/home/tidb/tidb-ansible/roles/local/templates/binary_packages.yml.j2模板文件中修改tar的下载地址使用pingcap官网地址下载对应tar包

使用url: "https://download.pingcap.org/prometheus-2.8.1.linux-amd64.tar.gz"替换6行
使用url: "http://download.pingcap.org/alertmanager-0.17.0.linux-amd64.tar.gz"替换9行

改了无效,运行ansible-playbook local_prepare.yml的时候,又变成//github.com/prometheus/prometheus/releases/download/v2.8.1/prometheus-2.8.1.linux-amd64.tar.gz了

/home/tidb/tidb-ansible/roles/local/templates/binary_packages.yml.j2模板文件修改

执行ansible-playbook bootstrap.yml的时候报一下错误

TASK [check_system_static : Preflight check - Linux OS family and distribution version] *******************************************************************************

TASK [check_system_static : Deploy epollexclusive script] ************************************************************************************************************* ok: [10.8.10.30] ok: [10.8.10.22] ok: [10.8.10.32] ok: [10.8.10.16]

TASK [check_system_static : Preflight check - Check if the operating system supports EPOLLEXCLUSIVE] ****************************************************************** fatal: [10.8.10.30]: FAILED! => {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.083122”, “end”: “2019-08-28 14:17:55.297724”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.214602”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]} fatal: [10.8.10.22]: FAILED! => {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.080669”, “end”: “2019-08-28 14:17:55.302220”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.221551”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]} fatal: [10.8.10.32]: FAILED! => {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.079427”, “end”: “2019-08-28 14:17:55.349942”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.270515”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]} fatal: [10.8.10.16]: FAILED! => {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.094359”, “end”: “2019-08-28 14:17:55.343302”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.248943”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]}

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

PLAY RECAP ************************************************************************************************************************************************************ 10.8.10.16 : ok=24 changed=0 unreachable=0 failed=1 10.8.10.22 : ok=24 changed=0 unreachable=0 failed=1 10.8.10.30 : ok=24 changed=0 unreachable=0 failed=1 10.8.10.32 : ok=24 changed=0 unreachable=0 failed=1 localhost : ok=7 changed=4 unreachable=0 failed=0

ERROR MESSAGE SUMMARY ************************************************************************************************************************************************* [10.8.10.30]: Ansible FAILED! => playbook: bootstrap.yml; TASK: check_system_static : Preflight check - Check if the operating system supports EPOLLEXCLUSIVE; message: {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.083122”, “end”: “2019-08-28 14:17:55.297724”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.214602”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]}

[10.8.10.22]: Ansible FAILED! => playbook: bootstrap.yml; TASK: check_system_static : Preflight check - Check if the operating system supports EPOLLEXCLUSIVE; message: {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.080669”, “end”: “2019-08-28 14:17:55.302220”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.221551”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]}

[10.8.10.32]: Ansible FAILED! => playbook: bootstrap.yml; TASK: check_system_static : Preflight check - Check if the operating system supports EPOLLEXCLUSIVE; message: {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.079427”, “end”: “2019-08-28 14:17:55.349942”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.270515”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]}

[10.8.10.16]: Ansible FAILED! => playbook: bootstrap.yml; TASK: check_system_static : Preflight check - Check if the operating system supports EPOLLEXCLUSIVE; message: {“changed”: true, “cmd”: “/home/mysql/ssd/deploy/epollexclusive”, “delta”: “0:00:00.094359”, “end”: “2019-08-28 14:17:55.343302”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2019-08-28 14:17:55.248943”, “stderr”: “”, “stderr_lines”: [], “stdout”: “epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”, “stdout_lines”: [“epoll_ctl with EPOLLEXCLUSIVE | EPOLLONESHOT succeeded. This is evidence of no EPOLLEXCLUSIVE support. Not using epollex polling engine.False: epollexclusive is not available”]}

Ask for help: Contact us: support@pingcap.com It seems that you encounter some problems. You can send an email to the above email address, attached with the tidb-ansible/inventory.ini and tidb-ansible/log/ansible.log files and the error message, or new issue on https://github.com/pingcap/tidb-ansible/issues. We’ll try our best to help you deploy a TiDB cluster. Thanks. :slight_smile: