Bug 1705985 - [Bug] Downloaded Manifest zip archives left in /tmp
Summary: [Bug] Downloaded Manifest zip archives left in /tmp
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Other
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks: 1122832
TreeView+ depends on / blocked
 
Reported: 2019-05-03 10:52 UTC by Oliver Falk
Modified: 2019-08-12 19:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-07 20:05:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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!


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