【问题标题】:OpenStack newton dashboard unreachable CentOS 7OpenStack newton仪表板无法访问CentOS 7
【发布时间】:2017-05-18 09:34:15
【问题描述】:

我正在尝试在 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 错误日志

[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>

我无法找出问题所在。对我来说一切都很好。请帮我找出问题所在。

提前致谢。任何形式的帮助将不胜感激。

【问题讨论】:

    标签: apache centos redhat openstack


    【解决方案1】:

    以下是在 openstack 部署中需要注意的端口列表。对于仪表板,您只需打开端口 80。

    List of ports , openstack

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题。

      遗憾的是,这是 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}

      【讨论】:

        猜你喜欢
        • 2017-10-20
        • 1970-01-01
        • 2016-12-08
        • 2018-08-25
        • 2016-03-27
        • 2017-03-04
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多