Cannot list audits

Bug #1929513 reported by Min Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher-dashboard
Invalid
Undecided
Unassigned

Bug Description

When I list the audits on the dashboard, the server returned 500, and horizon reported the following error:
2021-05-25 06:34:22.970566 warnings.warn(
2021-05-25 06:34:22.974213 /usr/lib/python3.8/logging/__init__.py:1084: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
2021-05-25 06:34:22.974234 stream.write(msg + self.terminator)
2021-05-25 06:34:22.974240 Internal Server Error: /project/audits/
2021-05-25 06:34:22.974242 Traceback (most recent call last):
2021-05-25 06:34:22.974243 File "/var/lib/openstack/lib/python3.8/site-packages/django/urls/base.py", line 75, in reverse
2021-05-25 06:34:22.974246 extra, resolver = resolver.namespace_dict[ns]
2021-05-25 06:34:22.974248 KeyError: 'audits'
2021-05-25 06:34:22.974249
2021-05-25 06:34:22.974251 During handling of the above exception, another exception occurred:
2021-05-25 06:34:22.974253
2021-05-25 06:34:22.974254 Traceback (most recent call last):
2021-05-25 06:34:22.974255 File "/var/lib/openstack/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
2021-05-25 06:34:22.974257 response = get_response(request)
2021-05-25 06:34:22.974259 File "/var/lib/openstack/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
2021-05-25 06:34:22.974260 response = self.process_exception_by_middleware(e, request)
2021-05-25 06:34:22.974262 File "/var/lib/openstack/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
2021-05-25 06:34:22.974264 response = wrapped_callback(request, *callback_args, **callback_kwargs)
2021-05-25 06:34:22.974266 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 52, in dec
2021-05-25 06:34:22.974267 return view_func(request, *args, **kwargs)
2021-05-25 06:34:22.974268 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 36, in dec
2021-05-25 06:34:22.974270 return view_func(request, *args, **kwargs)
2021-05-25 06:34:22.974271 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 36, in dec
2021-05-25 06:34:22.974273 return view_func(request, *args, **kwargs)
2021-05-25 06:34:22.974274 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/decorators.py", line 113, in dec
2021-05-25 06:34:22.974276 return view_func(request, *args, **kwargs)
2021-05-25 06:34:22.974277 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/base.py", line 71, in view
2021-05-25 06:34:22.974279 return self.dispatch(request, *args, **kwargs)
2021-05-25 06:34:22.974280 File "/var/lib/openstack/lib/python3.8/site-packages/django/views/generic/base.py", line 97, in dispatch
2021-05-25 06:34:22.974281 return handler(request, *args, **kwargs)
2021-05-25 06:34:22.974283 File "/var/lib/openstack/lib/python3.8/site-packages/horizon/tables/views.py", line 226, in get
2021-05-25 06:34:22.974284 context = self.get_context_data(**kwargs)
2021-05-25 06:34:22.974286 File "/var/lib/openstack/lib/python3.8/site-packages/watcher_dashboard/content/audits/views.py", line 46, in get_context_data
2021-05-25 06:34:22.974288 'url': reverse('horizon:admin:audits:create'),
2021-05-25 06:34:22.974290 File "/var/lib/openstack/lib/python3.8/site-packages/django/urls/base.py", line 81, in reverse
2021-05-25 06:34:22.974293 raise NoReverseMatch(
2021-05-25 06:34:22.974295 django.urls.exceptions.NoReverseMatch: 'audits' is not a registered namespace inside 'horizon:admin'
100.101.89.152 - - [25/May/2021:06:34:19 +0000] "GET /project/audits/ HTTP/1.1" 500 1820

Min Li (limin0801)
Changed in watcher-dashboard:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.