-
Bug
-
Resolution: Done
-
Critical
-
2.2.1
-
False
-
-
False
-
Fixed an issue where certified content would display incorrectly in private automation hub when synced.
-
Release Note
-
Approved
Description
Fresh AAP 2.2.1 installation, logged in to PAH, updated connection/credentials data for RH collections, synced the content. All good at this point. Then navigate to Collections -> Red Hat Certified and seeing this:
Sep 15 15:07:05 idm3 gunicorn[1322]: pulp [None]: django.request:ERROR: Internal Server Error: /api/galaxy/_ui/v1/repo/rh-certified/
Sep 15 15:07:05 idm3 gunicorn[1322]: Traceback (most recent call last):
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
Sep 15 15:07:05 idm3 gunicorn[1322]: response = get_response(request)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
Sep 15 15:07:05 idm3 gunicorn[1322]: response = wrapped_callback(request, *callback_args, **callback_kwargs)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
Sep 15 15:07:05 idm3 gunicorn[1322]: return view_func(*args, **kwargs)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/viewsets.py", line 125, in view
Sep 15 15:07:05 idm3 gunicorn[1322]: return self.dispatch(request, *args, **kwargs)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/views.py", line 509, in dispatch
Sep 15 15:07:05 idm3 gunicorn[1322]: response = self.handle_exception(exc)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/views.py", line 469, in handle_exception
Sep 15 15:07:05 idm3 gunicorn[1322]: self.raise_uncaught_exception(exc)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
Sep 15 15:07:05 idm3 gunicorn[1322]: raise exc
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/views.py", line 506, in dispatch
Sep 15 15:07:05 idm3 gunicorn[1322]: response = handler(request, *args, **kwargs)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/mixins.py", line 43, in list
Sep 15 15:07:05 idm3 gunicorn[1322]: return self.get_paginated_response(serializer.data)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 768, in data
Sep 15 15:07:05 idm3 gunicorn[1322]: ret = super().data
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 253, in data
Sep 15 15:07:05 idm3 gunicorn[1322]: self._data = self.to_representation(self.instance)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 686, in to_representation
Sep 15 15:07:05 idm3 gunicorn[1322]: return [
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 687, in <listcomp>
Sep 15 15:07:05 idm3 gunicorn[1322]: self.child.to_representation(item) for item in iterable
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 522, in to_representation
Sep 15 15:07:05 idm3 gunicorn[1322]: ret[field.field_name] = field.to_representation(attribute)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/fields.py", line 1886, in to_representation
Sep 15 15:07:05 idm3 gunicorn[1322]: return method(value)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/galaxy_ng/app/api/ui/serializers/collection.py", line 160, in get_latest_version
Sep 15 15:07:05 idm3 gunicorn[1322]: return CollectionVersionBaseSerializer(obj).data
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 555, in data
Sep 15 15:07:05 idm3 gunicorn[1322]: ret = super().data
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 253, in data
Sep 15 15:07:05 idm3 gunicorn[1322]: self._data = self.to_representation(self.instance)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 522, in to_representation
Sep 15 15:07:05 idm3 gunicorn[1322]: ret[field.field_name] = field.to_representation(attribute)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/serializers.py", line 522, in to_representation
Sep 15 15:07:05 idm3 gunicorn[1322]: ret[field.field_name] = field.to_representation(attribute)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/rest_framework/fields.py", line 1886, in to_representation
Sep 15 15:07:05 idm3 gunicorn[1322]: return method(value)
Sep 15 15:07:05 idm3 gunicorn[1322]: File "/usr/lib/python3.9/site-packages/galaxy_ng/app/api/ui/serializers/collection.py", line 70, in get_signatures
Sep 15 15:07:05 idm3 gunicorn[1322]: sig["signing_service"] = signature.signing_service.name
Sep 15 15:07:05 idm3 gunicorn[1322]: AttributeError: 'NoneType' object has no attribute 'name'
Sep 15 15:07:05 idm3 gunicorn[1322]: pulp [-]: - - [15/Sep/2022:12:07:05 +0000] "GET /api/galaxy/_ui/v1/repo/rh-certified/?deprecated=false&offset=0&limit=10 HTTP/1.0" 500 145 "https://idm3.sub.example.com/ui/repo/rh-certified" "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
The page is opening forever in the browser, no hints there what's going on.
Steps to Reproduce
- Install AAP 2.2.1
- Log into PAH
- Configure Collections -> Repository Management -> Remote -> RH Certified
- Sync
- Navigate to Collections -> Red Hat Certified
Actual Behavior
See above, exception and page not loading properly.
Expected Behavior
RH certified collections showing up ok. With AAP 2.2.0 few days ago this worked ok.
- relates to
-
AAH-1937 Disable signatures in the v3 collection detail serializer
- Closed
- mentioned on