我正在尝试在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>
我无法弄清楚问题所在。一切看起来都不错。请帮我解决问题。
提前感谢。任何形式的帮助将不胜感激。
答案 0 :(得分:0)
以下是openstack部署中需要注意的端口列表。对于仪表板,您只需打开端口80.
答案 1 :(得分:0)
我遇到了同样的问题。
可悲的是,这是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}