Bug 2071650 - ovn-k ovn_db_cluster metrics are not exposed for SNO
Summary: ovn-k ovn_db_cluster metrics are not exposed for SNO
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Nadia Pinaeva
QA Contact: Ross Brattain
URL:
Whiteboard:
Depends On:
Blocks: 2082467
TreeView+ depends on / blocked
 
Reported: 2022-04-04 13:21 UTC by Nadia Pinaeva
Modified: 2022-08-10 11:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2082467 (view as bug list)
Environment:
Last Closed: 2022-08-10 11:03:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ovn-kubernetes pull 1049/commits/76699afae1229cacb178c369ea5916d35e7a2788 0 None None None 2022-05-05 16:01:46 UTC
Red Hat Product Errata RHSA-2022:5069 0 None None None 2022-08-10 11:03:46 UTC

Description Nadia Pinaeva 2022-04-04 13:21:12 UTC
Description of problem:
ovn_db_cluster_ metrics are not exposed for SNO cluster 

How reproducible:
Always

Actual results:
oc -n openshift-ovn-kubernetes exec $POD -c ovnkube-node curl "127.0.0.1:29105/metrics" | grep "# HELP ovn_db_cluster" | wc -l
0

Expected results:
All 15 metrics https://github.com/ovn-org/ovn-kubernetes/blob/master/go-controller/pkg/metrics/ovn_db.go#L386-L400 are exposed

Comment 1 Nadia Pinaeva 2022-05-06 07:38:38 UTC
instructions on how to test are here https://github.com/ovn-org/ovn-kubernetes/pull/2890, SNO cluster section

Comment 4 Ross Brattain 2022-05-12 15:30:56 UTC
Verified on 4.11.0-0.nightly-2022-05-11-054135 upi-on-gcp/versioned-installer-ovn-ipsec-sno-ci


oc -n $OVNNS -c ovnkube-node exec $f -- curl "127.0.0.1:29105/metrics" | grep "# HELP ovn_db_cluster" | wc -l 
15


oc -n $OVNNS -c ovnkube-node exec $f -- curl "127.0.0.1:29105/metrics" | grep ovn_db_build_info
ovn_db_build_info{nb_schema_version="6.1.0",sb_schema_version="20.21.0",version="2.17.2"} 1

Comment 6 errata-xmlrpc 2022-08-10 11:03:18 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 (Important: OpenShift Container Platform 4.11.0 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-2022:5069


Note You need to log in before you can comment on or make changes to this bug.