Skip to content

Conversation

@muhammadalihussnain
Copy link
Contributor

Link to all PRs of the KDUMP = KDUMP SONiC HLD PRs

Related sonic-utilities: Fixing remote feature build failure

Issue: There was a build failure for the remote variable in kdump-sonic-utilities PR

Following were to be addressed, which are ADDRESSED in this PR

```
    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

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tirupatihemanth
Copy link
Contributor

@muhammadalihussnain can you please rebase this PR on top of latest master changes?

@vivekrnv
Copy link
Contributor

vivekrnv commented Aug 8, 2025

@muhammadalihussnain, This fix is not solving any of the failures. Please check

root@sonic:/home/admin# sonic-kdump-config --ssh_string user@localhost
Unable to read SSH_STRING from /etc/default/kdump-tools

root@sonic:/home/admin# sonic-kdump-config --disable
Unable to read USE_KDUMP from /etc/default/kdump-tools

root@sonic:/home/admin# sonic-kdump-config --memory 0M-2G:256M,2G-4G:320M,4G-8G:384M,8G-:448M
Unable to read USE_KDUMP from /etc/default/kdump-tools

root@sonic:/home/admin# sonic-kdump-config --num_dumps 3
Unable to read KDUMP_NUM_DUMPS from /etc/default/kdump-tools

root@sonic:/home/admin# sonic-kdump-config --remote false
usage: sonic-kdump-config [-h] [--dump-db] [--enable] [--config-next] [--disable] [--status-json] [--kdump-records-json] [--config-json] [--num_dumps [NUM_DUMPS]] [--remote [REMOTE]]

                         [--ssh_string [SSH_STRING]] [--ssh_path [SSH_PATH]] [--memory [MEMORY]] [-v] [-l LINES]
kdump configuration and status tool
options:

 -h, --help            show this help message and exit
 --dump-db             Dump kdump db configuration
 --enable              Enable kdump (Current image)
 --config-next         Enable kdump (Next image)
 --disable             Disable kdump
 --status-json         Show kdump status in json format
 --kdump-records-json  Show kdump records in json format
 --config-json         Show kdump config in json format
 --num_dumps [NUM_DUMPS]
                       Maximum number of kernel dump files stored
 --remote [REMOTE]     Enable or disable remote kdump via SSH (true/false)
 --ssh_string [SSH_STRING]
                       ssh_string for remote kdump
 --ssh_path [SSH_PATH]
                       ssh_path for remote kdump
 --memory [MEMORY]     Amount of memory reserved for the capture kernel
 -v, --verbose         displays detailed kdump status information. Used with status command.
 -l LINES, --lines LINES
                       Number of lines displayed from the kernel log

root@sonic:/home/admin# echo $?
1

root@sonic:/home/admin# sonic-kdump-config --ssh_string user@localhost
Unable to read SSH_STRING from /etc/default/kdump-tools

root@sonic:/home/admin# sonic-kdump-config --ssh_path /a/b/c
Error! Exception['Namespace' object has no attribute 'verbos'] occured while processing the command sonic-kdump-config --ssh_path.

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