Skip to content

[chassisd]: Replay saved module admin down state on boot in chassisd - #867

Open
gupurush wants to merge 3 commits into
sonic-net:masterfrom
gupurush:chassisd-fc-shut-reboot-persistence
Open

[chassisd]: Replay saved module admin down state on boot in chassisd#867
gupurush wants to merge 3 commits into
sonic-net:masterfrom
gupurush:chassisd-fc-shut-reboot-persistence

Conversation

@gupurush

@gupurush gupurush commented Aug 5, 2026

Copy link
Copy Markdown

Issue: #868

Summary

  • Add set_initial_module_admin_state() to replay persisted admin_status: down from CONFIG_DB at chassisd startup on modular chassis supervisors (8808 RP).
  • For each present fabric/line module with saved admin down, call set_admin_state(MODULE_ADMIN_DOWN) so hardware shutdown is applied after reboot without a new config event.

Motivation and Context

After reboot, a module can remain admin_status: down in CONFIG_DB while oper stays Online because chassisd never replays the hardware shutdown. Z rails stay powered until a new shutdown config event is applied. This change replays the saved admin-down state once at supervisor boot, after config_manager starts and before the main loop.

How Has This Been Tested?

  • DUT 8808 RP: config chassis modules shutdown FABRIC-CARD1 → sudo config save -y → reboot
  • After pmon/chassisd up: FC1 admin=down, oper=Offline, rails off, no swss@2/3

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 5, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Signed-off-by: gupurush <gupurush@gmail.com>
@gupurush
gupurush force-pushed the chassisd-fc-shut-reboot-persistence branch from 9822011 to 6de909a Compare August 5, 2026 06:54
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

Hi, there are workflow run(s) waiting for approval, you may be first-time contributor. I will notify maintainers to help approve once PR is approved. Thanks!

---Powered by SONiC BuildBot

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

Signed-off-by: gupurush <gupurush@gmail.com>
@gupurush
gupurush force-pushed the chassisd-fc-shut-reboot-persistence branch from 7bbdf88 to 60aaa7d Compare August 5, 2026 17:09
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@gupurush
gupurush force-pushed the chassisd-fc-shut-reboot-persistence branch from e548bc4 to e3a5594 Compare August 5, 2026 17:52
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

Signed-off-by: gupurush <gupurush@gmail.com>
@gupurush
gupurush force-pushed the chassisd-fc-shut-reboot-persistence branch from e3a5594 to ab48be4 Compare August 5, 2026 17:53
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@rlhui
rlhui requested review from abdosi and mlok-nokia August 5, 2026 18:04
@rlhui

rlhui commented Aug 5, 2026

Copy link
Copy Markdown

@ymd-arista please help review

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants