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-remote feature in hostcfgd #166

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

Conversation

muhammadalihussnain
Copy link

we wantwant to add three new features to the KDUMP table and enable the KDUMP feature remotely.

@muhammadalihussnain
Copy link
Author

This PR is related to or dependent on sonic-net/SONiC#1714.

@muhammadalihussnain
Copy link
Author

@venkatmahalingam Hi! we have updated the code. Please Help us review the Code PRs. Thanks

@ridahanif96
Copy link
Contributor

@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})

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is still there, it is not removed. Added Detail for remote configs here in kdump table
image

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])

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": ""

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 .

@wajahatrazi
Copy link

Hi @venkatmahalingam , please help merge this PR. Regards

@wajahatrazi
Copy link

Hi @qiluo-msft

PR has been reviewed by the reviewer with all checks passed, please help merge this.

@ridahanif96
Copy link
Contributor

@qiluo-msft help merge this PR, pending for long

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.

4 participants