Bug 1967842 - Production logs are spammed on "OCS requirements validation status Insufficient hosts to deploy OCS. A minimum of 3 hosts is required to deploy OCS"
Summary: Production logs are spammed on "OCS requirements validation status Insufficie...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 4.8.0
Assignee: Priyanka
QA Contact: Lital Alon
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-04 08:02 UTC by liat gamliel
Modified: 2021-07-27 23:11 UTC (History)
2 users (show)

Fixed In Version: OCP-Metal-v1.0.21.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:11:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 1920 0 None open Bug 1967842: Removed log messages from OCS cluster validation to prevent spamming of logs. 2021-06-04 09:16:44 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:11:55 UTC

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


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