按照官方文档配置,其他流程算正常。
http://controller 是正常打开页面的看apache2的日志错误如下。请教大神,这么到底哪里配错了
/var/log/apache2> tail -f error.log
[Tue Sep 27 07:48:23.020727 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] mod_wsgi (pid=6041): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.
[Tue Sep 27 07:48:23.021084 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] mod_wsgi (pid=6041): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Tue Sep 27 07:48:23.021375 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] Traceback (most recent call last):
[Tue Sep 27 07:48:23.021633 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 16, in <module>
[Tue Sep 27 07:48:23.021979 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] application = get_wsgi_application()
[Tue Sep 27 07:48:23.022328 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Tue Sep 27 07:48:23.022729 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] django.setup()
[Tue Sep 27 07:48:23.023596 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 17, in setup
[Tue Sep 27 07:48:23.024743 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue Sep 27 07:48:23.026178 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
[Tue Sep 27 07:48:23.027102 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] self._setup(name)
[Tue Sep 27 07:48:23.027209 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
[Tue Sep 27 07:48:23.027480 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] self._wrapped = Settings(settings_module)
[Tue Sep 27 07:48:23.027530 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
[Tue Sep 27 07:48:23.027579 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue Sep 27 07:48:23.027622 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Tue Sep 27 07:48:23.027666 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] __import__(name)
[Tue Sep 27 07:48:23.027938 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 294, in <module>
[Tue Sep 27 07:48:23.028039 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] from local.local_settings import * # noqa
[Tue Sep 27 07:48:23.028175 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 274
[Tue Sep 27 07:48:23.028446 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] 'default_ipv4_subnet_pool_label': None,
[Tue Sep 27 07:48:23.028484 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] ^
[Tue Sep 27 07:48:23.028511 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] IndentationError: unexpected indent
|
|