Skip to content

[202405] Stop the config_manager child process on exception in chassisd - #763

Closed
kenneth-arista wants to merge 1 commit into
sonic-net:202405from
kenneth-arista:202405-chassisd-crash-fix
Closed

kenneth-arista wants to merge 1 commit into
sonic-net:202405from
kenneth-arista:202405-chassisd-crash-fix

Conversation

@kenneth-arista

@kenneth-arista kenneth-arista commented Feb 26, 2026

Copy link
Copy Markdown

This is a manual cherry-pick of #727


Context is in: sonic-net/sonic-buildimage#24775

TLDR:
chassisd process doesn't die when a crash occurs because the config_manager child process is still running. Adding try/finally to cleanup the config_manager properly when a crash occurs to let chassisd die and restart.

Confirmed that if I add an assert False after config_manager is created I see the chassisd process die and restart as expected (previously the process would live on).

Note: When reviewing the diff select hide whitespaces to make the diff easier to read.

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

…onic-net#727)

Context is in: sonic-net/sonic-buildimage#24775

TLDR:
chassisd process doesn't die when a crash occurs because the config_manager child process is still running.
Adding try/finally to cleanup the config_manager properly when a crash occurs to let chassisd die and restart.

Confirmed that if I add an assert False after config_manager is created I see the chassisd process die and restart as expected (previously the process would live on).

Note: When reviewing the diff select hide whitespaces to make the diff easier to read.
Signed-off-by: Kenneth Cheung <kennethcheung@arista.com>
@kenneth-arista
kenneth-arista force-pushed the 202405-chassisd-crash-fix branch from f3f516e to fbed8b7 Compare February 26, 2026 00:39
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@abdosi

abdosi commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

@bmridul @judyjoseph @arlakshm for viz.

@judyjoseph

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@judyjoseph

Copy link
Copy Markdown
Contributor

@kenneth-arista could you rebase your branch ? we have pushed a commit to fix this PR buid issue

@kenneth-arista

Copy link
Copy Markdown
Author

Merged equivalent cherry-pick to Azure/sonic-platform-daemons.msft#62 instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants