环境:
centos 7.6
python 2.7.5
failed to use pip to install any pip packages
yum update -yyum groupinstall "Development Tools"
TASK [neutron : Checking if ‘MountFlags’ for docker service is set to ‘shared’]
sudo systemctl cat docker.service# 增加如下内容到docker.service的文件[Service] MountFlags=slavesudo systemctl daemon-reload && sudo systemctl restart docker.service
证书问题
OpenStack Docs: Advanced Configuration
kolla-ansible certificates
安装compat-libgmp-4.3.1失败
查了网上的解决方案是,从google.drive上下载了这两个rpm,使用如下命令安装的
yum localinstall --nogpgcheck compat-libgmp-4.3.1-1.sl7.x86_64.rpm compat-libmpfr-2.4.1-1.sl7.x86_64.rpm
no test named ‘equalto’
TASK [neutron : Checking if ‘MountFlags’ for docker service is set to ‘shared’] ***************************************************************************************************************
ok: [localhost]
ERROR! An unhandled exception occurred while templating ‘{{ neutron_tenant_network_types.replace(’ ‘, ‘’).split(’,’) | reject(‘equalto’, ‘’) | list }}’. Error was a <class ‘jinja2.exceptions.TemplateRuntimeError’>, original message: no test named ‘equalto’
重新安装Jinjia2的包
pip install Jinja2===2.10
No package matching ‘libreswan-3.15-8.el7.x86_64’ found available, installed or updated
Index of /c7.1611.01/libreswan/111230/3.15-8.el7.x86_64
wget /.help/CentOS7-Base-163.repoyum makecacheyum -y update
好像163的源要比阿里的源内容要多些
shade is required for this module
pip install shade# 获取setuptools所有的versionpip install setuptools===xpip install setuptools===40.0.0# 如果无法卸载可以尝试下,虽然有点暴力sudo rm -rf /usr/lib/python3/dist-packages/yaml, sudo rm -rf /usr/lib/python3/dist-packages/PyYAML-*
pip install python-cloudkittyclient===1.2.0 failed in Cannot uninstall ‘pyOpenSSL’.
pip install python-cloudkittyclient===1.2.0 --ignore-installed
总结下:
kolla-ansible确实是一个非常成熟的自动化集成项目,所以功能和稳定性都非常好,但是在实际的使用过程中,会遇到由于一些
python包的版本和linux的yum源导致一些属性不存在和报不存在的报错,这个时候只要耐心的看完报错,基本上问题都能通过安装
新版本的pip包,或者手动安装linux下的软件或者改下项目下的yaml文件来解决(谢谢曹大哥的帮忙,让我对kolla-ansible又有了
更深层次的理解)。