horizon throws error 500 for missing django module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Expired
|
Undecided
|
Unassigned |
Bug Description
I used the rocky branch from git and turned on the dev mode in the all.yml. When I finished the deploy of openstack and tried to get access to the dashboard, the web throws the Error 500 like following:
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable to complete your request.
> Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
> More information about this error may be available in the server error log.
When I looked into the logs of horizon, it shows following errors:
[Mon Dec 24 14:50:14.689738 2018] [:error] [pid 44] WARNING:root:Use of this 'djano.wsgi' file has been deprecated since the Rocky release in favor of 'wsgi.py' in the 'openstack_
[Mon Dec 24 14:50:14.694576 2018] [:error] [pid 44] [remote 172.29.236.5:68] mod_wsgi (pid=44): Target WSGI script '/var/lib/
[Mon Dec 24 14:50:14.694608 2018] [:error] [pid 44] [remote 172.29.236.5:68] mod_wsgi (pid=44): Exception occurred processing WSGI script '/var/lib/
[Mon Dec 24 14:50:14.694644 2018] [:error] [pid 44] [remote 172.29.236.5:68] Traceback (most recent call last):
[Mon Dec 24 14:50:14.694679 2018] [:error] [pid 44] [remote 172.29.236.5:68] File "/var/lib/
[Mon Dec 24 14:50:14.694751 2018] [:error] [pid 44] [remote 172.29.236.5:68] application = get_wsgi_
[Mon Dec 24 14:50:14.694808 2018] [:error] [pid 44] [remote 172.29.236.5:68] File "/var/lib/
[Mon Dec 24 14:50:14.694854 2018] [:error] [pid 44] [remote 172.29.236.5:68] return WSGIHandler()
[Mon Dec 24 14:50:14.694878 2018] [:error] [pid 44] [remote 172.29.236.5:68] File "/var/lib/
[Mon Dec 24 14:50:14.694918 2018] [:error] [pid 44] [remote 172.29.236.5:68] self.load_
[Mon Dec 24 14:50:14.694940 2018] [:error] [pid 44] [remote 172.29.236.5:68] File "/var/lib/
[Mon Dec 24 14:50:14.694997 2018] [:error] [pid 44] [remote 172.29.236.5:68] middleware = import_
[Mon Dec 24 14:50:14.695027 2018] [:error] [pid 44] [remote 172.29.236.5:68] File "/var/lib/
[Mon Dec 24 14:50:14.695070 2018] [:error] [pid 44] [remote 172.29.236.5:68] module = import_
[Mon Dec 24 14:50:14.695093 2018] [:error] [pid 44] [remote 172.29.236.5:68] File "/usr/lib64/
[Mon Dec 24 14:50:14.695132 2018] [:error] [pid 44] [remote 172.29.236.5:68] __import__(name)
[Mon Dec 24 14:50:14.695168 2018] [:error] [pid 44] [remote 172.29.236.5:68] ImportError: No module named middleware
As far as I can see from the log, it probably missed something. But how to fix it?
ps. When I turned off the dev mode, it works fine.
Does this bug still occur with latest code? If yes - please upload new logs (Horizon logs from /var/log/ kolla/horizon/ * and docker logs horizon)