[chassis] update service_checker module to handle database-chassis service (#17836)

* Update service_checker.py

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
This commit is contained in:
abdosi 2024-01-24 10:36:01 -08:00 committed by GitHub
parent c693e75f0f
commit 24f8f8b966
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ import pickle
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 @@ class ServiceChecker(HealthChecker):
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):