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 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