ICP 1.2.0模块故障

时间:2018-06-20 09:13:35

标签: kubernetes ibm-cloud-private kubelet

在icp 1.2.0安装过程中,遇到以下错误:

TASK [kubelet : Starting Kubelet container on Worker nodes] ********************
task path: /installer/playbook/roles/kubelet/tasks/kubelet.yaml:3
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/cloud/docker/docker_container.py
<192.168.240.14> ESTABLISH SSH CONNECTION FOR USER: user
<192.168.240.14> SSH: EXEC sshpass -d10 ssh -C -o CheckHostIP=no -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Port=22 -o 'IdentityFile="cluster/ssh_key"' -o User=user -o ConnectTimeout=10 -oPubkeyAuthentication=no 192.168.240.14 '/bin/bash -c '"'"'echo ~ && sleep 0'"'"''
<192.168.240.14> (0, '/home/user\n', '')
<192.168.240.14> ESTABLISH SSH CONNECTION FOR USER: user
<192.168.240.14> SSH: EXEC sshpass -d10 ssh -C -o CheckHostIP=no -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Port=22 -o 'IdentityFile="cluster/ssh_key"' -o User=user -o ConnectTimeout=10 -oPubkeyAuthentication=no 192.168.240.14 '/bin/bash -c '"'"'( umask 77 && mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093 `" && echo ansible-tmp-1529485552.37-109409849437093="` echo /home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093 `" ) && sleep 0'"'"''
<192.168.240.14> (0, 'ansible-tmp-1529485552.37-109409849437093=/home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093\n', '')
<192.168.240.14> PUT /tmp/tmpQDhbak TO /home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093/docker_container.py
<192.168.240.14> SSH: EXEC sshpass -d10 sftp -o BatchMode=no -b - -C -o CheckHostIP=no -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Port=22 -o 'IdentityFile="cluster/ssh_key"' -o User=user -o ConnectTimeout=10 -oPubkeyAuthentication=no '[192.168.240.14]'
<192.168.240.14> (0, 'sftp> put /tmp/tmpQDhbak /home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093/docker_container.py\n', '')
<192.168.240.14> ESTABLISH SSH CONNECTION FOR USER: user
<192.168.240.14> SSH: EXEC sshpass -d10 ssh -C -o CheckHostIP=no -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Port=22 -o 'IdentityFile="cluster/ssh_key"' -o User=user -o ConnectTimeout=10 -oPubkeyAuthentication=no 192.168.240.14 '/bin/bash -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093/ /home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093/docker_container.py && sleep 0'"'"''
<192.168.240.14> (0, '', '')
<192.168.240.14> ESTABLISH SSH CONNECTION FOR USER: user
<192.168.240.14> SSH: EXEC sshpass -d10 ssh -C -o CheckHostIP=no -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o Port=22 -o 'IdentityFile="cluster/ssh_key"' -o User=user -o ConnectTimeout=10 -oPubkeyAuthentication=no -tt 192.168.240.14 '/bin/bash -c '"'"'sudo -H -S -i -p "[sudo via ansible, key=iunllbazxshyeergbibbpevmrjmrbrte] password: " -u root /bin/bash -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-iunllbazxshyeergbibbpevmrjmrbrte; /usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093/docker_container.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1529485552.37-109409849437093/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"''
<192.168.240.14> (0, '\r\nTraceback (most recent call last):\r\n  File "/tmp/ansible_L67oqX/ansible_module_docker_container.py", line 660, in <module>\r\n    from ansible.module_utils.docker_common import *\r\n  File "/tmp/ansible_L67oqX/ansible_modlib.zip/ansible/module_utils/docker_common.py", line 34, in <module>\r\n  File "/root/.local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/__init__.py", line 84, in <module>\r\n    from urllib3.contrib import pyopenssl\r\n  File "/root/.local/lib/python2.7/site-packages/urllib3-1.22-py2.7.egg/urllib3/contrib/pyopenssl.py", line 46, in <module>\r\n    import OpenSSL.SSL\r\n  File "/usr/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>\r\n    from OpenSSL import rand, crypto, SSL\r\n  File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>\r\n    SSL_ST_INIT = _lib.SSL_ST_INIT\r\nAttributeError: \'module\' object has no attribute \'SSL_ST_INIT\'\r\n', 'Connection to 192.168.240.14 closed.\r\n')
fatal: [192.168.240.14] => MODULE FAILURE

PLAY RECAP *********************************************************************
192.168.240.14             : ok=51   changed=27   unreachable=0    failed=1   
localhost                  : ok=15   changed=0    unreachable=0    failed=0   

Playbook run took 0 days, 0 hours, 4 minutes, 1 seconds

user@user:/opt/ibm-cloud-private-ce-1.2.0/cluster$ 

我不确定这是否相关,但是我安装了python 2.7.14和openssl 1.0.2o:

user@user:/opt/ibm-cloud-private-ce-1.2.0/cluster$ python --version
Python 2.7.14 :: Anaconda, Inc.

user@user:/opt/ibm-cloud-private-ce-1.2.0/cluster$ openssl version
OpenSSL 1.0.2o  27 Mar 2018

下面似乎是这个错误,但我不知道如何解决。

File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in <module>\r\n    SSL_ST_INIT = _lib.SSL_ST_INIT\r\nAttributeError: \'module\' object has no attribute \'SSL_ST_INIT\'\r\n', 'Connection to 192.168.240.14 closed.\r\n')

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

在这样的帖子中,我看到人们也遇到了同样的错误。似乎与OpenSSL版本有关。查看这篇文章,尝试安装较新的版本,或者确保您以与运行ICP相同的用户身份安装了该版本。

Python AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

还有ICP-CE的新版本:ICP 2.1.0.3。一探究竟: https://www.ibm.com/developerworks/community/blogs/fe25b4ef-ea6a-4d86-a629-6f87ccf4649e/entry/IBM_Cloud_Private_version_2_1_0_3_is_now_available_for_download?lang=en