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

[rhel-9.7] Podman system test - as user - Found no UID ranges set aside for user

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • shadow-utils-4.9-15.el9
    • No
    • Moderate
    • rhel-idm-zta
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      podman test running as rootless fails as:

      [2025-07-27 05:01:32] 001-basic.bats
      [05:01:32] START - All [+xxxx] lines that follow are relative to 2025-07-27T05:01:32.
      [+0000s] 1..3
      [+0002s] not ok 1 setup_suite
      [+0002s] # (from function `_prefetch' in file /usr/share/podman/test/system/helpers.bash, line 129,
      [+0002s] #  from function `clean_setup' in file /usr/share/podman/test/system/helpers.bash, line 453,
      [+0002s] #  from function `setup_suite' in test file /usr/share/podman/test/system/setup_suite.bash, line 34)
      [+0002s] #   `clean_setup' failed
      [+0002s] # 
      [+0002s] # [05:01:32.837608483] $ podman image
      [+0002s] # exists
      [+0002s] # quay.io/libpod/testimage:20241011
      [+0002s] # [05:01:32.897498349] [ rc=1 ]
      [+0002s] # $ skopeo copy --preserve-digests docker://quay.io/libpod/testimage:20241011 oci-archive:/tmp/podman-systest-imagecache-1001/quay.io--libpod--testimage--20241011.tar
      [+0002s] # Getting image source signatures
      [+0002s] # Copying blob sha256:33b517cffde0ecb1f424f107b005cdfd614c467b9de2ad334970f800b77a4e70
      [+0002s] # Copying blob sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
      [+0002s] # Copying config sha256:b82e560ed57b77a897379e160371adcf1b000ca885e69c62cbec674777a83850
      [+0002s] # Writing manifest to image destination
      [+0002s] # $ skopeo copy --all oci-archive:/tmp/podman-systest-imagecache-1001/quay.io--libpod--testimage--20241011.tar containers-storage:quay.io/libpod/testimage:20241011
      [+0002s] # time="2025-07-27T05:01:33Z" level=warning msg="Reading allowed ID mappings: reading subuid mappings for user \"podmantest\" and subgid mappings for group \"podmantest\": no subuid ranges found for user \"podmantest\" in /etc/subuid"
      [+0002s] # time="2025-07-27T05:01:33Z" level=warning msg="Found no UID ranges set aside for user \"podmantest\" in /etc/subuid."
      [+0002s] # time="2025-07-27T05:01:33Z" level=warning msg="Found no GID ranges set aside for user \"podmantest\" in /etc/subgid."
      [+0002s] # Getting image source signatures
      [+0002s] # Copying blob sha256:33b517cffde0ecb1f424f107b005cdfd614c467b9de2ad334970f800b77a4e70
      [+0002s] # Copying blob sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4
      [+0002s] # time="2025-07-27T05:01:34Z" level=fatal msg="writing blob: adding layer with blob \"sha256:33b517cffde0ecb1f424f107b005cdfd614c467b9de2ad334970f800b77a4e70\"/\"\"/\"sha256:b66a884aaf08f1c410c61682a7072d68a0d837ba8dc16ff13b9509bdceb32fd2\": unpacking failed (error: exit status 1; output: potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/shadow): Check /etc/subuid and /etc/subgid if configured locally and run \"podman system migrate\": lchown /etc/shadow: invalid argument)"
      [+0002s] # bats warning: Executed 1 instead of expected 3 tests
      [05:01:34] END - [+0002s] total duration since 2025-07-27T05:01:34 

      Please provide the package NVR for which the bug is seen:

      podman-tests-5.5.1-1.el10

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Run the test https://gitlab.com/redhat/centos-stream/tests/kernel/kernel-tests/-/blob/main/container/podman/runtest.sh (make sure to set PODMANUSER env variable)
      2.  
      3.  

       

              ipedrosa@redhat.com Iker Pedrosa
              bgoncalv@redhat.com Bruno Goncalves
              Iker Pedrosa Iker Pedrosa
              Anuj Borah Anuj Borah
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: