Bug #22229
closedforeman-maintain not checking disk space during health check or upgrade check
Description
From Bugzilla:
Description of problem:
foreman-maintain tool not checking disk space during health check or upgrade check.
Version-Release number of selected component (if applicable):
rubygem-foreman_maintain-0.0.11-1.el7sat.noarch
How reproducible:
Always
Steps to Reproduce:
1. Create a dummy file with dd command to fill up the / or any other partition2. Execute below command to check the health check or upgrade check:
~~~
- foreman-maintain health check
- foreman-maintain upgrade check --target-version 6.2.z
~~~
Actual results:
upgrade check pass with no fail or warning.
Expected results:
Should fail or warn about the disk space
Additional info:
foreman-maintain checking the disk speed but not the disk space.
[root@satellite ~]# foreman-maintain health list
[foreman-tasks-not-paused] Check for paused tasks [default]
[foreman-tasks-not-running] Check for running tasks [pre-upgrade]
[check-old-foreman-tasks] Check for old tasks in paused/stopped state [pre-upgrade]
[check-foreman-tasks-in-pending-state] Check for pending tasks which are safe to delete [pre-upgrade]
[check-foreman-tasks-in-planning-state] Check for tasks in planning state [pre-upgrade]
[disk-io] Check for recommended disk speed of pulp, mongodb, pgsql dir. [pre-upgrade]
[hammer-ping] Check whether all services are running using hammer ping [default]