OpenStack牛顿仪表板无法访问CentOS 7
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了OpenStack牛顿仪表板无法访问CentOS 7相关的知识,希望对你有一定的参考价值。
我正在尝试在centos 7服务器上安装OpenStack newton。一切正常但我无法连接仪表板。
这是我的全部观察。
[root@controller hpchost1]# service httpd status -l
Redirecting to /bin/systemctl status -l httpd.service
● 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: active (running) since Wed 2017-01-04 05:46:13 UTC; 20s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 4113 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 4157 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force (code=exited, status=0/SUCCESS)
Process: 4133 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=exited, status=0/SUCCESS)
Main PID: 4180 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─4180 /usr/sbin/httpd -DFOREGROUND
├─4182 /usr/sbin/httpd -DFOREGROUND
├─4183 (wsgi:keystone- -DFOREGROUND
├─4184 (wsgi:keystone- -DFOREGROUND
├─4185 (wsgi:keystone- -DFOREGROUND
├─4186 (wsgi:keystone- -DFOREGROUND
├─4187 (wsgi:keystone- -DFOREGROUND
├─4188 (wsgi:keystone- -DFOREGROUND
├─4189 (wsgi:keystone- -DFOREGROUND
├─4190 (wsgi:keystone- -DFOREGROUND
├─4191 (wsgi:keystone- -DFOREGROUND
├─4192 (wsgi:keystone- -DFOREGROUND
├─4193 /usr/sbin/httpd -DFOREGROUND
├─4194 /usr/sbin/httpd -DFOREGROUND
├─4195 /usr/sbin/httpd -DFOREGROUND
├─4196 /usr/sbin/httpd -DFOREGROUND
└─4197 /usr/sbin/httpd -DFOREGROUND
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/actions-delete-selected.template.html'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/action-list.scss'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/split-button.html'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/actions.controller.js'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/actions.directive.js'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/actions.detail.mock.html'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/actions.custom.mock.html'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/action-list.module.js'
Jan 04 05:45:59 controller python[4133]: Copying '/usr/lib/python2.7/site-packages/horizon/static/framework/widgets/action-list/button-tooltip.directive.js'
Jan 04 05:46:13 controller systemd[1]: Started The Apache HTTP Server.
我的httpd error.log
[Wed Jan 04 05:52:03.403879 2017] [core:notice] [pid 4601] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Jan 04 05:52:03.405399 2017] [suexec:notice] [pid 4601] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 04 05:52:03.423890 2017] [auth_digest:notice] [pid 4601] AH01757: generating secret for digest authentication ...
[Wed Jan 04 05:52:03.424849 2017] [lbmethod_heartbeat:notice] [pid 4601] AH02282: No slotmem from mod_heartmonitor
[Wed Jan 04 05:52:03.440126 2017] [mpm_prefork:notice] [pid 4601] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Jan 04 05:52:03.440161 2017] [core:notice] [pid 4601] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
我的openstack-dashboard.conf
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Options All
AllowOverride All
Require all granted
</Directory>
<Directory /usr/share/openstack-dashboard/static>
Options All
AllowOverride All
Require all granted
</Directory>
我无法弄清楚这个问题。一切看起来都不错。请帮我弄清问题。
预先感谢。任何形式的帮助将不胜感激。
答案
以下是openstack部署中需要注意的端口列表。对于仪表板,您只需打开端口80即可。
另一答案
我有同样的问题。
遗憾的是,这是Centos的软件包升级引入的一个错误(我认为是Centos 7.4系列)。为了解决这个问题,您需要将“/etc/httpd/conf.d/openstack-dashboard.conf
”文件更改为:
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static
<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
Options All
AllowOverride All
Require all granted
</Directory>
<Directory /usr/share/openstack-dashboard/static>
Options All
AllowOverride All
Require all granted
</Directory>
然后重启httpd:systemctl restart httpd
。
注意:缺少的项目是:WSGIApplicationGroup%{GLOBAL}
以上是关于OpenStack牛顿仪表板无法访问CentOS 7的主要内容,如果未能解决你的问题,请参考以下文章
原创|NO.C.0007——OpenStack.Dashboard|Horizon仪表盘套件|安装仪表盘套件|通过IE登录|