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 1905801 - Add check for disk usage in candlepin-directory
Summary: Add check for disk usage in candlepin-directory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.8.0
Hardware: All
OS: All
high
medium
Target Milestone: 6.9.0
Assignee: Amit Upadhye
QA Contact: Gaurav Talreja
URL:
Whiteboard:
: 1905804 (view as bug list)
Depends On:
Blocks: 1905804
TreeView+ depends on / blocked
 
Reported: 2020-12-09 05:55 UTC by Amit Upadhye
Modified: 2024-03-25 17:27 UTC (History)
6 users (show)

Fixed In Version: rubygem-foreman_maintain-0.7.2-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1905804 1933165 (view as bug list)
Environment:
Last Closed: 2021-04-21 14:48:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31210 0 Normal Closed Add check for disk usage in candlepin-directory 2021-02-14 12:22:59 UTC
Red Hat Product Errata RHBA-2021:1312 0 None None None 2021-04-21 14:48:34 UTC

Description Amit Upadhye 2020-12-09 05:55:33 UTC
Description of problem:

Moving to foreman-2.1 katello-3.16 we experienced hanging tasks on some of our test-systems.

The reason was that candlepin or rather the Artemis-service used by candlepin started blocking requests as soon as the disk-usage rose above 90% (even though this meant that 200GB were still free).

To avoid that users run into this issue, there should be a check to make the root-cause visible.

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

Foreman 2.1(6.8) onward

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Brad Buckingham 2020-12-10 15:07:40 UTC
*** Bug 1905804 has been marked as a duplicate of this bug. ***

Comment 2 Bryan Kearney 2020-12-24 21:40:36 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31210 has been resolved.

Comment 3 Gaurav Talreja 2021-02-11 11:08:43 UTC
Verified.

Satellite 6.9.0 Snap 12
Version: rubygem-foreman_maintain-0.7.4-1.el7sat.noarch

Steps:
# foreman-maintain health list | grep available-space-cp
[available-space-cp] Check to make sure /var/lib/candlepin has enough space [pre-upgrade]


# foreman-maintain health check --label available-space-cp
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check to make sure /var/lib/candlepin has enough space:               [OK]
--------------------------------------------------------------------------------


# foreman-maintain upgrade check --target-version 6.9.z
<snip>
Running Checks before upgrading to Satellite 6.9.z
================================================================================
Check number of fact names in database:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running using the ping call:           [OK]
--------------------------------------------------------------------------------
Check for paused tasks:                                               [OK]
--------------------------------------------------------------------------------
Check to verify no empty CA cert requests exist:                      [OK]
--------------------------------------------------------------------------------
Check whether system is self-registered or not:                       [OK]
--------------------------------------------------------------------------------
Check to make sure root(/) partition has enough space:                [OK]
--------------------------------------------------------------------------------
Check to make sure /var/lib/candlepin has enough space:               [OK]
--------------------------------------------------------------------------------
Check to validate candlepin database:                                 [OK]
</snip>


Observations:
We have a check to make sure the candlepin directory (/var/lib/candlepin) has enough space now and if space is more than 90 PERCENT then it points to https://bugzilla.redhat.com/show_bug.cgi?id=1898605

Comment 6 errata-xmlrpc 2021-04-21 14:48:24 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 (Satellite 6.9 Satellite Maintenance Release), 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-2021:1312


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