Bug 1942521 - [Assisted-4.7] [Staging][OCS] Minimum memory for selected role is failing although minimum OCP requirement satisfied
Summary: [Assisted-4.7] [Staging][OCS] Minimum memory for selected role is failing alt...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.8.0
Assignee: Jordi Gil
QA Contact: Yuri Obshansky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-24 13:49 UTC by Lital Alon
Modified: 2021-07-27 22:55 UTC (History)
3 users (show)

Fixed In Version: OCP-Metal-V1.0.18.1
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:55:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
example (156.96 KB, image/png)
2021-03-24 13:49 UTC, Lital Alon
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:55:34 UTC

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


Note You need to log in before you can comment on or make changes to this bug.