Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1956038

Summary: [Assisted-4.7] [Staging][OCS][Compact] Cluster validation failure when hosts has Automatic role
Product: OpenShift Container Platform Reporter: Lital Alon <lalon>
Component: assisted-installerAssignee: Priyanka <pjiandan>
assisted-installer sub component: OCS Plugin QA Contact: Lital Alon <lalon>
Status: CLOSED NOTABUG Docs Contact:
Severity: high    
Priority: unspecified CC: alazar, aos-bugs, lgamliel, nibalach
Version: 4.7Flags: lalon: needinfo-
lalon: needinfo-
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-OCS
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-14 13:23:09 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-05-02 09:53:26 UTC
Created attachment 1778479 [details]
example

Created attachment 1778479 [details]
example

Description of problem:
I booted 3 master cluster with OCS. Hosts had enough resources and role automatically chosen to Automatic.
The issue is that there is a cluster validation failure:
"Clusters must have exactly 3 dedicated masters. Please either add hosts, or disable the worker host"

see attached example 

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

How reproducible:
100%

Steps to Reproduce:
1. boot 3 master cluster with OCS, with enough resources.
2. if not already chosen, set master role to - Automatic

Actual results:
Cluster is insufficient

Expected results:
Cluster is Ready

Additional info:
note that When hosts are having Automatic role, then get hosts requirements return lower resources then master needed for compact

Comment 1 Priyanka 2021-05-10 09:13:47 UTC
To check if the auto-assign role is eligible for master role, 
    if the operators are enabled: OCS+OCP req. per host are added.
    otherwise OCP requirements are taken.

If we enable OCS,and if OCS host requirements are not satisfied, then it shows OCS cluster validation error along with insufficient master count error, because the host does not ave enough resources(OCP + OCS) to be master.

Comment 2 N Balachandran 2021-05-11 06:24:35 UTC
@Lital, we could reproduce this issue only when there were insufficient resources for OCP + all selected Operators. It worked when there were sufficient resources.

From the attachment:
CPU = 18 + 18 + 10  = 46
RAM = 42 + 42 + 30  = 114

OCS Host validation for compact mode:
Required CPU = 6(OCS) + 4(OCP) + 2 (disk) = 12 . 
Required RAM = 19 (OCS) + 8 (OCP) + 5 (disk) = 32

One of these nodes does not meet the requirements which is why the error is seen.


The message, however, is not clear.
@Liat, who would need to look at the error message to see if it can be made clearer?

Comment 3 N Balachandran 2021-05-11 06:31:22 UTC
(In reply to Priyanka from comment #1)
> To check if the auto-assign role is eligible for master role, 
>     if the operators are enabled: OCS+OCP req. per host are added.
>     otherwise OCP requirements are taken.
> 
> If we enable OCS,and if OCS host requirements are not satisfied, then it
> shows OCS cluster validation error along with insufficient master count
> error, because the host does not ave enough resources(OCP + OCS) to be
> master.

Confirmed this with Jakub Dzon.

Comment 4 Priyanka 2021-05-14 13:23:09 UTC
This is the expected behavior and not a bug.

Comment 5 Priyanka 2021-05-14 13:24:02 UTC
We can fix the validation messages separately.