From 2a9e3a0e0706738e7c8b297f23b053ad284bb6de Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Wed, 24 Jan 2024 10:36:01 -0800 Subject: [PATCH] [chassis] update service_checker module to handle database-chassis service (#17836) * Update service_checker.py Signed-off-by: Abhishek Dosi --- src/system-health/health_checker/service_checker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/system-health/health_checker/service_checker.py b/src/system-health/health_checker/service_checker.py index 76b024388b86..92e3296f7f9b 100644 --- a/src/system-health/health_checker/service_checker.py +++ b/src/system-health/health_checker/service_checker.py @@ -4,7 +4,7 @@ import re from swsscommon import swsscommon -from sonic_py_common import multi_asic +from sonic_py_common import multi_asic, device_info from sonic_py_common.logger import Logger from .health_checker import HealthChecker from . import utils @@ -99,7 +99,9 @@ def get_expected_running_containers(self, feature_table): else: expected_running_containers.add(feature_name) container_feature_dict[feature_name] = feature_name - + + if device_info.is_supervisor(): + expected_running_containers.add("database-chassis") return expected_running_containers, container_feature_dict def get_current_running_containers(self):