Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reboot]: Allow reboot to happen regardless vendor hook errors #3454

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

nazariig
Copy link
Collaborator

Signed-off-by: Nazarii Hnydyn nazariig@nvidia.com

The fix is aimed to resolve reboot issue when vendor reboot hook is executed during syncd service startup.

Relevant PRs:

  1. [graceful reboot] Add the pre_reboot_hook script execution, add the watchdog arm before the reboot  #3203
  2. [reboot] make sure the reboot happens even if platform reboot failed #819

What I did

  • Fixed reboot failure in case of vendor reboot hook error

How I did it

  • Removed error validation

How to verify it

  1. Execute reboot when syncd is starting and ASIC reset is in progress

Previous command output (if the output of a command-line utility has changed)

  • N/A

New command output (if the output of a command-line utility has changed)

  • N/A

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@bingwang-ms
Copy link
Contributor

@prgeor Can you please help review this PR? Thanks

@prgeor
Copy link
Contributor

prgeor commented Jul 29, 2024

@nazariig What is the connection between syncd service startup and your platform's reboot hook?

@nazariig
Copy link
Collaborator Author

@prgeor this bug is vendor specific. The flow can be interrupted if cold reboot is called during syncd service startup since the last one triggers ASIC reset. During ASIC reset we cannot read the FW state, thus reboot hook returns error

scripts/reboot Show resolved Hide resolved
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@prgeor prgeor merged commit d25e531 into sonic-net:master Sep 3, 2024
7 checks passed
@prgeor
Copy link
Contributor

prgeor commented Sep 3, 2024

@bingwang-ms can you take this to 202405 as a bug fix/improvement

mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Sep 3, 2024
…-net#3454)

* [reboot]: Allow reboot to happen regardless vendor hook errors.

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>

* [reboot]: Handle review comments.

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>

---------

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3517

mssonicbld pushed a commit that referenced this pull request Sep 3, 2024
* [reboot]: Allow reboot to happen regardless vendor hook errors.

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>

* [reboot]: Handle review comments.

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>

---------

Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
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.

6 participants