Bug 1574260

Summary: Upgrade Check fails on disk speed within documented limits
Product: Red Hat Satellite Reporter: andthoma
Component: Satellite MaintainAssignee: Kavita <kgaikwad>
Status: CLOSED CURRENTRELEASE QA Contact: Nikhil Kathole <nkathole>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: ahumbe, apatel, bkearney, inecas, janarula, kgaikwad, mmccune, nkathole, smutkule
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-0.2.11 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 17:28:34 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:

Description andthoma 2018-05-02 23:43:10 UTC
Description of problem:

Running the command 'foreman-maintain upgrade check --target-version 6.3.z' on a Satellite with Mongo residing on storage at 60 Megabytes per second causes the check to fail.  The access article ( https://access.redhat.com/solutions/3397771 ) and the docs ( https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/installation_guide/preparing_your_environment_for_installation#hardware_storage_prerequisites ) both state a requirement of 60 - 80 Megabytes per second.

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


How reproducible: 100%


Steps to Reproduce:
1.  Run 'foreman-maintain upgrade check --target-version 6.3.z' on a system with storage IO speeds of 61-64 Megabytes per second.
2.
3.

Actual results:

--------------------------------------------------------------------------------
Check for recommended disk speed of pulp, mongodb, pgsql dir.:
| Finished

/var/lib/pulp : 314 MB/sec
/var/lib/mongodb : 112 MB/sec
/var/lib/pgsql : 61 MB/sec                                            [FAIL]
Slow disk detected /var/lib/pgsql mounted on /dev/mapper/sat-var_lib_pgsql.
             Actual disk speed: 61 MB/sec
             Expected disk speed: 80 MB/sec.
--------------------------------------------------------------------------------



Expected results:

--------------------------------------------------------------------------------
Check for recommended disk speed of pulp, mongodb, pgsql dir.:
| Finished

/var/lib/pulp : 314 MB/sec
/var/lib/mongodb : 112 MB/sec
/var/lib/pgsql : 61 MB/sec                                            [OK]
--------------------------------------------------------------------------------


Additional info:

Comment 2 Kavita 2018-05-17 08:03:15 UTC
Thanks for reporting this issue.

As per me, there is inconsistency between documents. 
Once it is confirmed which value/range will be appropriate for comparison, it will be easy to move this BZ further.


In foreman-maintain, we have used value 80 MB/sec to compare it against actual disk speed of above directories.
This value added in foreman-maintain from satellite 6.2 documentation i.e https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html-single/installation_guide/#upgrading_satellite_server_and_capsule_server

Where, it is mentioned that "A minimum of 80 MB/s Buffered Read Time is recommended for read access to the device used in the /var partition."


But under "Storage Recommendations" section of sat 6.3 documentation i.e
https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html-single/installation_guide/#hardware_storage_prerequisites

as well as https://access.redhat.com/solutions/3397771, mentioned range is 60-80.

Comment 3 Kavita 2018-05-17 13:21:09 UTC
Hello Mike, any inputs for this BZ?

Comment 4 Mahesh Yadav 2018-09-18 10:00:19 UTC
Hello Team,

There is one more case has been reported for this.
Attaching Case ID herewith this bugzilla Case02182701

Could we have any update on this ?

Comment 5 Kavita 2018-09-20 08:02:03 UTC
*** Bug 1630878 has been marked as a duplicate of this bug. ***

Comment 6 Kavita 2018-09-20 08:05:57 UTC
I have considered latest threshold i.e >= 60 MB/s from sat 6.3

Comment 7 Satellite Program 2018-09-21 10:08:51 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24976 has been resolved.

Comment 8 Ivan Necas 2018-09-25 18:02:02 UTC
The fix is released as part of foreman-maintain-0.2.11 (packaging PR https://github.com/theforeman/foreman-packaging/pull/3037)

Comment 9 Mahesh Yadav 2018-11-28 14:47:24 UTC
Hello All,

Is there any update on this ?

Comment 10 Nikhil Kathole 2019-06-24 06:20:06 UTC
VERIFIED

Version tested:
rubygem-foreman_maintain-0.4.3-1.el7sat.noarch

Expected disk speed changed to 60 MB/sec


Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check for recommended disk speed of pulp, mongodb, pgsql dir.: 
| Finished                                                                      

Disk speed : 36 MB/sec                                                [WARNING]
Slow disk detected /var/lib/pulp mounted on /dev/mapper/vg_dhcp201-lv_root.
             Actual disk speed: 36 MB/sec
             Expected disk speed: 60 MB/sec.
WARNING: Low disk speed might have a negative impact on the system.
See https://access.redhat.com/solutions/3397771 before proceeding
--------------------------------------------------------------------------------

Comment 11 Bryan Kearney 2020-03-05 17:28:34 UTC
The current version of foreman_maintain includes this fix.