Skip to content

Regression: gNOI reboot without message fails #22545

@jkmar

Description

@jkmar

Is it platform specific

generic

Importance or Severity

Medium

Previous Working Version

202411

Steps to Reproduce

  1. Execute gNOI COLD reboot without a message:
root@sonic:/# gnoi_client -notls -insecure -module System -rpc Reboot -jsonin '{"method":1}'
System Reboot
root@sonic:/# gnoi_client -notls -insecure -module System -rpc RebootStatus
System RebootStatus
{"count":1,"method":1,"status":{"status":3,"message":"HostServiceDbus::Reboot: failed to call reboot host service"}}

Impact of this regression

After merging the new reboot implementation (sonic-net/sonic-gnmi#308, sonic-net/sonic-host-services#191, #20713) gNOI COLD reboot without a message fails.
Previously it was possible to execute a gNOI COLD reboot without a message.

The reason of the failure is KeyError exception thrown by reboot host service here: https://github.com/sonic-net/sonic-host-services/blob/master/host_modules/reboot.py#L188

Relevant log output

Output of show version, show techsupport

Attach files (if any)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions