Skip to content

Add HLD for Reboot support BlockingMode in SONiC#2016

Merged
Blueve merged 9 commits intosonic-net:masterfrom
lityu:dev/lityu/local
Sep 3, 2025
Merged

Add HLD for Reboot support BlockingMode in SONiC#2016
Blueve merged 9 commits intosonic-net:masterfrom
lityu:dev/lityu/local

Conversation

@lityu
Copy link
Copy Markdown
Contributor

@lityu lityu commented Jun 13, 2025

We are trying to introduce blocking mode for reboot script, which currently is in non-blocking mode. This will make automation system easier to identify whether the reboot operation is success.

Code and test PRs:
Add BlockingMode for Reboot script by lityu · Pull Request #3958 · sonic-net/sonic-utilities
Add test plan for reboot blocking mode by lityu · Pull Request #19600 · sonic-net/sonic-mgmt

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@Blueve Blueve changed the title Add HLD for Reboot support BlockingMode in SONiCDev/lityu/local Add HLD for Reboot support BlockingMode in SONiC Jul 8, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

No pipelines are associated with this pull request.

@bmridul
Copy link
Copy Markdown
Contributor

bmridul commented Sep 2, 2025

Do we have code PRs for the changes proposed in this HLD? Can you add them to the PR description.

@Blueve
Copy link
Copy Markdown
Contributor

Blueve commented Sep 2, 2025

note: CONFIG_DB could be helpful in ZTP scenario and user might not want to touch file system --- from Brad

@Blueve
Copy link
Copy Markdown
Contributor

Blueve commented Sep 2, 2025


Jing (MSFT) :

The conf is mainly for clarifying the default behavior of reboot script.
You can treat it as a series of default parameter to a CLI

gnoi scenario:

The gnoi API need to be well defined. It is not good to rely on config_db to define its behavior as it will create more confusion and complexity. e.g.

style 1:
/system/ping
{
   ...
   count = 3; // number of pkts
   ...
}

style 2:
good:
/system/ping
//// read [count] from CONFIG_DB/PING_CONF/COUNT

I would prefer the style 1 which is clearer to me

ztp scenario:

If ZTP been used, then CLI reboot is not supposed to be used as normal operation approach.
But the admin might hope config the default reboot CLI behavior through ZTP and then make the operator's CLI operations more robust. It could be a valid scenario, but the benefit is less as the user can always perform what they want to perform in CLI mode.

@zhangyanzhao
Copy link
Copy Markdown
Collaborator

@yxieca @Blueve can you please help to merge this PR? Thanks.

@Blueve Blueve merged commit ae00906 into sonic-net:master Sep 3, 2025
1 check passed
Blueve pushed a commit to sonic-net/sonic-utilities that referenced this pull request Sep 3, 2025
What I did
Add blocking-mode for the reboot script.

How I did it
sonic-net/SONiC#2016

How to verify it
Local test and introduce test case for reboot script

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

New command output (if the output of a command-line utility has changed)
reboot [-b]
YairRaviv pushed a commit to YairRaviv/sonic-utilities that referenced this pull request Jan 12, 2026
What I did
Add blocking-mode for the reboot script.

How I did it
sonic-net/SONiC#2016

How to verify it
Local test and introduce test case for reboot script

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

New command output (if the output of a command-line utility has changed)
reboot [-b]
@anilpannala anilpannala moved this to ✅ Done in SONiC 202511 Release Jan 15, 2026
eddieruan-alibaba pushed a commit that referenced this pull request Mar 27, 2026
We are trying to introduce blocking mode for reboot script, which currently is in non-blocking mode. This will make automation system easier to identify whether the reboot operation is success.

Signed-off-by: Eddie Ruan <eddie.ruan@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

7 participants