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

Bug 1967842

Summary: Production logs are spammed on "OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS"
Product: OpenShift Container Platform Reporter: liat gamliel <lgamliel>
Component: assisted-installerAssignee: Priyanka <pjiandan>
assisted-installer sub component: OCS Plugin QA Contact: Lital Alon <lalon>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: unspecified CC: aos-bugs, pkliczew
Version: 4.7   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: OCP-Metal-v1.0.21.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:11:38 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 liat gamliel 2021-06-04 08:02:01 UTC
Description of problem:
Production logs are spammed on "OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS" - there is no data about cluster id or host id

some logs:
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"
time="2021-06-04T07:03:12Z" level=info msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS." func="github.com/openshift/assisted-service/internal/operators/ocs.(*operator).validateRequirements" file="/go/src/github.com/openshift/origin/internal/operators/ocs/validations.go:43"


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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Need to add extra data, such as cluster_id / host_id, and check if this log is really needed - as you can see in the logs that I added - we have the same log line multiple of times.

Comment 1 liat gamliel 2021-06-04 08:13:54 UTC
PR that use cluster_id from the log context: https://github.com/openshift/assisted-service/pull/1414/files

Comment 3 Lital Alon 2021-06-09 11:00:06 UTC
Verified in Staging OCP-Metal-v1.0.21.3

Simulated missing 3 master nodes for OCS, couldn't find the following msg in Staging cloudWatch
msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS."

Comment 4 liat gamliel 2021-06-09 20:32:51 UTC
I verified the fix on production and there are no OCS logs with msg="OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS."

Comment 7 errata-xmlrpc 2021-07-27 23:11:38 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