openshift-ansible 自 2 天以来失败,没有名为 OpenSSL.crypto 的模块
openshift-ansible fails since 2 days with No module named OpenSSL.crypto
由于在 1.07 版本之后对 ansible github 存储库进行了最新的拉取,它似乎在安装阶段失败了。
示例:
ansible-剧本playbooks/byo/config.yml
returns 与:
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
这几天前工作正常,在 pull 之前所以我感觉存储库中的某些东西导致了这个变化。
有什么想法吗?
感谢
此错误的原因,显然是因为几天前 ansible-openshift 依赖于另一个附加模块,该模块未在要求中列出或未自动安装。
正在执行:
yum install -y pyOpenSSL
似乎暂时解决了这个问题。
或者你可以试试pip install pyopenssl
由于在 1.07 版本之后对 ansible github 存储库进行了最新的拉取,它似乎在安装阶段失败了。
示例:
ansible-剧本playbooks/byo/config.yml
returns 与:
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
这几天前工作正常,在 pull 之前所以我感觉存储库中的某些东西导致了这个变化。
有什么想法吗?
感谢
此错误的原因,显然是因为几天前 ansible-openshift 依赖于另一个附加模块,该模块未在要求中列出或未自动安装。
正在执行:
yum install -y pyOpenSSL
似乎暂时解决了这个问题。
或者你可以试试pip install pyopenssl