From bd57a7e92c55798cb0b5b74791b821593bc362ad Mon Sep 17 00:00:00 2001 From: Atul Agarwal Date: Thu, 14 Oct 2021 06:23:48 +0000 Subject: [PATCH] Resolved 1684 - MON fails to collect metrics from an OpenStack VIM with metrics support if there is another OpenStack VIM without metrics support registered Change-Id: I3a0a737292975b8cbdfb0b3cb5d4549e56679334 Signed-off-by: Atul Agarwal --- osm_mon/collector/service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osm_mon/collector/service.py b/osm_mon/collector/service.py index 005f844..132e9da 100644 --- a/osm_mon/collector/service.py +++ b/osm_mon/collector/service.py @@ -211,9 +211,9 @@ class CollectorService: ) metrics.extend(result) log.debug("result = %s" % (result)) - except keystoneauth1.exceptions.connection.ConnectTimeout as e: - log.info("Keystone connection timeout during metric collection") - log.debug("Keystone connection timeout exception %s" % (e)) + except keystoneauth1.exceptions.connection.ConnectionError as e: + log.info("Keystone connection error during metric collection") + log.debug("Keystone connection error exception %s" % (e)) except concurrent.futures.TimeoutError as e: # Some processes have not completed due to timeout error log.info( -- 2.25.1