sonic-utilities
sonic-utilities copied to clipboard
kdump-Remote-SSH-Configurations
What I did Added remote kdump functionality using SSH in SONiC.
How I did it I added two new commands and two options to configure the kdump remote ssh feature.
How to verify it Upon kernel crash, kdump will transfer the crash report files to the ssh server.
@venkatmahalingam can you please help review this PR?
@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
Hi @qiluo-msft , please review to merge this PR
Hi @qiluo-msft / @lguohan
PR has been reviewed by the reviewer with all checks passed, please help merge this.
@qiluo-msft help merge this PR, pending for long
@qiluo-msft this PR has been approved by reviewers and can you please help to check if you are ok to merge? Thanks.
@qiluo-msft this PR has been approved by reviewers and can you please help to merge? Thanks.
@qiluo-msft this PR has been approved by reviewers and can you please help to merge? Thanks.
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
@qiluo-msft this PR has been approved by reviewers and can you please help to merge? Thanks.
hi @Ghulam-Bahoo, we are seeing some issues with this change. Several buildimage pipeline runs are failing because of errors like the following:
E 2025 Apr 1 04:56:08.321576 vlab-02 ERR hostcfgd: ['sonic-kdump-config', '--disable'] - failed: return code - 1, output:#012None
E 2025 Apr 1 04:56:09.638838 vlab-02 ERR hostcfgd: ['sonic-kdump-config', '--memory', '0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M'] - failed: return code - 1, output:#012None
E 2025 Apr 1 04:56:11.199498 vlab-02 ERR hostcfgd: ['sonic-kdump-config', '--num_dumps', '3'] - failed: return code - 1, output:#012None
E 2025 Apr 1 04:56:13.969595 vlab-02 ERR hostcfgd: ['sonic-kdump-config', '--remote', 'false'] - failed: return code - 2, output:#012None
E 2025 Apr 1 04:56:16.373762 vlab-02 ERR hostcfgd: ['sonic-kdump-config', '--ssh_string', 'user@localhost'] - failed: return code - 1, output:#012None
E 2025 Apr 1 04:56:17.579657 vlab-02 ERR hostcfgd: ['sonic-kdump-config', '--ssh_path', '/a/b/c'] - failed: return code - 1, output:#012None
@arista-nwolfe did some debugging on this and found out that you are using options.remote without adding that option.
parser.add_argument('--ssh_string', nargs='?', type=str, action='store', default=False,
help='ssh_string for remote kdump')
parser.add_argument('--ssh_path', nargs='?', type=str, action='store',default=False,
help='ssh_path for remote kdump')
Could you please help fix this asap?
@judyjoseph for viz.