Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2071650

Summary: ovn-k ovn_db_cluster metrics are not exposed for SNO
Product: OpenShift Container Platform Reporter: Nadia Pinaeva <npinaeva>
Component: NetworkingAssignee: Nadia Pinaeva <npinaeva>
Networking sub component: ovn-kubernetes QA Contact: Ross Brattain <rbrattai>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: rbrattai
Version: 4.11   
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2082467 (view as bug list) Environment:
Last Closed: 2022-08-10 11:03:18 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: 2082467    

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