我重新配置openstack配置完门户Dashboard
1,其中有一步骤
[root@controller ~]#setsebool -P httpd_can_network_connect on
setsebool: SELinux is disabled. 其他步骤无异常 2,在web浏览10.0.0.151/dashboard,可以访问输入用户和密码,10.0.0.151/dashboard/admin页面提示“错误,刷新,请联系管理员
3,我就将SELinux 在config中改成SELINUX=enforcing,重启服务器
4,重启后,10.0.0.151/dashboard,直接500错误,http://10.0.0.151正常
请到大家多多帮忙,是在没辙,水平有限
以下是日志和配置文件
[root@controller ~]#vi /etc/openstack-dashboard/local_settings ALLOWED_HOSTS =['localhost','controller','10.0.0.151']
CACHES = { 'default': { 'BACKEND' :'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION' : '127.0.0.1:11211', } } OPENSTACK_HOST ="controller"
[root@controller ~]#tail -40 /etc/httpd/logs/error_log [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] mod_wsgi (pid=1686): Exception occurredprocessing WSGI script'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'. [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] Traceback (most recent call last): [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line219, in __call__ [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] self.load_middleware() [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line37, in load_middleware [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] formiddleware_path in settings.MIDDLEWARE_CLASSES: [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/lib/python2.6/site-packages/django/utils/functional.py", line184, in inner [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] self._setup() [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42,in _setup [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] self._wrapped = Settings(settings_module) [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 93,in __init__ [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] mod= importlib.import_module(self.SETTINGS_MODULE) [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/lib/python2.6/site-packages/django/utils/importlib.py", line35, in import_module [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] __import__(name) [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py",line 223, in <module> [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] from local.local_settings import * # noqa [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py",line 93, in <module> [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] SECRET_KEY =secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH,'.secret_key_store')) [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] File"/usr/lib/python2.6/site-packages/horizon/utils/secret_key.py", line64, in generate_or_read_from_file [Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] raise FilePermissionError("Insecure key file permissions!")
[Fri Mar 13 21:18:032015] [error] [client 10.0.0.150] FilePermissionError:Insecure key file permissions!
[root@controller ~]# ll /var/lib/openstack-dashboard
total 0
|