Skip to content

[action] [PR:404] [gnoi_shutdown_daemon] Log gNOI Reboot failure details - #417

Merged
mssonicbld merged 1 commit into
sonic-net:202605from
mssonicbld:cherry/202605/404
Jul 29, 2026
Merged

mssonicbld merged 1 commit into
sonic-net:202605from
mssonicbld:cherry/202605/404

Conversation

@mssonicbld

Copy link
Copy Markdown

Why I did it

When the gNOI Reboot (HALT) call to a DPU failed during graceful shutdown, the daemon only logged
"Reboot command failed" and hid stderr. That made failures hard to debug.

Work item tracking
  • Microsoft ADO (number only): N/A

How I did it

  • Stopped hiding stderr on the gNOI Reboot call.
  • Added the return code, target IP:port, and the real error text to the log message.

How to verify it

  • Run a graceful shutdown where the gNOI Reboot call fails (for example, an unreachable DPU).
  • Check syslog and confirm the log now shows rc, target IP:port, and the gNOI error text.

Description for the changelog

Log full gNOI Reboot failure details (rc, target, stderr) in gnoi_shutdown_daemon.

Signed-off-by: Sonic Build Admin sonicbld@microsoft.com

#### Why I did it
When the gNOI Reboot (HALT) call to a DPU failed during graceful shutdown, the daemon only logged
"Reboot command failed" and hid stderr. That made failures hard to debug.

##### Work item tracking
- Microsoft ADO **(number only)**: N/A

#### How I did it
- Stopped hiding stderr on the gNOI Reboot call.
- Added the return code, target IP:port, and the real error text to the log message.

#### How to verify it
- Run a graceful shutdown where the gNOI Reboot call fails (for example, an unreachable DPU).
- Check syslog and confirm the log now shows rc, target IP:port, and the gNOI error text.

#### Description for the changelog
Log full gNOI Reboot failure details (rc, target, stderr) in gnoi_shutdown_daemon.

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Author

Original PR: #404

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld
mssonicbld merged commit dd015e1 into sonic-net:202605 Jul 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant