-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enable Kdump config by default for cisco-8000 #16224
Conversation
Signed-off-by: Aman Singhal <amans@cisco.com>
how is this tested, can you provide the test results? |
Appended crashkernel argument in cisco-8000 device installer.conf:ONIE_PLATFORM_EXTRA_CMDLINE_LINUX, which will be used by onie-nos-install and sonic-installer to populate /host/grub/grub.cfg on image installation, and subsequently, kernel cmdline as well on first bootup. Kdump kernel gets loaded by default on first boot:
Also, kdump can still be disabled from config kdump CLI, it will supersede this new default behavior. Kernel panic invoked thru sysrq-trigger and memory exhaustion. Cases covered:
|
@lguohan Pls let me know if you need more details, thanks. |
@lguohan Can you pls approve/merge, if no further comments, thanks. |
@amnsinghal , thank for the contribution. however, we won't backport this since this is a feature, not a bugfix. |
@lguohan Thanks for merging, can you pls raise request for cherry-picking to 202305. |
Why I did it Enabling kdump by default for cisco-8000 by setting crashkernel cmdline arg in device installer.conf. After bootup, sonic-kdump-config wipes crashkernel arg from /host/grub/grub.cfg, and resets USE_KDUMP in /etc/default/kdump-tools, so kdump will not be enabled on subsequent reboot. How I did it Setting kdump enable config as part of init_cfg.json for cisco-8000 platforms. How to verify it Install SONiC image with kdump enabled by default (device/hwsku/installer.conf), then reboot. Kdump config should persist on subsequent reboots and kdump loaded during bootup Signed-off-by: Aman Singhal <amans@cisco.com>
@prgeor Thanks for adding 202305 label, who can help with the cherry-pick? |
@StormLiangMS to cherry pick to 202305 |
@amnsinghal have you tested with 202305? |
@StormLiangMS yes, validated with 202305 build on Cisco 8111-32eh-o platform. Pls help cherry-pick to 202305, if no further concerns, thanks! |
Why I did it Enabling kdump by default for cisco-8000 by setting crashkernel cmdline arg in device installer.conf. After bootup, sonic-kdump-config wipes crashkernel arg from /host/grub/grub.cfg, and resets USE_KDUMP in /etc/default/kdump-tools, so kdump will not be enabled on subsequent reboot. How I did it Setting kdump enable config as part of init_cfg.json for cisco-8000 platforms. How to verify it Install SONiC image with kdump enabled by default (device/hwsku/installer.conf), then reboot. Kdump config should persist on subsequent reboots and kdump loaded during bootup Signed-off-by: Aman Singhal <amans@cisco.com>
Cherry-pick PR to 202305: #16910 |
Why I did it Enabling kdump by default for cisco-8000 by setting crashkernel cmdline arg in device installer.conf. After bootup, sonic-kdump-config wipes crashkernel arg from /host/grub/grub.cfg, and resets USE_KDUMP in /etc/default/kdump-tools, so kdump will not be enabled on subsequent reboot. How I did it Setting kdump enable config as part of init_cfg.json for cisco-8000 platforms. How to verify it Install SONiC image with kdump enabled by default (device/hwsku/installer.conf), then reboot. Kdump config should persist on subsequent reboots and kdump loaded during bootup Signed-off-by: Aman Singhal <amans@cisco.com>
Why I did it
Enabling kdump by default for cisco-8000 by setting crashkernel cmdline arg in device installer.conf.
After bootup, sonic-kdump-config wipes crashkernel arg from /host/grub/grub.cfg, and resets USE_KDUMP in /etc/default/kdump-tools, so kdump will not be enabled on subsequent reboot.
How I did it
Setting kdump enable config as part of init_cfg.json for cisco-8000 platforms.
How to verify it
Install SONiC image with kdump enabled by default (device/hwsku/installer.conf), then reboot.
Kdump config should persist on subsequent reboots and kdump loaded during bootup.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Enabling kdump by default for cisco-8000 platforms.