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

[Podman v5.5] Importing a tar.xz archive as a container fails with error 'layer 0 <...> does not match config's DiffID'

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.7
    • rhel-9.6
    • podman
    • Yes
    • Important
    • 7
    • rhel-container-tools
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • RUN 268, RUN 269, RUN 270, RUN 271, RUN 272, RUN 273, RUN 274
    • 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
       

       

              rhn-support-jnovy Jindrich Novy
              tsweeney@redhat.com Tom Sweeney
              Container Runtime Eng Bot Container Runtime Eng Bot
              Container Runtime Bugs Bot Container Runtime Bugs Bot
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: