From 6befb6a075809ece1542a2c1bfe3e2d9992c2660 Mon Sep 17 00:00:00 2001 From: mlok Date: Fri, 22 Oct 2021 11:24:45 -0400 Subject: [PATCH] [supervisor]monit container-checker failed due to unexpected "database-chassis" docker running #9042 -- Added database-chassis to the expected docker list for the monit to check. Signed-off-by: mlok --- files/image_config/monit/container_checker | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/image_config/monit/container_checker b/files/image_config/monit/container_checker index 63bd7b3e182d..197e4f04a499 100755 --- a/files/image_config/monit/container_checker +++ b/files/image_config/monit/container_checker @@ -20,7 +20,7 @@ import docker import sys import swsssdk -from sonic_py_common import multi_asic +from sonic_py_common import multi_asic, device_info from swsscommon import swsscommon @@ -63,6 +63,8 @@ def get_expected_running_containers(): always_running_containers.add(container_name + str(asic_id)) else: always_running_containers.add(container_name) + if device_info.is_supervisor(): + always_running_containers.add("database-chassis") return expected_running_containers, always_running_containers def get_current_running_from_DB(always_running_containers):