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.
PR that use cluster_id from the log context: https://github.com/openshift/assisted-service/pull/1414/files
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."
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."
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