Bug 1917683

Summary: `NodeTextFileCollectorScrapeError` alert in OCP 4.6 cluster.
Product: OpenShift Container Platform Reporter: Rahul Rajendran <rpalathi>
Component: MonitoringAssignee: Pawel Krupa <pkrupa>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.6CC: alegrand, anpicker, dgautam, erooth, kakkoyun, lcosic, openshift-bugzilla-robot, pkrupa, surbania
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:54:35 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:
Bug Depends On:    
Bug Blocks: 1928073, 1928077    

Description Rahul Rajendran 2021-01-19 06:42:44 UTC
Description of problem: Alert `NodeTextFileCollectorScrapeError` is experienced in the cluster. The alert is associated with the worker nodes which are baremetal RHEL.

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

How reproducible:

Steps to Reproduce:

Actual results:

The `virt.prom` shows parsing error.

Expected results:
The `virt.prom` should not cause any error.

Additional info:

Comment 4 Pawel Krupa 2021-01-22 08:52:52 UTC
> maybe we should change to
> echo "${line//\\/}" >>"${v}"

Yes, that makes sense. I already updated my PR.

> and I still doubt "-[" and "]-" are unnecessary

This is what is reported and we shouldn't manipulate data more than it is required by prometheus.

Comment 6 Junqi Zhao 2021-01-26 04:14:45 UTC
tested with 4.7.0-0.nightly-2021-01-25-212451, issue is fixed

Comment 8 Pawel Krupa 2021-02-12 10:37:11 UTC
*** Bug 1928077 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2021-02-24 15:54:35 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.7.0 security, bug fix, and enhancement 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.