Created attachment 1765942 [details] example Description of problem: I have set minimal mode cluster, 3 workers. I set one worker to have the minimul RAM required for OCP (in Integration is 8 Gib) The issue is the UI raised host validation: "Minimum memory for selected role: Require at least 8 GiB RAM role worker, found only 7 GiB." (see attached) The discovered memory is: 8.00 Gib So i expected no validation failure. Version-Release number of selected component (if applicable): Integration How reproducible: 100% Steps to Reproduce: 1. set up a cluster with exactly 8 Gib (or the minimum memory for OCP) Actual results: Minimum memory for selected role validation failure Expected results: Hosts are known OR align the minimum requirement according to what tested in specific-role validation, OR display in UI both usable and physical values Additional info: 1. reproduced during test: test_ocs_minimal_insufficient_cpu_ram 2. Might be related to usable memory VS physical memory
The reason for this bug is this PR https://github.com/openshift/assisted-service/pull/1167 that moved the test on memory from physical bytes to usable bytes.
Code reverted to use physical instead of usable. https://github.com/openshift/assisted-service/pull/1398
@lalon source code updated. Can you check again with the latest version?
If issue was fixed than please move this bug to ON_QA and QE will get to verify it
Verified on Staging, OCP-Metal-V1.0.18.1
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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), 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/RHSA-2021:2438