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

* Update service_checker.py

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: abdosi <58047199+abdosi@users.noreply.github.com>
This commit is contained in:
mssonicbld 2024-02-25 09:06:32 +08:00 committed by GitHub
parent 2bec15305d
commit 9484b7d013
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):