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