OpenStack 安装Dashboard后重启 httpd服务失败

從此迷花粉 发布于 2017/08/16 18:12
阅读 1K+
收藏 0

CentOS7 + OpenStack-Ocata 单机

错误:Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

详细:

httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since 三 2017-08-16 18:06:01 CST; 3min 15s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 105804 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 105822 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=1/FAILURE)
 Main PID: 103041 (code=exited, status=0/SUCCESS)

8月 16 18:06:01 etcd-node1 python[105822]: INSTALLED_APPS,
8月 16 18:06:01 etcd-node1 python[105822]: File "/usr/share/openstack-dashboard/openstack_dashboard/utils/settings.py", line 122, in update_dashboards
8月 16 18:06:01 etcd-node1 python[105822]: module = import_module(_app)
8月 16 18:06:01 etcd-node1 python[105822]: File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
8月 16 18:06:01 etcd-node1 python[105822]: __import__(name)
8月 16 18:06:01 etcd-node1 python[105822]: ImportError: No module named ironic_ui
8月 16 18:06:01 etcd-node1 systemd[1]: httpd.service: control process exited, code=exited status=1
8月 16 18:06:01 etcd-node1 systemd[1]: Failed to start The Apache HTTP Server.
8月 16 18:06:01 etcd-node1 systemd[1]: Unit httpd.service entered failed state.
8月 16 18:06:01 etcd-node1 systemd[1]: httpd.service failed.

加载中
0
從此迷花粉
從此迷花粉

penstack是基于python开发,有很多依赖包,可能在安装过程成缺少依赖包,在openstack源码中每个组件下面都有一个requirements.txt文件,里面是安装依赖包的脚本,可下载到计算机上检查安装:

# 直接安装的方法

pip install -r requirements.txt

# 离线安装的方法

pip install -r requirements.txt -d /root/openstack_python_pak/

根据requirements安装依赖包,取消索引,以本地文件夹为源安装的方法

pip install -r requirements.txt --no-index -f file:///root/openstack_python_pak/

离线安装的好处在于节省时间,另外,还可以将openstack的几个服务的requirements.txt文件都整合起来,根据这个整合的requirements.txt文件就能把所有服务的python依赖包下载下来。

返回顶部
顶部