Bug 1371323

Summary: [RFE] Include a dashboard widget to monitor space on Satellite and warning if space low
Product: Red Hat Satellite Reporter: Craig Donnelly <cdonnell>
Component: DashboardAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.2.0CC: andrew.schofield, chrobert, jcallaha, mmccune, mvanderw, oshtaier, rjerrido, tbrisker, vanhoof
Target Milestone: UnspecifiedKeywords: FutureFeature, PrioBumpGSS, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-17 14:32:54 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:
Bug Depends On:    
Bug Blocks: 1385841    

Description Craig Donnelly 2016-08-29 22:36:22 UTC
Description of problem:
Currently there are no notifications in the Satellite WebUI that show a customer if they are running low on space in any area that is important to Satellite. Customers CONSTANTLY run out of disk space, causing new cases that result in us performing debug over multiple days to get services and tasks back in check after introducing new space to the environment.

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

How reproducible:
100%

Steps to Reproduce:
1. Depending on filesystem layout, fill up anything important to Satellite.
{/,/var,/var/log,/var/lib/*}

Expected remedy:
We need to add a widget on the Dashboard of Satellite that shows Disk usage for ALL pertinent paths related to Satellite.
This should include:
/var/lib/pgsql
/var/lib/pulp
/var/lib/mongodb
/var/log
/usr/share/* {foreman*,pulp*} (so on..)
/opt
(others?)

A part of this widget should be a Warning that appears at the top of Satellite WebUI once we reach a threshold we consider to be close to becoming an issue for the end user of the Satellite.

If we do not truly want a widget, we should certainly implement reading this data that is available for Pulp only in Infratructure -> Capsules -> Internal Capsule for the available space, and also incorporate it checking the rest of the important space regarding Satellite. Using this available data, we should certainly Warn the user if there is any chance of running out of space.

Comment 4 Xixi 2017-07-19 19:59:04 UTC
This needs to go into the overall healthcheck and status tooling for Satellite 6.

> See also Bug 1413155 - [RFE] Include disk space check in foreman-debug
> (closed errata with Toledo's patch)

Already shipped by the way as of https://access.redhat.com/errata/RHBA-2017:0447 
"three files detailing disk space usage (disk_space_output, mongodb_disk_space, postgres_disk_space)" :)

Comment 5 Rich Jerrido 2019-01-17 14:32:54 UTC
We are closing this bug for the following reasons


1 - as of Satellite 6.5, dashboard widgets will not update automatically so the utility of a dashboard widget to monitor diskspace is limited. 
2 - a dashboard widget only helps if you are looking at it. (Similar with a notification drawer) 
3 - Customers almost always have some form of monitoring tool to monitor Satellite's file systems.