Skip to content

Dump media_settings from appDB during fast-reboot#1910

Merged
tjchadaga merged 1 commit intosonic-net:masterfrom
tjchadaga:fastboot_fix
Nov 8, 2021
Merged

Dump media_settings from appDB during fast-reboot#1910
tjchadaga merged 1 commit intosonic-net:masterfrom
tjchadaga:fastboot_fix

Conversation

@tjchadaga
Copy link
Contributor

@tjchadaga tjchadaga commented Nov 3, 2021

What I did

During fast-reboot, media settings will be dumped from appDB to media_config.json file so they can be loaded to redis after fast-reboot. This is done as part of fix for sonic-net/sonic-buildimage#9165.

How I did it

During fast-reboot, delayed serdes programming done after transceiver detection results in additional interface flap and traffic loss exceeding the required 30s. This is addressed by

  1. making a backup of media settings from appdb during fast-reboot (This PR)
  2. loading this to redis after the switch boots up (Fix for additional interface flap during fast-reboot on platforms due to delayed serdes programming sonic-buildimage#9166).
  3. Configuration of serdes triggered by reading media_settings.json file is skipped (Skip loading media config from media_settings.json for fast-reboot sonic-platform-daemons#221)

How to verify it

The script will dump an additional json file (media_config.json)

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants