zoukankan      html  css  js  c++  java
  • [原]openstack-kilo--issue(十九) ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named main

    查看此问题的时候请先查看 这个问题包含在(十)中,此篇只是从(十)中分离出来

    openstack-kilo--issue(十)ERROR: openstack Unable to establish connection to http://controller:35357/v3/auth/tokens

    ==========================      如果遇到下面这样的问题   请参考上面的网址的问题二的解决方案    ====================================

    ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named main

    复制代码
     1 [root@controller system]# systemctl status httpd.service
     2 httpd.service - The Apache HTTP Server
     3    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
     4   Drop-In: /usr/lib/systemd/system/httpd.service.d
     5            └─openstack-dashboard.conf
     6    Active: failed (Result: exit-code) since Tue 2016-12-27 15:37:33 CST; 15min ago
     7   Process: 8204 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear (code=e
     8 
     9 Dec 27 15:37:33 controller python[8204]: File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getat
    10 Dec 27 15:37:33 controller python[8204]: self._setup(name)
    11 Dec 27 15:37:33 controller python[8204]: File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup
    12 Dec 27 15:37:33 controller python[8204]: self._wrapped = Settings(settings_module)
    13 Dec 27 15:37:33 controller python[8204]: File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in __init
    14 Dec 27 15:37:33 controller python[8204]: % (self.SETTINGS_MODULE, e)
    15 Dec 27 15:37:33 controller python[8204]: ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.
    16 Dec 27 15:37:33 controller systemd[1]: httpd.service: control process exited, code=exited status=1
    17 Dec 27 15:37:33 controller systemd[1]: Failed to start The Apache HTTP Server.
    18 Dec 27 15:37:33 controller systemd[1]: Unit httpd.service entered failed state.
    复制代码

    openstack-dashboard也出现了变化

    [root@controller httpd.service.d]# openstack-status 
    == Nova services ==
    openstack-nova-api:                     active
    openstack-nova-cert:                    active
    openstack-nova-compute:                 active
    openstack-nova-network:                 inactive  (disabled on boot)
    openstack-nova-scheduler:               active
    openstack-nova-conductor:               active
    == Glance services ==
    openstack-glance-api:                   active
    openstack-glance-registry:              active
    == Keystone service ==
    openstack-keystone:                     active
    == Horizon service ==
    openstack-dashboard:                    uncontactable
    == neutron services ==
    neutron-server:                         active
  • 相关阅读:
    python系列十二:python3模块
    python系列十一:python3数据结构
    python系列十:python3函数
    python系列九:python3迭代器和生成器
    python系列八:Python3条件控制&循环语句
    python系列七:Python3字典dict
    python系列六:Python3元组tuple
    Linux Ubuntu 安装SSH服务
    Linux Ubuntu 查看IP
    Linux 基础命令
  • 原文地址:https://www.cnblogs.com/horizonli/p/6306868.html
Copyright © 2011-2022 走看看