Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
podman build will failed when we try to build an image from url. It will try to find Dockfile from a wrong temp directory(record the dir twice). The expect dir is:
/tmp/buildah851125498/docker-firefox-master
But it will try to find the Docker file under:
/tmp/buildah851125498/docker-firefox-master/tmp/buildah851125498/docker-firefox-master
Version-Release number of selected component (if applicable):
podman-2.0.0-0.9.rc7.module+el8.3.0+7084+c16098dd.x86_64
How reproducible:
100%
Steps to Reproduce:
1. podman --log-level debug build github.com/creack/docker-firefox
Actual results:
Command failed with following errors:
Error: error reading info about "/tmp/buildah851125498/docker-firefox-master/tmp/buildah851125498/docker-firefox-master/Dockerfile": stat /tmp/buildah851125498/docker-firefox-master/tmp/buildah851125498/docker-firefox-master/Dockerfile: no such file or directory
Expected results:
Image can be build as expect
Additional info:
From the debug log we can see the files is downloaded to tmp dir normally as expect. But podman will try to find it in a wrong dir. The name of the dir is be record twice in the error message.
DEBU[0000] resolving url "github.com/creack/docker-firefox" to "https://github.com/creack/docker-firefox/archive/master.tar.gz"
DEBU[0000] extracting "https://github.com/creack/docker-firefox/archive/master.tar.gz" to "/tmp/buildah851125498"
Error: error reading info about "/tmp/buildah851125498/docker-firefox-master/tmp/buildah851125498/docker-firefox-master/Dockerfile": stat /tmp/buildah851125498/docker-firefox-master/tmp/buildah851125498/docker-firefox-master/Dockerfile: no such file or directory
Test with podman-2.0.4-1.module+el8.3.0+7529+55b23fb9.x86_64 and the build can find the Docker file as expect. So set this to verified. Details:
# podman build github.com/creack/docker-firefox
STEP 1: FROM ubuntu:12.04
STEP 2: run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
--> Using cache 5a79b15319ebbf7430a8fae69fb3151392b4ce82ae26b4f43f738a79e554d5e6
STEP 3: run apt-get update
....
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2020:4694