Ubuntu16.04安装Devstack报错的解决办法

基本步骤参考:https://www.cnblogs.com/love9527/p/8298959.html
以下Ubuntu和centos遇到报错的解决办法是通用的。
其他问题参考:https://blog.csdn.net/qq_21921243/article/details/80223469

在ubuntu16.04环境下:

问题总结:

  1. 在安装Devstack之前不要升级python,使用ubuntu默认安装的python版本。

  2. 运行前升级pip到最新版本。如果./stack.sh运行后自动将pip的版本回退到8或者9,则修改/opt/stack/devstack/tools下的cap-pip.txt文件,删除后面的“,<10”
    更新版本:

    apt-get install python-pip
    python -m pip install --upgrade pip
    
  3. git下载openstack的时候,将

    git clone https://github.con/openstack-dev/devstack -b stable/pike

改为:

git clone https://git.openstack.org/openstack-dev/devstack -b stable/pike
  1. 报错中若有:/opt/stack/requirements/.venv/bin/pip install -c /opt/stack/requirements/upper-constraints.txt -U pbr
    则删除 如上目录中的 ./venv/目录及目录中所有文件.

  2. 报错为:
    Found existing installation: psutil 3.2.4
    ERROR: Cannot uninstall ‘psutil’. It is a distuils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

使用find / -name “psutil*”
找到所有相关文件(应该都在Python的目录下,直接删除掉再重装devstack就好。
6. 每次报错修改后,都要如下,清理上次安装的东西:

	./unstack.sh
	./clean.sh

PS:安装完成后mysql的用户就是root 密码就是在local.conf中写的

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值