From b5ac43acebd2bd1f1512c1677213711ba363307e Mon Sep 17 00:00:00 2001 From: Martin Kalcok Date: Fri, 9 May 2025 12:57:53 +0200 Subject: [PATCH] ovn: Change metric that verifies OVN exporter It is possible for OVN exporter to run even if it can't connect to OVN sockets. In that case it will report only reduced number of metrics. We need to use metric that confirms that the exporter is successfully connected to the OVN. Signed-off-by: Martin Kalcok --- zaza/openstack/charm_tests/ovn/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/ovn/tests.py b/zaza/openstack/charm_tests/ovn/tests.py index cf869e9..8974a64 100644 --- a/zaza/openstack/charm_tests/ovn/tests.py +++ b/zaza/openstack/charm_tests/ovn/tests.py @@ -133,7 +133,9 @@ class CentralCosIntegrationTest(BaseCosIntegrationTest): APPLICATION_NAME = 'ovn-central' DASHBOARD = 'Juju: OVN Central (OVSDB)' - PROM_QUERY = 'ovn_up' + # make sure to test metric that requires successful connection + # of the exporter to the OVN sockets + PROM_QUERY = 'ovn_coverage_total' class BaseCharmOperationTest(test_utils.BaseCharmTest):