-
Notifications
You must be signed in to change notification settings - Fork 114
kdump-remote feature in hostcfgd #166
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
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 |
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.
LGTM
Can we merge this PR? Thanks. |
This commit is not able to be merged into sonic-buildimage:
Merge PR sonic-net/sonic-buildimage#21565 I think the test fails on KVM. |
@FengPan-Frank @qiluo-msft for viz |
Hi @muhammadalihussnain , the error message indicates that ['SSH_KEY', 'SSH_PATH', 'remote'] missing in YANG fails the validation.
|
Hi @wen587
|
@wajahatrazi @wen587 We should probably revert this since it is blocking integration of other sonic-host-services features. Once the dependencies are in, we can revert the revert. Or does #209 fix the aforementioned error? |
Hi @hdwhdw @wen587 . Following are the details: We have tried to fix the problem, with hope that no errors comes up now :) Details:
Call 2 Action:
Kindly suggest Link to all PRs for the feature & HLD: |
@wajahatrazi I merged #216 and have a new PR sonic-net/sonic-buildimage#21708 to track if the merge to sonic-buildimage:master is successful. |
@wajahatrazi the build has failed with the following message:
In particular:
This is from these two lines:
Can you fix it? Say leave the default value empty? |
@hdwhdw As per the YANG model, we can set the default value as follows:
If there is some alternative name that can is preferable, kindly suggest We cannot set default values as empty because of constraints
|
Hi @wajahatrazi @muhammadalihussnain , we saw some new error logs in virtual testbed. The errors are blocking PR test. Can you help take a look?
|
Hi @bingwang-ms, We have made changes to fix the errors. Can you please review these? Thanks |
we want to add three new features to the KDUMP table and enable the KDUMP feature remotely.