Fix for bug 1433 check if common-db is ready 80/10580/1
authorpalsus <subhankar.pal@aricent.com>
Thu, 1 Apr 2021 07:49:20 +0000 (07:49 +0000)
committerpalsus <subhankar.pal@aricent.com>
Thu, 1 Apr 2021 08:37:01 +0000 (09:37 +0100)
Change-Id: Id2ed40088cbc0a7f73752b125144a9addd515918
Signed-off-by: palsus <subhankar.pal@aricent.com>
(cherry picked from commit 0cf6b55f445ceacfe4066fd7cc8f81f779a27629)

osm_mon/cmd/mon_utils.py

index a5d3d07..5b62d6c 100644 (file)
@@ -75,14 +75,14 @@ def wait_till_kafka_is_ready(config, process_name="osm-mon", kafka_wait_time=5):
 
 def wait_till_core_services_are_ready(config, process_name="osm-mon", commondb_wait_time=5, kafka_wait_time=5):
 
-    logging.debug("wait_till_services_are_ready")
+    logging.debug("wait_till_core_services_are_ready")
 
     if not config:
         logging.info("Config information is not available")
         return False
 
     # Check if common-db is ready
-    wait_till_kafka_is_ready(config, process_name, commondb_wait_time)
+    wait_till_commondb_is_ready(config, process_name, commondb_wait_time)
 
     # Check if kafka is ready
     wait_till_kafka_is_ready(config, process_name, kafka_wait_time)