问题描述
local_settings.py配置文件内容是这样的。importosfromdjango.utils.translationimportugettext_lazyas_DEBUG=FalseTEMPLATE_DEBUG=DEBUGPROD=FalseUSE_SSL=FalseSECRET_KEY='elj1IWiLoWHgcyYxVLj7cMrFDxWl0'OPENSTACK_HOST="0.0.0.0"ALLOWED_HOSTS=['*']OPENSTACK_KEYSTONE_DEFAULT_ROLE="admin"SESSION_ENGINE='django.contrib.sessions.backends.cache'CACHES={'default':{'BACKEND':'django.core.cache.backends.memcached.MemcachedCache','LOCATION':'controller:11211',}}OPENSTACK_KEYSTONE_URL="http://%s:5000/v3"%OPENSTACK_HOSTOPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT=TrueOPENSTACK_API_VERSIONS={"identity":3,"image":2,"volume":2,}OPENSTACK_KEYSTONE_DEFAULT_DOMAIN="default"OPENSTACK_NEUTRON_NETWORK={'enable_router':False,'enable_quotas':False,'enable_distributed_router':False,'enable_ha_router':False,'enable_lb':False,'enable_firewall':False,'enable_vpn':False,'enable_fip_topology_check':False,}TIME_ZONE="Asia/Shanghai"LOGGING={'version':1,#WhensettoTruethiswilldisableallloggingexcept#forloggersspecifiedinthisconfigurationdictionary.Notethat#ifnothingisspecifiedhereanddisable_existing_loggersisTrue,#django.db.backendswillstilllogunlessitisdisabledexplicitly.'disable_existing_loggers':False,'handlers':{'null':{'level':'DEBUG','class':'django.utils.log.NullHandler',},'console':{#Setthelevelto"DEBUG"forverboseoutputlogging.'level':'INFO','class':'logging.StreamHandler',},},'loggers':{#Loggingfromdjango.db.backendsisVERYverbose,sendtonull#bydefault.'django.db.backends':{'handlers':['null'],'propagate':False,},'horizon':{'handlers':['console'],'propagate':False,},'novaclient':{'handlers':['console'],'propagate':False,},'keystoneclient':{'handlers':['console'],'propagate':False,},'nose.plugins.manager':{'handlers':['console'],'propagate':False,}}}
apache的error.log内容[SatJun1108:15:002016][notice]Apache/2.2.22(Ubuntu)PHP/5.3.10-1ubuntu3.21withSuhosin-Patchmod_wsgi/3.3Python/2.7.3configured--resumingnormaloperations[SatJun1123:15:062016][error]Warning:CouldnotimportHorizondependencies.Thisisnormalduringinstallation.[SatJun1123:15:062016][error][client192.168.255.1]mod_wsgi(pid=25223):ExceptionoccurredprocessingWSGIscript'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.[SatJun1123:15:062016][error][client192.168.255.1]Traceback(mostrecentcalllast):[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py",line170,in__call__[SatJun1123:15:062016][error][client192.168.255.1]self.load_middleware()[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py",line50,inload_middleware[SatJun1123:15:062016][error][client192.168.255.1]mw_class=import_string(middleware_path)[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py",line26,inimport_string[SatJun1123:15:062016][error][client192.168.255.1]module=import_module(module_path)[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/lib/python2.7/importlib/__init__.py",line37,inimport_module[SatJun1123:15:062016][error][client192.168.255.1]__import__(name)[SatJun1123:15:062016][error][client192.168.255.1]ImportError:Nomodulenameddoc[SatJun1123:15:062016][error][client192.168.255.1]mod_wsgi(pid=25223):ExceptionoccurredprocessingWSGIscript'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.[SatJun1123:15:062016][error][client192.168.255.1]Traceback(mostrecentcalllast):[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py",line170,in__call__[SatJun1123:15:062016][error][client192.168.255.1]self.load_middleware()[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py",line50,inload_middleware[SatJun1123:15:062016][error][client192.168.255.1]mw_class=import_string(middleware_path)[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py",line26,inimport_string[SatJun1123:15:062016][error][client192.168.255.1]module=import_module(module_path)[SatJun1123:15:062016][error][client192.168.255.1]File"/usr/lib/python2.7/importlib/__init__.py",line37,inimport_module[SatJun1123:15:062016][error][client192.168.255.1]__import__(name)[SatJun1123:15:062016][error][client192.168.255.1]ImportError:Nomodulenameddoc[SatJun1123:15:062016][error][client192.168.255.1]mod_wsgi(pid=25223):ExceptionoccurredprocessingWSGIscript'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.,referer:http://192.168.255.141/horizon[SatJun1123:15:062016][error][client192.168.255.1]Traceback(mostrecentcalllast):,referer:http://192.168.255.141/horizon