Skip to content

Bug:sonic-kdump-config --remote option does not support argument true/false #24488

@mandyamahesh

Description

@mandyamahesh

Is it platform specific

generic

Importance or Severity

High

Description of the bug

admin@sonic:~$ show boot
Current: SONiC-OS-master.0-dirty-20251030.082117
Next: SONiC-OS-master.0-dirty-20251030.082117
Available:
SONiC-OS-master.0-dirty-20251030.082117

sonic-kdump-config does not expect true/false for --remote option but the config kdump invokes the command with false option which fails with an error as below

admin@sonic:~$ sudo sonic-kdump-config --remote true
usage: sonic-kdump-config [-h] [--dump-db] [--enable] [--config-next]
[--disable] [--status-json] [--kdump-records-json]
[--config-json] [--num_dumps [NUM_DUMPS]] [--remote]
[--ssh_string [SSH_STRING]] [--ssh_path [SSH_PATH]]
[--memory [MEMORY]] [-v] [-l LINES]
sonic-kdump-config: error: unrecognized arguments: false

even hostcfgd report same errors on config save and config reload or reboot.

Steps to Reproduce

sudo config kdump enable
sudo config save
sudo reboot

check hostcfgd logs or config reload and check the logs

Actual Behavior and Expected Behavior

Expected sonic-kdump-config should accept true/false argument for --remote as per design.

Relevant log output

Output of show version, show techsupport

Attach files (if any)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions