Bug 2082467 - 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.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.z
Assignee: Nadia Pinaeva
QA Contact: Ross Brattain
URL:
Whiteboard:
Depends On: 2071650
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-06 08:13 UTC by Nadia Pinaeva
Modified: 2022-05-31 12:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2071650
Environment:
Last Closed: 2022-05-31 12:40:08 UTC
Target Upstream Version:
Embargoed:
rbrattai: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift ovn-kubernetes pull 1082 0 None open [release-4.10] Bug 2082467: Fix cluster/status parsing for single-member db cluster (SNO) 2022-05-13 01:01:23 UTC
Red Hat Product Errata RHBA-2022:4754 0 None Waiting on Customer [PRO-ACTIVE]- On-prem Np1 Cluster upgrade 2022-06-27 01:22:59 UTC

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


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