Bug 1942521

Summary: [Assisted-4.7] [Staging][OCS] Minimum memory for selected role is failing although minimum OCP requirement satisfied
Product: OpenShift Container Platform Reporter: Lital Alon <lalon>
Component: assisted-installerAssignee: Jordi Gil <jgil>
assisted-installer sub component: assisted-service QA Contact: Yuri Obshansky <yobshans>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: aos-bugs, jgil, lgamliel
Version: 4.7   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: OCP-Metal-V1.0.18.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 22:55:12 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:
Attachments:
Description Flags
example none

Description Lital Alon 2021-03-24 13:49:06 UTC
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

Comment 1 Ori Amizur 2021-03-26 13:09:49 UTC
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.

Comment 2 Jordi Gil 2021-03-27 17:51:02 UTC
Code reverted to use physical instead of usable. 

https://github.com/openshift/assisted-service/pull/1398

Comment 3 Jordi Gil 2021-03-27 17:52:53 UTC
@lalon source code updated. Can you check again with the latest version?

Comment 4 Lital Alon 2021-03-29 12:15:41 UTC
If issue was fixed than please move this bug to ON_QA and QE will get to verify it

Comment 5 Lital Alon 2021-04-13 10:27:19 UTC
Verified on Staging, OCP-Metal-V1.0.18.1

Comment 8 errata-xmlrpc 2021-07-27 22:55:12 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 (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