Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1705985

Summary: [Bug] Downloaded Manifest zip archives left in /tmp
Product: Red Hat Satellite Reporter: Oliver Falk <ofalk>
Component: OtherAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Peter Ondrejka <pondrejk>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: inecas, peter.vreman
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-07 20:05:21 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:    
Bug Blocks: 1122832    

Description Oliver Falk 2019-05-03 10:52:14 UTC
Description of problem:
Downloaded manifest ZIP archive are not deleted from /tmp.


Example:

    ----------
    Status	Message	Timestamp
    SUCCESS	XXXXX file imported successfully.	2019-03-07T11:15:50+0000
    SUCCESS	XXXXX file imported successfully.	2019-03-07T11:03:58+0000
    SUCCESS	XXXXX file imported successfully.	2018-11-09T15:58:15+0000
    SUCCESS	XXXXX file imported successfully.	2018-11-09T15:57:30+0000
    ----------

    ----------
    # ls -l /tmp/*.zip
    -rw-r--r--. 1 foreman foreman 389933 Mar  7 11:03 /tmp/0.09428043949156806.zip
    -rw-r--r--. 1 foreman foreman 435631 Mar  7 11:15 /tmp/0.5106864834654397.zip

    # unzip -v /tmp/0.09428043949156806.zip
    Archive:  /tmp/0.09428043949156806.zip
    signed Candlepin export for 266b58c0-0ea1-4227-9f8b-7ac29821971f
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    --------  ------  ------- ---- ---------- ----- --------  ----
      398778  Defl:N   389090   2% 03-07-2019 11:03 cf275e29  consumer_export.zip
         512  Defl:N      517  -1% 03-07-2019 11:03 f713a5ef  signature
    --------          -------  ---                            -------
      399290           389607   2%                            2 files
    ----------


Version-Release number of selected component (if applicable): 6.5


How reproducible: Always.


Steps to Reproduce:
1. Import manifest several times.
2. Check /tmp

Actual results:
Manifests are not deleted after download/import.


Expected results:
Manifests are cleaned up after download/import.


Additional info:
Customer case will be linked.

NOTE: please adapt Component - not sure where to put this best.

Comment 3 Brad Buckingham 2019-06-07 20:05:21 UTC
Thank you for raising this bugzilla.  Based upon discussion in triage, we do not anticipate any near-term changes to delete these files from /tmp.  As part of default OS policies, /tmp should be cleaned up automatically.  If the existence of the files is impacting the system, please feel free to re-open with the appropriate details.  Thanks!