Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process KDUMP attributes in CFG_DB on init #223

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arista-nwolfe
Copy link

@arista-nwolfe arista-nwolfe commented Feb 19, 2025

Fixes: sonic-net/sonic-buildimage#21625

Confirmed that with this change I see the values in config_db.json propagated to the kernel arguments on init.

E.G.

  • Write KDUMP|config enabled="true" in config_db.json
  • Reboot box
  • I now see the expected operational output Ready after reboot
root@nfc406-7:~# sonic-db-cli CONFIG_DB hgetall "KDUMP|config"
{'enabled': 'true', 'memory': '0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M', 'num_dumps': '3'}

root@nfc406-7:~# show kdump config
Kdump administrative mode: Enabled
Kdump operational mode: Ready after reboot
  • If I do one more reboot it now becomes ready
root@nfc406-7:~# show kdump config
Kdump administrative mode: Enabled
Kdump operational mode: Ready

@mssonicbld
Copy link

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

kdump initial config not translated to the USE_KDUMP kernel flag
3 participants