Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-85218

Importing a tar.xz archive as a container fails with error 'layer 0 <...> does not match config's DiffID' - [RHEL 9.6] 0day

    • podman-5.4.0-7.el9_6
    • Yes
    • Important
    • 0day
    • 2
    • rhel-sst-container-tools
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • RUN 268, RUN 269
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      This issue was reported upstream in https://github.com/containers/podman/issues/25593.  The following is a cut/paste from that issue.

      Issue Description

      Importing a tar.xz archive as a container fail with the following error :
      Error: writing blob: layer 0 (blob "sha256:57eca825bd922bd6aa59c30ac95be594144816b3951caefa2cf0be2d86db12d2"/""/"sha256:ebccf21abea5bba2d53df5158901c325b33a5cb1a17c44ddd6cc97c6036a9dcc") does not match config's DiffID "sha256:57eca825bd922bd6aa59c30ac95be594144816b3951caefa2cf0be2d86db12d2"
       
      I tested with an archive that the size is ~45MB without problem.

      Steps to reproduce the issue

      Steps to reproduce the issue

      1. wget https://mirror.init7.net/gentoo//releases/amd64/autobuilds/current-stage3-amd64-musl-hardened/stage3-amd64-musl-hardened-20250309T170330Z.tar.xz
      2. podman import stage3-amd64-musl-hardened-20250309T170330Z.tar.xz gentoo-musl:latest

      Describe the results you received

      Error: writing blob: layer 0 (blob "sha256:57eca825bd922bd6aa59c30ac95be594144816b3951caefa2cf0be2d86db12d2"/""/"sha256:ebccf21abea5bba2d53df5158901c325b33a5cb1a17c44ddd6cc97c6036a9dcc") does not match config's DiffID "sha256:57eca825bd922bd6aa59c30ac95be594144816b3951caefa2cf0be2d86db12d2"
       

      Describe the results you expected

      Import task successfull (with podman-5.3.2):
      Getting image source signatures
      Copying blob 57eca825bd92 done |Copying config 0b14cb6fdc done |Writing manifest to image destination
      sha256:0b14cb6fdc54455ab9964482dff111d02a696a3846df2d4db5bdf1dae6ce0582
       

       

              container-runtime-eng Container Runtime Eng Bot
              tsweeney@redhat.com Tom Sweeney
              Container Runtime Eng Bot Container Runtime Eng Bot
              Edward Shen Edward Shen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: