梁洛
(梁洛)
1
为提高效率,提问时请尽量提供详细背景信息,问题描述清晰可优先响应。以下信息点请尽量提供:
报错内容如下:
[tidb@db-tidb-1 ~/tidb-ansible]$ sudo ansible --version
ansible 2.6.20
config file = /home/tidb/tidb-ansible/ansible.cfg
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /bin/ansible
python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
- 【系统版本 & kernel 版本】
- 【TiDB 版本】
- 【磁盘型号】
- 【集群节点分布】
- 【数据量 & region 数量 & 副本数】
- 【问题描述(我做了什么)】
- 【关键词】
梁洛
(梁洛)
2
是这个报错才对,唉,心态粗了
[tidb@db-tidb-1 ~]$ ansible --version
Traceback (most recent call last):
File “/bin/ansible”, line 40, in
from ansible.errors import AnsibleError, AnsibleOptionsError, AnsibleParserError
ImportError: No module named ansible.errors
梁洛
(梁洛)
4
你好,问题如下:
安装检查时报错如下:
ERROR MESSAGE SUMMARY ***************************************************************************************************************************************************
TASK [check_config_static : Preflight check - Fail when jmespath or jinja2 doesn’t exist] *******************************************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Jmespath or Jinja2 does not exist, Please run pip install -r requirements.txt
to install.”}
to retry, use: --limit @/home/tidb/tidb-ansible/retry_files/bootstrap.retry
PLAY RECAP **************************************************************************************************************************************************************
localhost : ok=3 changed=2 unreachable=0 failed=1
ERROR MESSAGE SUMMARY ***************************************************************************************************************************************************
[localhost]: Ansible FAILED! => playbook: bootstrap.yml; TASK: check_config_static : Preflight check - Fail when jmespath or jinja2 doesn’t exist; message: {“changed”: false, “msg”: “Jmespath or Jinja2 does not exist, Please run pip install -r requirements.txt
to install.”}
但是我安装要求操作如下,并没有解决。我之前也明确安装了python-Jinja2:
麻烦执行一下:
pip list | grep -iw jmespath | wc -l
pip list | grep -iw jinja2 | wc -l
结果看下
yilong
(yi888long)
7
yilong
(yi888long)
9
您好:
这个环境在操作前,是一个纯净的os吗? 是否有做过安全加固之类的操作?
梁洛
(梁洛)
11
ansible-playbook bootstrap.yml
这一步操作,使用 root和tidb用户都可以执行吧?
梁洛
(梁洛)
12
我们跳过了这个错误提示,现在是起来了。就怕有隐患。
引用
yilong
(yi888long)
13
你好:
如果是正式环境,建议重新安装,使用tidb用户安装,多谢
system
(system)
关闭
14
此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。