Bug 2082467

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: anusaxen, rbrattai
Version: 4.10Flags: rbrattai: needinfo-
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2071650 Environment:
Last Closed: 2022-05-31 12:40:08 UTC Type: ---
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: 2071650    
Bug Blocks:    

Description Nadia Pinaeva 2022-05-06 08:13:39 UTC
+++ This bug was initially created as a clone of Bug #2071650 +++

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

--- Additional comment from Nadia Pinaeva on 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 1 Ross Brattain 2022-05-15 15:05:15 UTC
Verified on 4.10.0-0.ci.test-2022-05-15-132353-ci-ln-qjh6zd2-latest on aos-4_10/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
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 36223    0 36223    0     0   862k      0 --:--:-- --:--:-- --:--:--  884k
15

oc -n $OVNNS -c ovnkube-node exec $f -- curl "127.0.0.1:29105/metrics" | grep ovn_db_build_info
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP ovn_db_build_info A metric with a constant '1' value labeled by ovsdb-server version and NB and SB schema version
# TYPE ovn_db_build_info gauge
ovn_db_build_info{nb_schema_version="",sb_schema_version="",version="2.16.2"} 1
100 36223    0 36223    0     0   803k      0 --:--:-- --:--:-- --:--:--  803k

Comment 2 Nadia Pinaeva 2022-05-16 10:14:18 UTC
Hey @rbrattai if this is verified, can you please change the status?

Comment 3 Ross Brattain 2022-05-16 12:02:00 UTC
The bot will move to verify once the code hits a nightly build.

Comment 8 errata-xmlrpc 2022-05-31 12:40:08 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 (OpenShift Container Platform 4.10.16 bug fix 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/RHBA-2022:4754