2015-11-05 34 views
1

,因爲在安裝階段1.07版本發佈之前進行了最新的pull操作,所以它似乎失敗了。openshift-2天以來沒有任何模塊,名爲OpenSSL.crypto

例如:

ansible,劇本劇本/ 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

回答

1

這個錯誤的原因,顯然是因爲一兩天的ansible-openshift依賴於其他附加模塊,這是不是在要求的上市或不自動安裝。

執行:

yum install -y pyOpenSSL 

似乎解決這個問題現在。

1

或者您可以嘗試pip install pyopenssl

相關問題