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
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_statusstaysdownin CONFIG_DB butoper_statuscan remain Online and power rails stay on.Steps to Reproduce
Expected vs Actual
Root Cause
chassisddoes not replay persistedadmin_status: downfrom CONFIG_DB at boot for fabric/line modules on modular chassis supervisors.Proposed Fix
Add
set_initial_module_admin_state()inchassisdto callset_admin_state(MODULE_ADMIN_DOWN)for present fabric/line modules with saved admin down, once at supervisor boot (before the main loop).Test Plan
swss@2/3