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

unable to install pkgconf-m4 using buildah bud 1.33.7

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.9.0
    • buildah
    • None
    • None
    • Moderate
    • TestCaseProvided
    • sst_container_tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

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

      Trying to build an image using buildah bud

      Please provide the package NVR for which bug is seen: pkgconf-m4 

      How reproducible: 100%

      Steps to reproduce

      1. Dockerfile
        FROM registry.redhat.io/ubi8/ubi:latest
        USER root
        ENV HOME=/home/ocp
        ENV TERM="xterm-256color"
        ENV PS1="[\W]# "
        ENV LS_COLORS="(redacted)"
        ENV REGISTRY_AUTH_FILE="/home/ocp/auth.json"
        RUN dnf install --disablerepo=rhel-8-for-x86_64-appstream-rpms --disablerepo=rhel-8-for-x86_64-baseos-rpms -y container-selinux &&     dnf clean all -y && rm -rf /var/cache/dnf
        RUN dnf install -y pkgconf-m4
      2.  using buildah on RHEL 8.9
        buildah --storage-driver=vfs bud --format=oci --tls-verify=true --no-cache -f /tmp/03832740/Dockerfile -t ubi-test

      Expected results

      The pckconf-m4 should be installed without any issues.

      Actual results

      STEP 9/9: RUN dnf install -y pkgconf-m4

      .....

      Error: Cannot create repo temporary directory "/var/cache/dnf/rhel-8-for-x86_64-baseos-rpms-ae020183d801ada1/libdnf.x6bqzH": Success
      Error: building at STEP "RUN dnf install -y pkgconf-m4": while running runtime: exit status 1

       

      ADDITIONAL NOTE:

      the same dockerfile is working with podman build

      podman build --format=oci --tls-verify=true --no-cache -f /tmp/03832740/Dockerfile -t ubi-test1

            tsweeney@redhat.com Tom Sweeney
            rhn-support-rmypala Rachitha Mypala
            Container Runtime Eng Bot Container Runtime Eng Bot
            Container Runtime Bugs Bot Container Runtime Bugs Bot
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: