-
Notifications
You must be signed in to change notification settings - Fork 83
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-remote feature in hostcfgd #166
base: master
Are you sure you want to change the base?
kdump-remote feature in hostcfgd #166
Conversation
This PR is related to or dependent on sonic-net/SONiC#1714. |
@venkatmahalingam Hi! we have updated the code. Please Help us review the Code PRs. Thanks |
@venkatmahalingam Hi! we have updated the code. Please Help us review the Code PRs. Thanks in advance , target is 202411 |
@@ -1147,7 +1152,7 @@ class KdumpCfg(object): | |||
for row in self.kdump_defaults: | |||
value = self.kdump_defaults.get(row) | |||
if not kdump_conf.get(row): | |||
self.config_db.mod_entry("KDUMP", "config", {row : value}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scripts/hostcfgd
Outdated
ssh_path = self.kdump_defaults["SSH_PATH"] | ||
if data.get("SSH_PATH") is not None: | ||
ssh_path = data.get("SSH_PATH") | ||
run_cmd(["sonic-kdump-config", "--ssh_path", ssh_path]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should we execute run_cmd with following defaults when KDUMP remote is not desired by the user?
SSH_KEY": "user@server", # New feature: SSH key, default value
"SSH_PATH": ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @venkatmahalingam i have update the code as suggested above .
Hi @venkatmahalingam , please help merge this PR. Regards |
Hi @qiluo-msft PR has been reviewed by the reviewer with all checks passed, please help merge this. |
@qiluo-msft help merge this PR, pending for long |
we wantwant to add three new features to the KDUMP table and enable the KDUMP feature remotely.