openstack报错AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'的解决办法

今天使用devstack安装的opensack,但是在重启虚拟机后报错

root@ubuntu2004-moban:~# su - stack
stack@ubuntu2004-moban:~$ . admin-openrc
stack@ubuntu2004-moban:~$ openstack server list
Failed to discover available identity versions when contacting http://192.168.105.12/identity. Attempting to parse version from URL.
Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Internal Server Error (HTTP 500)

登录dashboard界面也无法登录,看报错信息是api认证不通过导致。但是密码明明是正确的。通过查看日志发现horizon服务有报错。报错如下:

AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

从日志中可以看出和OpenSSL这个module有关系,于是更新pyOpenSSL后问题解决:

python3 -m pip install --upgrade pyOpenSSL

安装完如果还是不行的话就重启下服务或者服务器就可以完美解决了啦。

有其他问题欢迎加入QQ群一起讨论哦。

发表评论

后才能评论