Configmap gatherer can fail incorrectly when there is the cluster-monitoring-config ConfigMap (in opneshift-monitoring namespace) that contains invalid yaml content.
I set invalid yaml in cluster-monitoring-config: data: config.yaml: |- prometheusK8s: retention: 7d: test: We get error in metadata as expected: {"name":"clusterconfig.GatherConfigMaps","duration_in_ms":63,"records_count":8,"errors":["yaml: line 2: mapping values are not allowed in this context"]}
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