Hi Jan,

You're encountering ( https://pulp.plan.io/issues/4945 ) which was an issue
in pulpcore. If you upgrade pulpcore to the latest released bits, it
includes a change in the setting's default which should fix this for you.

If you still encounter the issue after upgrading pulpcore, can you specify
the versions you're using.

Thanks!
Brian


On Thu, Aug 1, 2019 at 8:10 AM Jan Hutař <[email protected]> wrote:

> [CCing bbouters]
>
> On 2019-07-28 22:00 +0200, Jan Hutař wrote:
> >Hello,
> >I'm out of ideas on how to create a distribution. Could you please help
> >me? I have this publication:
> >
> >   [root@gprfc075 ~]# http GET
> http://localhost:24817/pulp/api/v3/publications/file/file/add43bfc-05b4-43cb-8423-dc41c144a44c/
> >   HTTP/1.1 200 OK
> >   Allow: GET, DELETE, HEAD, OPTIONS
> >   Connection: close
> >   Content-Length: 356
> >   Content-Type: application/json
> >   Date: Sun, 28 Jul 2019 19:48:07 GMT
> >   Server: gunicorn/19.9.0
> >   Vary: Accept, Cookie
> >   X-Frame-Options: SAMEORIGIN
> >
> >   {
> >       "_created": "2019-07-27T20:59:03.645609Z",        "_href":
> "/pulp/api/v3/publications/file/file/add43bfc-05b4-43cb-8423-dc41c144a44c/",
>
> >"_type": "file.file",        "distributions": [
> >
>  "/pulp/api/v3/distributions/file/file/0dc4f191-c874-4e55-868a-e6e83dcb2e6b/"
> >       ],        "publisher": null,        "repository_version":
> "/pulp/api/v3/repositories/33e56022-89c3-42d2-94c0-ebaa38cb5689/versions/1/"
> >   }
> >
> >and I schedule its distribution like this:
> >
> >   [root@gprfc075 ~]# http POST
> http://localhost:24817/pulp/api/v3/distributions/file/file/ name=xyz123
> base_path=abc987
> publication=/pulp/api/v3/publications/file/file/add43bfc-05b4-43cb-8423-dc41c144a44c/
> >   HTTP/1.1 202 Accepted
> >   Allow: GET, POST, HEAD, OPTIONS
> >   Connection: close
> >   Content-Length: 67
> >   Content-Type: application/json
> >   Date: Sun, 28 Jul 2019 19:49:34 GMT
> >   Server: gunicorn/19.9.0
> >   Vary: Accept, Cookie
> >   X-Frame-Options: SAMEORIGIN
> >
> >   {
> >       "task": "/pulp/api/v3/tasks/9fa6a404-830e-4b8b-9c15-52220f5ffb15/"
> >   }
> >
> >but after some time, getting task details fails with ISE:
> >
> >   [root@gprfc075 ~]# http GET
> http://localhost:24817/pulp/api/v3/tasks/9fa6a404-830e-4b8b-9c15-52220f5ffb15/
> >   HTTP/1.1 500 Internal Server Error
> >   Connection: close
> >   Content-Length: 27
> >   Content-Type: text/html
> >   Date: Sun, 28 Jul 2019 19:50:02 GMT
> >   Server: gunicorn/19.9.0
> >   Vary: Cookie
> >   X-Frame-Options: SAMEORIGIN
> >
> >   <h1>Server Error (500)</h1>
> >
> >Maybe I have misunderstood what the publication and distribution is (I
> >assume in Satellite terminology publication is an content view which
> >needs to be published and promoted into some live cycle environment via
> >distribution and that makes it's content downloadable)?
> >
> >Feel free to look around and experiment in my setup:
> >
> >   [email protected]   # passwd is redhat
> >
> >Traceback I got in journal is attached.
> >
> >Thank you in advance,
> >Jan
> >
> >
> >
> >--
> >Jan Hutar            Satellite QA
> >[email protected]   Red Hat, Inc.
>
> >Jul 28 15:49:55 gprfc075.sbu.lab.eng.bos.redhat.com dhclient[7957]:
> DHCPREQUEST on em1 to 10.19.43.29 port 67 (xid=0x7c416cc4)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> pulp: django.request:ERROR: Internal Server Error:
> /pulp/api/v3/tasks/9fa6a404-830e-4b8b-9c15-52220f5ffb15/
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> Traceback (most recent call last):
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/django/core/handlers/exception.py",
> line 34, in inner
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> response = get_response(request)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py",
> line 115, in _get_response
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> response = self.process_exception_by_middleware(e, request)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/django/core/handlers/base.py",
> line 113, in _get_response
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/django/views/decorators/csrf.py",
> line 54, in wrapped_view
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> return view_func(*args, **kwargs)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/viewsets.py",
> line 116, in view
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> return self.dispatch(request, *args, **kwargs)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/views.py",
> line 495, in dispatch
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> response = self.handle_exception(exc)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/views.py",
> line 455, in handle_exception
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> self.raise_uncaught_exception(exc)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/views.py",
> line 492, in dispatch
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> response = handler(request, *args, **kwargs)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/mixins.py",
> line 58, in retrieve
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> return Response(serializer.data)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/serializers.py",
> line 563, in data
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]: ret
> = super(Serializer, self).data
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/serializers.py",
> line 262, in data
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> self._data = self.to_representation(self.instance)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/serializers.py",
> line 530, in to_representation
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> ret[field.field_name] = field.to_representation(attribute)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/relations.py",
> line 542, in to_representation
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]: for
> value in iterable
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/relations.py",
> line 542, in <listcomp>
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]: for
> value in iterable
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/app/serializers/task.py",
> line 29, in to_representation
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> return serializer.data.get('_href')
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/serializers.py",
> line 563, in data
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]: ret
> = super(Serializer, self).data
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/serializers.py",
> line 262, in data
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> self._data = self.to_representation(self.instance)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/rest_framework/serializers.py",
> line 530, in to_representation
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> ret[field.field_name] = field.to_representation(attribute)
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> File
> "/usr/local/lib/pulp/lib64/python3.6/site-packages/pulpcore/app/serializers/fields.py",
> line 248, in to_representation
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> host.strip('/'),
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> AttributeError: 'NoneType' object has no attribute 'strip'
> >Jul 28 15:50:02 gprfc075.sbu.lab.eng.bos.redhat.com gunicorn[28351]:
> 127.0.0.1 - admin [28/Jul/2019:19:50:02 +0000] "GET
> /pulp/api/v3/tasks/9fa6a404-830e-4b8b-9c15-52220f5ffb15/ HTTP/1.1" 500 27
> "-" "HTTPie/0.9.4"
> >Jul 28 15:50:04 gprfc075.sbu.lab.eng.bos.redhat.com dhclient[7957]:
> DHCPREQUEST on em1 to 10.19.43.29 port 67 (xid=0x7c416cc4)
>
>
> --
> Jan Hutar            Satellite QA
> [email protected]   Red Hat, Inc.
>
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to