awk warnings running prometheus-node-exporter-apt.service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
prometheus-node-exporter (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Triaged
|
Low
|
Mathieu Trudel-Lapierre |
Bug Description
[Impact]
This bug has minimal impact to users. Warnings are being thrown by the service in its journal; but that seems to be the only issue -- valid results are still being returned by the prometheus collector in the number of packages that need updates for each repository; along with node_reboot_
The bug fix is to clean up the regex to avoid the warnings.
This is not applicable elsewhere than in focal; later releases have stopped installing the service and associated script.
[Test Plan]
1) Run /usr/share/
2) Validate that it returns without awk warnings.
[Where problems could occur]
- An invalid regex might cause repository stats to be returned in the wrong format for parsing by prometheus.
- Invalid regex would still show warnings or errors in awk.
---
Every time the prometheus-
Apr 25 12:06:25 s8mtl1-srs1-prd systemd[1]: Starting Collect apt metrics for prometheus-
Apr 25 12:06:25 s8mtl1-srs1-prd bash[1887195]: awk: cmd. line:1: warning: regexp escape sequence `\"' is not a known regexp operator
Apr 25 12:06:29 s8mtl1-srs1-prd systemd[1]: prometheus-
Apr 25 12:06:29 s8mtl1-srs1-prd systemd[1]: Finished Collect apt metrics for prometheus-
---
ProblemType: Bug
ApportVersion: 2.20.11-
Architecture: amd64
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2021-12-06 (140 days ago)
InstallationMedia: Ubuntu-Server 20.04.3 LTS "Focal Fossa" - Release amd64 (20210824)
Package: prometheus-
PackageArchitec
ProcVersionSign
Tags: focal
Uname: Linux 5.4.0-96-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True
modified.
description: | updated |
description: | updated |
Changed in prometheus-node-exporter (Ubuntu): | |
status: | New → Fix Released |
Changed in prometheus-node-exporter (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → Low |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
apport information