centos7下安装openstack train版本的dashboard遇到的大坑

按照官方手册最小化安装完成后重启httpd服务失败,journalctl -ex查询显示错误信息如下:

Mar 13 12:25:24 controller python2[24903]: File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 29, i

Mar 13 12:25:24 controller python2[24903]: import horizon

Mar 13 12:25:24 controller python2[24903]: ImportError: No module named horizon

Mar 13 12:25:24 controller systemd[1]: httpd.service: control process exited, code=exited status=1

Mar 13 12:25:24 controller systemd[1]: Failed to start The Apache HTTP Server.

-- Subject: Unit httpd.service has failed

Mar 13 12:25:24 controller python2[24903]: File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 29, i

Mar 13 12:25:24 controller python2[24903]: import horizon

Mar 13 12:25:24 controller python2[24903]: ImportError: No module named horizon

Mar 13 12:25:24 controller systemd[1]: httpd.service: control process exited, code=exited status=1

Mar 13 12:25:24 controller systemd[1]: Failed to start The Apache HTTP Server.

-- Subject: Unit httpd.service has failed

应该是python没有找到horizon包。

检查dashboard安装目录,发现确实没有找到horizon包,显然是安装遗漏了horizon,需要自己从官方代码仓里面拷贝过来

 操作方法供参考:

$ git clone https://git.openstack.org/openstack/horizon -b stable/train --depth=1

$ cd horizon

$ cp  -rf ./horizon /usr/share/openstack-dashboard/

$ systemctl restart httpd

纠正后,此问题消失,如果还不行的话,就要参考另外一位大佬的帖子了:

易陆发现/bbs168x - BBS168xicon-default.png?t=M276http://wwww.yunshb.cn/thread-1846-1-1.html

官方dashboard安装指导书:

OpenStack Docs: Install and configure for Red Hat Enterprise Linux and CentOSicon-default.png?t=M276https://docs.openstack.org/horizon/stein/install/install-rdo.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值