Bug 1488954
Summary: | oc adm router --expose-metrics fails by default | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Steven Walter <stwalter> | |
Component: | Networking | Assignee: | Ben Bennett <bbennett> | |
Networking sub component: | router | QA Contact: | zhaozhanqi <zzhao> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | medium | |||
Priority: | unspecified | CC: | aos-bugs, bbennett, bmeng, eparis, mrobson, pcameron, xtian | |
Version: | 3.5.1 | Keywords: | NeedsTestCase | |
Target Milestone: | --- | |||
Target Release: | 3.7.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause: The dependent image changed the argument string slightly (without maintaining backwards compatibility)
Consequence: The default configuration generated breaks with the newer image version
Fix: Change the argument string to match the expected one
Result: It now works
|
Story Points: | --- | |
Clone Of: | ||||
: | 1495540 (view as bug list) | Environment: | ||
Last Closed: | 2017-11-28 22:09:56 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1495540 |
Description
Steven Walter
2017-09-06 13:50:05 UTC
this bug happen due to the change from '-haproxy.scrapa-uri' to '--haproxy.scrapa-uri' in haproxy_exporter, see: https://github.com/prometheus/haproxy_exporter/commit/cb544ab842c398242fc5e22053da49dda3058aa0#diff-04c6e90faac2675aa89e2176d2eec7d8 Commits pushed to master at https://github.com/openshift/origin https://github.com/openshift/origin/commit/8573e88f77207f38abd59b70ab0c4fff9a61d632 Handle the changed --haproxy.scrape-uri argument (- to --) The argument changed from -haproxy.scrape to --haproxy.scrape. This makes 'oc adm --expose-metrics' handle the change. Fixes bug 1488954 (https://bugzilla.redhat.com/show_bug.cgi?id=1488954) https://github.com/openshift/origin/commit/06c50ed9b3f5cce85ea5d3b3f5f4f474cdae6b17 Merge pull request #16284 from knobunc/bug/bz1488954-fix-scrape-arg Automatic merge from submit-queue (batch tested with PRs 16150, 16284, 16296, 16071) Handle the changed --haproxy.scrape-uri argument (- to --) The argument changed from -haproxy.scrape to --haproxy.scrape. This makes 'oc adm --expose-metrics' handle the change. Fixes bug 1488954 (https://bugzilla.redhat.com/show_bug.cgi?id=1488954) hi, Ben Bennett this fixed only for 3.7, do we need to backport this to previous version? @zhaozhanqi: Good question. I'm not sure... because the image we depend on changed, it's hard to say what images people will have. Anyway, I don't think this feature is widely used, and now we have added better stats handling to the router itself, this should not be used on haproxy backed routers anyway. verified this bug on v3.7.0-0.127.0 using oc adm router --expose-metrics to deploy router.it can work well. The problem is: image: 'prom/haproxy-exporter:latest' The new version of 'prom/haproxy-exporter', which will run on all existing routers, requires --haproxy.scrape-uri. Previously created routers break when using the new version. So when they made the change, they broke all existing routers that use the sidecar. The side car is deprecated by the integrated prometheus scraper and will be deleted in a future release. Until then it is safest to specify a specific version in the image: parameter instead of 'latest'. From: https://github.com/openshift/origin/issues/15982 prom/haproxy-exporter:v0.7.1 is for the -haproxy.scrape-uri and prom/haproxy-exporter:v0.8.0 is for the --haproxy.scrape-uri For existing routers that have this problem its best to change 'image:' to image: prom/haproxy-exporter:v0.7.1 You can edit the dc as needed. 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, 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-2017:3188 |