Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[supervisor]monit container-checker failed due to unexpected "database-chassis" docker running #9043

Merged
merged 1 commit into from
Mar 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion files/image_config/monit/container_checker
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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):
Expand Down