OpenStack在线安装笔记

Ubuntu18.04Server虚拟机中使用DecStack在线安装(没有成功)

参考文献:
https://docs.openstack.org/devstack/latest/
https://www.pianshen.com/article/3258137939/
https://blog.csdn.net/qq_43658650/article/details/106599225
https://blog.csdn.net/qq_40907977/article/details/103452775
http://www.manongjc.com/detail/10-ssanqosmresoerb.html
https://blog.csdn.net/weixin_41977332/article/details/104232293
https://stackoverflow.com/questions/67924432/openstack-devstack-job-for-ovn-central-service-failed-because-a-timeout-was-e

安装过程中遇到的报错或注意事项:

1,创建stack用户后,登录该用户
sudo su - stack

2,执行到./stack.sh命令时可能会出现错误提示[ERROR] ./stack.sh: If you wish to run this script anyway run with FORCE=yes
这或是因为该执行脚本与操作系统版本不太匹配,可强制执行:
FORCE=yes ./stack.sh

3,若出现socket.timeout错误,这是网络原因造成的超时错误,中途应该会多次出现这个错误,多执行几次。

4,出现报错ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
这是安装脚本试图卸载旧的PyYAML,安装新的PyYAML时发现系统中已经安装有PyYAML,但它是distutils安装的(这里的安装脚本应该是用pip安装),无法去卸载它。
这里采用的解决方法是先执行pip show PyYAML 找到已有PyYAML的安装位置(Location: /usr/lib/python3/dist-packages/
),到其安装位置删除文件/usr/lib/python3/dist-packages/PyYAML-5.3.1.egg-info

5,出现报错ERROR: Cannot uninstall 'httplib2'. It is a distutils installed project and thus we cannot accurately 
如'PyYAML'之法炮制删除/usr/lib/python3/dist-packages/httplib2-0.9.2.egg-info

6,出现报错ERROR: Cannot uninstall 'pyasn1-modules'. It is a distutils installed project and thus we cannot accurately determine
如法炮制删除/usr/lib/python3/dist-packages/pyasn1_modules-0.2.1.egg-info

7,出现报错devstack  ln: failed to create symbolic link ‘/var/run/ovn/openvswitch': File exists
将已有的软连接文件删除
每次运行./stack安装都会建立这个软连接,如果再次运行安装就要再次删除这个文件。
sudo mv /var/run/ovn/openvswitch /var/run/ovn/openvswitch.bak
sudo rm /var/run/ovn/openvswitch

8,出现报错Job for devstack@etcd.service failed because the control process exited with error code.
根据https://www.freesion.com/article/88091174322/提示,屏幕shark.sh中的部分内容

9,出现报错:
/opt/stack/devstack/lib/keystone:554:die 
[ERROR] /opt/stack/devstack/lib/keystone:554 keystone did not start
根据https://www.freesion.com/article/88091174322/修改local.conf文件

10,出现报错:
[ERROR] /opt/stack/devstack/functions-common:629 git call failed: [git clone https://github.com/novnc/noVNC.git /opt/stack/noVNC --branch v1.1.0]
根据https://blog.csdn.net/zsWang9/article/details/79684764也是网络问题
重试,解决

11,出现报错
+lib/neutron_plugins/ovn_agent:start_ovn:681  [[ False == \T\r\u\e ]]
+lib/neutron_plugins/ovn_agent:start_ovn:687  _start_process ovn-central.service
+lib/neutron_plugins/ovn_agent:_start_process:220  sudo systemctl daemon-reload
+lib/neutron_plugins/ovn_agent:_start_process:221  sudo systemctl enable ovn-central.service
ovn-central.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ovn-central
+lib/neutron_plugins/ovn_agent:_start_process:222  sudo systemctl restart ovn-central.service
Job for ovn-central.service failed because a timeout was exceeded.
根据https://stackoverflow.com/questions/67924432/openstack-devstack-job-for-ovn-central-service-failed-because-a-timeout-was-e
这是由于/var/run/openvswitch/ovnsb_db.sock这个文件路径不对,将lib/neutron_plugins/ovn_agent文件函数start_ovn中的$OVS_RUNDIR替换为$OVN_RUNDIR
但在我的系统中并没有ovnsb_db.sock这个文件
尚未解决
 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值