Bug 1538640

Summary: [RFE] Update foreman-debug to collect logs
Product: Red Hat Satellite Reporter: Ivan Necas <inecas>
Component: Satellite MaintainAssignee: Anurag Patel <apatel>
Status: CLOSED ERRATA QA Contact: Nikhil Kathole <nkathole>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: apatel, bbuckingham, inecas, kgaikwad, rochacbruno, sabnave, sghai
Target Milestone: UnspecifiedKeywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-1.15.6.33-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1542407 (view as bug list) Environment:
Last Closed: 2018-02-21 16:54:17 UTC Type: ---
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: 1542407    

Description Ivan Necas 2018-01-25 14:01:42 UTC
/var/log/foreman-maintain/foreman-maintain.log

Comment 1 Ivan Necas 2018-01-25 14:01:48 UTC
Created from redmine issue http://projects.theforeman.org/issues/21743

Comment 2 Ivan Necas 2018-01-25 14:01:53 UTC
Upstream bug assigned to apatel

Comment 5 Nikhil Kathole 2018-02-06 10:06:46 UTC
VERIFIED

foreman-debug collects foreman-maintain.log file. (see attachment)

Version tested:
Satellite 6.3 snap 35

# rpm -q satellite
satellite-6.3.0-23.0.el7sat.noarch

# rpm -qa | grep foreman-debug
foreman-debug-1.15.6.34-1.el7sat.noarch

# foreman-debug
Processing... (takes a while)

 HOSTNAME: $(hostname)
       OS: redhat
  RELEASE: Red Hat Enterprise Linux Server release 7.4 (Maipo)
  FOREMAN: 1.15.6.34
     RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
   PUPPET: 3.8.6
  DENIALS: 0


A debug file has been created: /var/tmp/foreman-debug-gLUpq.tar.xz (1761828 bytes)

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

# tar -tvf /var/tmp/foreman-debug-gLUpq.tar.xz | grep foreman-maintain
drwxr-xr-x root/root         0 2018-02-06 03:54 foreman-debug-gLUpq/var/log/foreman-maintain/
-rw-r--r-- root/root     22809 2018-02-06 03:59 foreman-debug-gLUpq/var/log/foreman-maintain/foreman-maintain.log

Comment 7 Satellite Program 2018-02-21 16:54:17 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-2018:0336