Skip to content

[Smartswitch][reboot-cause] Invalid reboot cause on First boot  #21372

Closed
sonic-net/sonic-utilities
#3271
@gpunathilell

Description

@gpunathilell

Description

In intermittent cases, the DPU reboot causes are not updated properly on execution of show reboot-cause all and show reboot-cause history all command on booting the switch first, but upon execution of a reboot of the DPU once the switch is powered on, this issue is fixed
One example scenario is:
All DPUS are powered on initially, We set the admin state of all the DPUs to down state , once DPUs are powered off when the switch is rebooted, when the show reboot-cause all command is executed - we do not see the DPU reboot causes, only switch reboot causes are shown, when the show reboot-cause history command is executed the DPU reboot causes are mis represented as NPU reboot causes (the device is shown as NPU instead of the relevant DPU)
Both of these command outputs are fixed on execution of a reboot (once all DPUs are rebooted while the switch is still powered on) - the right output is displayed for both the commands.
Not sure if the reboot implementation would fix this issue

Steps to reproduce the issue:

  1. config chassis modules shutdown DPUs
  2. reboot the switch
  3. The show reboot-cause all doesn't show any DPU information
  4. The show reboot-cause history all shows DPU reboot causes as the NPU reboot causes
  5. Reboot the dpus - the issue is fixed

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions