zoukankan      html  css  js  c++  java
  • openstack错误-dashboard-not found

    1 错误详细

    系统centos 7.6,按照train版本的官方文档(https://docs.openstack.org/horizon/train/install/install-rdo.html),安装了控制面板(dashborad)。

    但在进行登录,访问http://服务地址/dashboard的时候,跳转到了登录地址http://服务地址/auth/login/?next=/dashboard/

    出现错误

    Not Found

    The requested URL /auth/login/ was not found on this server.

    2 错误分析

    检查了相关日志,并没有发现有关的错误信息。从跳转后的报错,没有找到相应的url,怀疑可能是路径错误。

    于是尝试使用http://服务地址/dashboard/auth/login/进行访问,发现可以访问,但是显示不正常,如下图所示,应该是css和js文件路径有问题。

    所以定位了问题,就是服务路径配置问题。

    3 解决

    分析相关的配置文件/etc/httpd/conf.d/openstack-dashboard.conf和/etc/openstack-dashboard/local_settings。

    发现/etc/httpd/conf.d/openstack-dashboard.conf文件里的有相关的路径设置,做了如下改动(去掉了路径中的dashboard):

    #WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
    WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
    #Alias /dashboard/static /usr/share/openstack-dashboard/static
    Alias /static /usr/share/openstack-dashboard/static

    重启httpd服务后,使用http://服务地址/ 访问网站,恢复正常:

    4 结论

    该错误怀疑是red hat系操作系统上openstack软件包的bug。

  • 相关阅读:
    UVA 12546 LCM Pair Sum
    两两间的距离都是整数的点集
    Codeforces 11.27
    Codeforces 11.27 B
    UVA 105
    打印自身的程序
    Interval DP
    Tree DP
    参加第五次全国工程建设行业信息化建设高峰论坛 (个人的一点感想)
    基础资料分类及清单版本管理
  • 原文地址:https://www.cnblogs.com/learn2teach/p/12443185.html
Copyright © 2011-2022 走看看