Resolved 1684 - MON fails to collect metrics from an OpenStack VIM with metrics suppo... 62/11262/1
authorAtul Agarwal <Atul.Agarwal@Altran.com>
Thu, 14 Oct 2021 06:16:34 +0000 (06:16 +0000)
committerAtul Agarwal <Atul.Agarwal@Altran.com>
Thu, 14 Oct 2021 06:17:22 +0000 (06:17 +0000)
Change-Id: I738a8f1a75d801e690fcfab924d0ce9791afaf84
Signed-off-by: Atul Agarwal <Atul.Agarwal@Altran.com>
osm_mon/collector/service.py

index 005f844..132e9da 100644 (file)
@@ -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(