Skip to content

Replay saved module admin down state on boot in chassisd #868

Description

@gupurush

Description

On modular chassis supervisors, shutting down a fabric/line module and saving config does not persist the hardware shutdown across reboot. After reboot, admin_status stays down in CONFIG_DB but oper_status can remain Online and power rails stay on.

Steps to Reproduce

config chassis modules shutdown FABRIC-CARD1
sudo config save -y
reboot
show chassis modules status

Expected vs Actual

Expected Actual
admin_status down down
oper_status Offline Online
Power rails off on

Root Cause

chassisd does not replay persisted admin_status: down from CONFIG_DB at boot for fabric/line modules on modular chassis supervisors.

Proposed Fix

Add set_initial_module_admin_state() in chassisd to call set_admin_state(MODULE_ADMIN_DOWN) for present fabric/line modules with saved admin down, once at supervisor boot (before the main loop).

Test Plan

  • Shut down FC1 → save → reboot → verify admin=down, oper=Offline, rails off, no swss@2/3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions