博主最近刚接触openstack不久,在部署OpenStack ocata中遇到了很多问题,最后一步步解决成功上岸。具体主要是参照/gumuyan_/article/details/80447496进行部署。
大体总结了一下部署过程中的很多问题:
1. 执行 ./stack.sh之前需要先升级pip,具体参照问题3
2. 安装过程中会检查版本,不在规定范围内就会被重新安装,后面又需要最新版本导致无限循环
解决方法:sudo vim /home/devstack/tools/cap-pip.txt
会显示 pip!=8,<10将 ,<10删掉就好了
3. 出现 time out 或安装过程中某个包提示找不到
解决办法:再次执行 ./stack.sh(如果有其他问题则需要先./unstack.sh)
4. ./stack.sh: line 508: generate-subunit: command not found
解决办法:
sudo apt-get install python-pip
sudo pip install --upgrade pip
sudo pip install -U os-testr
5. E: brctl common not found
解决办法: sudo apt-get install bridge-utils
6. 正如文章中所提出的那样,控制节点的内存至少为4G,如果自己设置的运行内存小于4G且无法部署成功可尝试将内存设为4G。
6. 部署计算节点出现: Didn't find service registered by hostname after 120 seconds
解决方法:计算机节点的配置文件缺少一条语句:enable_service placement-api,添上即可
7. Unable to establish connection to http://10.10.10.10:8774/v2.1/os-services: HT TPConnectionPool(host='10.10.10.10', port=8774): Max retries exceeded with url
:/v2.1/os-services (Caused by NewConnectionError('<requests. packages. urllib3. connection. HTTPConnection object at0x7fa36da507d0>: Failed to establish a new connection:[ Errno 111] Connection refused',))
解决方法:将控制节点的防火墙关闭 sudo ufw disable