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

Enabled configuration of the default number of kdumps #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmridul
Copy link

@bmridul bmridul commented Jan 10, 2025

Why I did it

Hostcfgd is not configuring the num_kdumps in linux based on default/init configuration. This PR is fixing that.

The PR is opened as result of suggestion made in sonic-net/sonic-buildimage#20647

Work item tracking
  • Microsoft ADO (number only):

How I did it

Enabled num_kdumps config in hostcfgd during boot.

How to verify it

UT Log:
root@sonic:/home/cisco# show reboot h
Name Cause Time User Comment


2024_08_26_19_35_54 Kernel Panic Mon Aug 26 07:32:18 PM UTC 2024 N/A N/A
2024_08_26_19_29_47 Kernel Panic Mon Aug 26 07:26:16 PM UTC 2024 N/A N/A
2024_08_26_19_04_03 Kernel Panic Mon Aug 26 07:00:36 PM UTC 2024 N/A N/A
2024_08_26_18_54_39 Kernel Panic Mon Aug 26 06:51:35 PM UTC 2024 N/A N/A
2024_08_26_18_43_13 reboot Mon Aug 26 06:36:53 PM UTC 2024 cisco N/A
...
root@sonic:/home/cisco# show kdump files
Kernel core dump files Kernel dmesg files


/var/crash/202408261932/kdump.202408261932 /var/crash/202408261932/dmesg.202408261932
/var/crash/202408261926/kdump.202408261926 /var/crash/202408261926/dmesg.202408261926
/var/crash/202408261900/kdump.202408261900 /var/crash/202408261900/dmesg.202408261900
root@sonic:/home/cisco# ls /var/crash/
202408261900 202408261926 202408261932 kdump_lock kexec_cmd

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

  • 202405

Description for the changelog

Configured the num_kdumps parameter during process startup.

Link to config_db schema for YANG module changes

N/A

A picture of a cute animal (not mandatory but encouraged)

@mssonicbld
Copy link

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bmridul bmridul marked this pull request as ready for review January 10, 2025 07:29
@bmridul
Copy link
Author

bmridul commented Jan 10, 2025

@saiarcot895 Pls review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants