Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-34555

Flatpak registry is sometimes inaccessible with Pulp Container 2.24.2

XMLWordPrintable

    • 3
    • False
    • Moderate
    • sat-artemis
    • None
    • None
    • None
    • None

      Note: the following issue seems dependent on synced container manifests. Not all machines reproduce the problem.

      The following error occurs when you access the Flatpak registry:

       

       

      May 16 21:46:19 centos9-katello-devel pulpcore-api[40526]: pulp [3ef59aba1a1d4e4184765631472b310b]:  - - [16/May/2025:21:46:19 +0000] "GET /index/static?label%3Aorg.flatpak.ref%3Aexists=1&architecture=amd64&os=linux&tag=latest HTTP/1.1" 500 145 "-" "rest-client/2.1.0 (linux x86_64) ruby/3.0.7p220"
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]: pulp [a1694ef6c2eb4635b57fc00c14361018]: django.request:ERROR: Internal Server Error: /index/static
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]: Traceback (most recent call last):
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/django/core/handlers/exception.py", line 55, in inner
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    response = get_response(request)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:               ^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    response = wrapped_callback(request, *callback_args, **callback_kwargs)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/django/views/decorators/csrf.py", line 56, in wrapper_view
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    return view_func(*args, **kwargs)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/django/views/generic/base.py", line 104, in view
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    return self.dispatch(request, *args, **kwargs)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/rest_framework/views.py", line 509, in dispatch
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    response = self.handle_exception(exc)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/rest_framework/views.py", line 469, in handle_exception
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    self.raise_uncaught_exception(exc)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    raise exc
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/rest_framework/views.py", line 506, in dispatch
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    response = handler(request, *args, **kwargs)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/pulpcore/cache/cache.py", line 173, in cached_function
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    response = self.make_entry(key, bk, func, args, kwargs, self.default_expires_ttl)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/pulpcore/cache/cache.py", line 206, in make_entry
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    response = handler(*args, **kwargs)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:               ^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/pulp_container/app/registry_api.py", line 718, in get
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    response = super().get(request)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:               ^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/pulp_container/app/registry_api.py", line 678, in get
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    config_data = self.get_manifest_config(manifest, storage)
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:  File "/usr/lib/python3.12/site-packages/pulp_container/app/registry_api.py", line 612, in get_manifest_config
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:    config["os"] = config_data["os"]
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]:                   ~~~~~~~~~~~^^^^^^
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]: KeyError: 'os'
      May 16 21:46:19 centos9-katello-devel pulpcore-api[35350]: pulp [a1694ef6c2eb4635b57fc00c14361018]:  - - [16/May/2025:21:46:19 +0000] "GET /index/static?label%3Aorg.flatpak.ref%3Aexists=1&architecture=amd64&os=linux&tag=latest HTTP/1.1" 500 145 "-" "rest-client/2.1.0 (linux x86_64) ruby/3.0.7p220" 

       

       

      Reproducer command:

       

      curl "https://`hostname`/index/static?label%3Aorg.flatpak.ref%3Aexists=1&architecture=amd64&os=linux&tag=latest

       

       

              Unassigned Unassigned
              iballou@redhat.com Ian Ballou
              Vladimír Sedmík Vladimír Sedmík
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: