Bug 1791005
| Summary: | Metric labels set incorrectly during build | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Pawel Krupa <pkrupa> |
| Component: | Insights Operator | Assignee: | Michal Fojtik <mfojtik> |
| Status: | CLOSED DEFERRED | QA Contact: | Pavel Šimovec <psimovec> |
| Severity: | low | Docs Contact: | Radek Vokál <rvokal> |
| Priority: | unspecified | ||
| Version: | 4.4 | CC: | psimovec, scuppett |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-03-09 00:57:42 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: | |||
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira. https://issues.redhat.com/browse/OCPBUGS-8763 |
Description of problem: Following metric labels are not set: `gitCommit` and `gitVersion`. They are returned as `gitCommit="$Format:%H$",gitVersion="v0.0.0-master+$Format:%h$"` This is the case for openshift-insights-operator Version-Release number of selected component (if applicable): 4.4.0 How reproducible: Always Steps to Reproduce: 1. Start a cluster 2. Go to metrics console 3. search for `kubernetes_build_info{job!~"kube-dns|coredns",gitVersion!="v1.17.0"}` Actual results: Prometheus returns metrics with invalid label values: `gitCommit="$Format:%H$" and gitVersion="v0.0.0-master+$Format:%h$"` Expected results: Nothing is returned Additional info: Frequently happens in CI builds.