Horizon monitoring - overview throw HTTP 500 error AttributeError: 'Settings' object has no attribute 'DASHBOARDS'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
Kolla all in one deployment with enabled_monasca = yes, will throw HTTP 500 error in Horizon when you click Overview tab. It's down to the monasca-ui code being updated and new files being introduced but Kolla docker/
As a fix I've added the following lines to kolla_extend_start script
function config_monasca_ui {
config_
config_
touch /etc/openstack-
}
The reason why I didn't copy ${SITE_
- one the loca_settings.py is not included in the kolla_extend_start
- two the monitoring file has changed and also introduce new roles
In horizon.log you can see the following error
[Wed Mar 30 19:33:15.713250 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] Default policy file for monitoring is not defined. Check DEFAULT_
[Wed Mar 30 19:33:15.713530 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] No policy rules for service 'monitoring' in /etc/openstack-
[Wed Mar 30 19:33:15.716090 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] Failed to parse dashboard links by project, returning defaults.
[Wed Mar 30 19:33:15.721024 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] Internal Server Error: /monitoring/
[Wed Mar 30 19:33:15.721050 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] Traceback (most recent call last):
[Wed Mar 30 19:33:15.721054 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721058 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] response = get_response(
[Wed Mar 30 19:33:15.721061 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721064 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] response = self.process_
[Wed Mar 30 19:33:15.721068 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721086 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] response = wrapped_
[Wed Mar 30 19:33:15.721090 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721095 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return view_func(request, *args, **kwargs)
[Wed Mar 30 19:33:15.721101 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721104 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return view_func(request, *args, **kwargs)
[Wed Mar 30 19:33:15.721107 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721110 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return view_func(request, *args, **kwargs)
[Wed Mar 30 19:33:15.721112 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721115 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return view_func(request, *args, **kwargs)
[Wed Mar 30 19:33:15.721118 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721121 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return view_func(request, *args, **kwargs)
[Wed Mar 30 19:33:15.721123 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721126 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return self.dispatch(
[Wed Mar 30 19:33:15.721129 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721132 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return handler(request, *args, **kwargs)
[Wed Mar 30 19:33:15.721135 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721138 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] context = self.get_
[Wed Mar 30 19:33:15.721140 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721143 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] context[
[Wed Mar 30 19:33:15.721146 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721149 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] return settings.DASHBOARDS
[Wed Mar 30 19:33:15.721152 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] File "/var/lib/
[Wed Mar 30 19:33:15.721158 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] val = getattr(
[Wed Mar 30 19:33:15.721163 2022] [wsgi:error] [pid 981:tid 140127669282560] [remote 172.16.71.100:2275] AttributeError: 'Settings' object has no attribute 'DASHBOARDS'
This problem is in stable/yoga.