Bug 1972303

Summary: TMPDIR is not working in podman pull and podman load [rhel-9.0 beta]
Product: Red Hat Enterprise Linux 9 Reporter: Joy Pu <ypu>
Component: podmanAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Yuhui Jiang <yujiang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0CC: atomic-bugs, bbaude, dwalsh, jligon, jnovy, lsm5, mheon, pthomas, tsweeney, umohnani
Target Milestone: betaKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: podman-4.1.0-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1972282 Environment:
Last Closed: 2022-11-15 09:50:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1972282    
Bug Blocks:    

Description Joy Pu 2021-06-15 15:41:15 UTC
+++ This bug was initially created as a clone of Bug #1972282 +++

Description of problem:

The environment variable TMPDIR is not working for podman pull and podman load commands. This is fxied in 8.3.


Version-Release number of selected component (if applicable):
podman-3.2.0-0.21.module+el9beta+11158+7195cec9.x86_64

How reproducible:
100%

Steps to Reproduce:
1. make directory and mount it with a small size of tmpfs
# mkdir /tmp/testdir
# mount -t tmpfs -o size=1M tmpfs 
2. export TMPDIR and run podman pull or podman load
# export TMPDIR=/tmp/testdir
# podman pull quay.io/libpod/testimage:20200929


Actual results:
podman pull can get the image

Expected results:
podman pull or load will failed to pull the image with error message "no space left on device"

Additional info:
Related bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1769918
https://bugzilla.redhat.com/show_bug.cgi?id=1877699

Comment 1 Tom Sweeney 2021-06-16 12:39:44 UTC
Assigning to Valentin as he has the clone of this one, https://bugzilla.redhat.com/show_bug.cgi?id=1972282

Comment 2 Tom Sweeney 2021-07-21 18:23:44 UTC
Assigning this to Jindrich too as the changes for the cloned BZ will apply for this one too.  It's all upstream at this point.

Comment 9 errata-xmlrpc 2022-11-15 09:50:58 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: podman security and bug fix 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-2022:7954