自1.07版本发布到ansible github存储库后进行最新的拉动,在安装阶段似乎失败了。
示例:
ansible-playbook playbooks / byo / config.yml
返回:
Traceback (most recent call last):
File "/bin/ansible-playbook", line 324, in <module>
sys.exit(main(sys.argv[1:]))
File "/bin/ansible-playbook", line 264, in main
pb.run()
File "/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 310, in run
play = Play(self, play_ds, play_basedir, vault_password=self.vault_password)
File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 124, in __init__
ds = template(basedir, ds, temp_vars)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 140, in template
d[k] = template(basedir, v, templatevars, lookup_fatal, depth, expand_lists, convert_bare, fail_on_undefined, filter_fatal)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 140, in template
d[k] = template(basedir, v, templatevars, lookup_fatal, depth, expand_lists, convert_bare, fail_on_undefined, filter_fatal)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 124, in template
varname = template_from_string(basedir, varname, templatevars, fail_on_undefined)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 346, in template_from_string
environment.filters.update(_get_filters())
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 54, in _get_filters
plugins = [ x for x in utils.plugins.filter_loader.all()]
File "/usr/lib/python2.7/site-packages/ansible/utils/plugins.py", line 232, in all
self._module_cache[path] = imp.load_source('.'.join([self.package, name]), path)
File "/root/cluster/openshift-ansible/filter_plugins/oo_filters.py", line 10, in <module>
import OpenSSL.crypto
ImportError: No module named OpenSSL.crypto
这在几天前工作正常,在拉动之前我感觉存储库中的某些内容导致了这种变化。
有什么想法吗?
THX
答案 0 :(得分:1)
此错误的原因,显然是因为几天ansible-openshift依赖于另一个附加模块,该模块未在要求中列出或未自动安装。
执行
yum install -y pyOpenSSL
现在似乎解决了这个问题。
答案 1 :(得分:1)
或者您可以尝试pip install pyopenssl