Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-104

Seeing AssertionError: FilterSet model <class 'pulp_ansible.app.models.CollectionVersion'> does not match queryset model <class 'pulp_ansible.app.models.Collection'>

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.2.0rc2
    • None
    • None
    • None
    • False
    • False
    • Undefined

      When viewing the main page
      http://prod.foo.redhat.com:8002/

      Most of the chrome loads, but the main center content is just a spinner.

      pulp: django.request:ERROR: Internal Server Error: /api/automation-hub/_ui/v1/repo/published/
      Traceback (most recent call last):
       File "/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
       response = get_response(request)
       File "/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
       response = self.process_exception_by_middleware(e, request)
       File "/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
       response = wrapped_callback(request, *callback_args, **callback_kwargs)
       File "/venv/lib64/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
       return view_func(*args, **kwargs)
       File "/venv/lib64/python3.6/site-packages/rest_framework/viewsets.py", line 114, in view
       return self.dispatch(request, *args, **kwargs)
       File "/venv/lib64/python3.6/site-packages/rest_framework/views.py", line 505, in dispatch
       response = self.handle_exception(exc)
       File "/venv/lib64/python3.6/site-packages/rest_framework/views.py", line 465, in handle_exception
       self.raise_uncaught_exception(exc)
       File "/venv/lib64/python3.6/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
       raise exc
       File "/venv/lib64/python3.6/site-packages/rest_framework/views.py", line 502, in dispatch
       response = handler(request, *args, **kwargs)
       File "/venv/lib64/python3.6/site-packages/rest_framework/mixins.py", line 38, in list
       queryset = self.filter_queryset(self.get_queryset())
       File "/src/pulp_ansible/pulp_ansible/app/galaxy/v3/views.py", line 132, in filter_queryset
       queryset = super().filter_queryset(queryset)
       File "/venv/lib64/python3.6/site-packages/rest_framework/generics.py", line 150, in filter_queryset
       queryset = backend().filter_queryset(self.request, queryset, self)
       File "/venv/lib64/python3.6/site-packages/django_filters/rest_framework/backends.py", line 90, in filter_queryset
       filterset = self.get_filterset(request, queryset, view)
       File "/venv/lib64/python3.6/site-packages/django_filters/rest_framework/backends.py", line 31, in get_filterset
       filterset_class = self.get_filterset_class(view, queryset)
       File "/venv/lib64/python3.6/site-packages/django_filters/rest_framework/backends.py", line 66, in get_filterset_class
       (filterset_model, queryset.model)
      AssertionError: FilterSet model <class 'pulp_ansible.app.models.CollectionVersion'> does not match queryset model <class 'pulp_ansible.app.models.Collection'>
      

              Unassigned Unassigned
              rh-ee-alikins Adrian Likins (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: