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 1413155 - [RFE] Include disk space check in foreman-debug
Summary: [RFE] Include disk space check in foreman-debug
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Debug
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: Unspecified
Assignee: Chris Roberts
QA Contact: jcallaha
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: GSS_Sat6Beta_Tracker, GSS_Sat6_Tracker 1417129
TreeView+ depends on / blocked
 
Reported: 2017-01-13 18:37 UTC by Xixi
Modified: 2019-09-25 21:20 UTC (History)
6 users (show)

Fixed In Version: katello-3.0.0-17
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1417129 (view as bug list)
Environment:
Last Closed: 2017-03-06 08:37:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18075 0 Normal Resolved [RFE] Include disk space check in katello-debug 2020-10-30 16:47:55 UTC
Red Hat Product Errata RHBA-2017:0447 0 normal SHIPPED_LIVE Satellite 6.2.8 Async Bug Release 2017-03-06 13:23:41 UTC

Description Xixi 2017-01-13 18:37:09 UTC
Description of problem:
A basic check in troubleshooting Satellite 6 (and in deed health of Satellite) is available disk space.  Per discussion with engineering filing the following BZ.

mmccune: would be super easy to add
mmccune: do we have a BZ for this?
mmccune: if not, can you file? ill get it acked-up
mmccune: https://github.com/Katello/katello-packaging/blob/master/katello/katello-debug.sh
mmccune: that is the actual script that we would add it to
mmccune: the easiest is:
mmccune:  du -sh /var/lib/pulp /var/lib/mongodb/ /var/lib/pgsql/
mmccune: df -h
mmccune: those 2

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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Chris Roberts 2017-01-14 03:08:51 UTC
Running du -sh will take to long, getting a df -h to verify disk space on the entire FS

Comment 4 jcallaha 2017-02-13 19:46:15 UTC
Verified in Satellite 6.2.8 Snap 2. Added three files detailing disk space usage (disk_space_output, mongodb_disk_space, postgres_disk_space)

-bash-4.1# foreman-debug
Processing... (takes a while)Exporting tasks, this may take a few minutes.
Copying entire file: /tmp/task-export-1487014445.tar.gz


 HOSTNAME: ibm-x3550m3-12.lab.eng.brq.redhat.com
       OS: redhat
  RELEASE: Red Hat Enterprise Linux Server release 6.8 (Santiago)
  FOREMAN: 1.11.0.66
     RUBY: ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
   PUPPET: 3.8.6
  DENIALS: 0


A debug file has been created: /tmp/foreman-debug-OVhf9.tar.xz (1243704 bytes)

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


-bash-4.1# tar -xvJf foreman-debug-OVhf9.tar.xz

-bash-4.1# cat foreman-debug-OVhf9/disk_space_output 
COMMAND> df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_ibmx3550m312-lv_root
                      446G   12G  411G   3% /
tmpfs                  12G     0   12G   0% /dev/shm
/dev/sda1             477M   71M  382M  16% /boot

-bash-4.1# cat foreman-debug-OVhf9/mongodb_disk_space 
COMMAND> du -sh /var/lib/mongodb

4.7G	/var/lib/mongodb

-bash-4.1# cat foreman-debug-OVhf9/postgres_disk_space 
COMMAND> du -sh /var/lib/pgsql

182M	/var/lib/pgsql

Comment 6 errata-xmlrpc 2017-03-06 08:37:07 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/RHBA-2017:0447


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