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

Bug 1951412

Summary: Configmap gatherer can fail incorrectly
Product: OpenShift Container Platform Reporter: Tomas Remes <tremes>
Component: Insights OperatorAssignee: Tomas Remes <tremes>
Status: CLOSED ERRATA QA Contact: Pavel Šimovec <psimovec>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.8CC: aos-bugs, inecas, mklika, tremes
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:02:11 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 Tomas Remes 2021-04-20 05:55:56 UTC
Configmap gatherer can fail incorrectly when there is the cluster-monitoring-config ConfigMap (in opneshift-monitoring namespace) that contains invalid yaml content.

Comment 2 Pavel Šimovec 2021-04-20 11:37:05 UTC
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"]}

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