[Disconnected Satellite] Cannot import chunked export if the resulted tarball is smaller than chunk size.

Solution Verified - Updated -

Issue

  • Cannot import chunked export if the resulted tarball is smaller than chunk size.
  • When exporting content using chunks, if the resulting exported content is smaller than the chunk size, the import fails with the following error:

    {"traceback"=>"  File \"/usr/lib/python3.9/site-packages/pulpcore/tasking/pulpcore_worker.py\", line 460, in execute_task\n    result = func(*args, **kwargs)\n  File \"/usr/lib/python3.9/site-packages/pulpcore/app/tasks/importer.py\", line 478, in pulp_import\n    with tarfile.open(path, read_mode) as tar:\n  File \"/usr/lib64/python3.9/tarfile.py\", line 1817, in open\n    return func(name, filemode, fileobj, **kwargs)\n  File \"/usr/lib64/python3.9/tarfile.py\", line 1863, in gzopen\n    fileobj = GzipFile(name, mode + \"b\", compresslevel, fileobj)\n  File \"/usr/lib64/python3.9/gzip.py\", line 173, in __init__\n    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')\n", "description"=>"[Errno 2] No such file or directory: '/var/lib/pulp/imports/2.0/2024-02-26T10-34-29-05-00/export-7a3b71e4-8acb-4c32-a473-cb08ef899047-20240226_1534.tar.gz'"}
    

Environment

  • Red Hat Satellite 6
  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content