Bug 1710619

Summary: foreman-debug -a emits 2 warnings: Is a directory
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: Foreman DebugAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Lucie Vrtelova <lvrtelov>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: zhunting
Target Milestone: 6.6.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.22.0.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-22 19:47:36 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:

Description Jan Hutař 2019-05-15 21:06:49 UTC
Description of problem:
`foreman-debug -a` emits 2 warnings when it is running: "/usr/sbin/foreman-debug: line 72: /var/tmp/foreman-debug-2Vruv/: Is a directory"


Version-Release number of selected component (if applicable):
foreman-debug-1.22.0-0.5.RC1.el7sat.noarch
satellite-6.6.0-4.beta.el7sat.noarch


How reproducible:
always


Steps to Reproduce:
1. # foreman-debug -a


Actual results:
[root@satellite ~]# foreman-debug -a
Processing... (takes a while)
/usr/sbin/foreman-debug: line 72: /var/tmp/foreman-debug-2Vruv/: Is a directory
/usr/sbin/foreman-debug: line 73: /var/tmp/foreman-debug-2Vruv/: Is a directory


 HOSTNAME: satellite.nodhcp.local
       OS: redhat
  RELEASE: Red Hat Enterprise Linux Server release 7.6 (Maipo)
  FOREMAN: 1.22.0-RC1
     RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
   PUPPET: 5.5.12
  DENIALS: 0


A debug directory has been created: /var/tmp/foreman-debug-2Vruv

To upload a tarball to our secure site, please use the -u option.


Expected results:
These two warnings should not be there


Additional info:
It seems OK on 6.4 (have not checked on 6.5), so this is a regression

Comment 3 Lukas Zapletal 2019-05-16 12:04:11 UTC
Created redmine issue https://projects.theforeman.org/issues/26804 from this bug

Comment 4 Bryan Kearney 2019-05-16 16:03:04 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/26804 has been resolved.

Comment 6 Bryan Kearney 2019-10-22 19:47:36 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, 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-2019:3172