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.
Bug 1858862 - Podman build from url failed to get correct temp directory for store files
Summary: Podman build from url failed to get correct temp directory for store files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: podman
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 8.0
Assignee: Qi Wang
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-20 15:46 UTC by Joy Pu
Modified: 2020-11-04 03:07 UTC (History)
7 users (show)

Fixed In Version: podman-2.0.3-2.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 03:06:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4694 0 None None None 2020-11-04 03:07:47 UTC

Description Joy Pu 2020-07-20 15:46:03 UTC
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

Comment 1 Tom Sweeney 2020-07-20 18:21:35 UTC
Qi,

can you take a look at this please?

Comment 4 Qi Wang 2020-07-30 20:30:46 UTC
https://github.com/containers/podman/pull/7121  merged to master should fix this.

Comment 6 Daniel Walsh 2020-07-31 13:40:18 UTC
Fixed in podman-2.0.4.

Comment 9 Joy Pu 2020-08-11 14:31:14 UTC
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

....

Comment 12 errata-xmlrpc 2020-11-04 03:06:49 UTC
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


Note You need to log in before you can comment on or make changes to this bug.