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

[kdump] Remove automatic saving of kdump config in startup config #1882

Merged

Conversation

rajendra-dendukuri
Copy link
Contributor

Fix sonic-net/sonic-buildimage#8888

Warn user to save the config instead of saving the kdump config
in config_db.json under the covers. Having more than one actors
operate on config_db.json can result in an exception.

What I did

Remove automatic saving of kdump config in startup config. Warn user to save the config instead of saving the kdump config in config_db.json under the covers.

How I did it

Remove automatic saving of kdump config in startup config. Warn user to save the config instead of saving the kdump config in config_db.json under the covers.

How to verify it

config kdump enable
config kdump disable
config kdump memory

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

root@sonic:/home/admin# config kdump disable
root@sonic:/home/admin# config kdump enable
root@sonic:/home/admin# config kdump memory 512M

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

root@sonic:/home/admin# config kdump disable
KDUMP configuration changes may require a reboot to take effect.
Save SONiC configuration using 'config save' before issuing the reboot command.

root@sonic:/home/admin# config kdump enable
KDUMP configuration changes may require a reboot to take effect.
Save SONiC configuration using 'config save' before issuing the reboot command.

root@sonic:/home/admin# config kdump memory 0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M
KDUMP configuration changes may require a reboot to take effect.
Save SONiC configuration using 'config save' before issuing the reboot command.

Warn user to save the config instead of saving the kdump config
in config_db.json under the covers. Having more than one actors
operate on config_db.json can result in an exception.
@rajendra-dendukuri
Copy link
Contributor Author

@dgsudharsan Please review

@lgtm-com
Copy link

lgtm-com bot commented Oct 14, 2021

This pull request introduces 3 alerts when merging b59ba2f into 9bc6500 - view on LGTM.com

new alerts:

  • 3 for Unused local variable

@dgsudharsan
Copy link
Collaborator

@lguohan Can you please review and merge?

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.

3 participants