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

Don't exit warmboot-finalizer loop early due to SSH connection issue #15985

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

saiarcot895
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

In some cases, connecting to the device may fail for whatever reason. If this happens, the current code returns an empty string as the warmboot-finalizer state. There's a for-loop that exits when the warmboot-finalizer state is no longer active. An empty string being returned here breaks that.

How did you do it?

To avoid that, don't exit this loop if we get an empty string.

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

In some cases, connecting to the device may fail for whatever reason. If
this happens, the current code returns an empty string as the
warmboot-finalizer state. There's a for-loop that exits when the
warmboot-finalizer state is no longer active. An empty string being
returned here breaks that.

To avoid that, don't exit this loop if we get an empty string.

Signed-off-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 changed the title If we can't get the warmboot-finalizer state, don't exit Don't exit warmboot-finalizer loop early due to SSH connection issue Dec 10, 2024
@bingwang-ms bingwang-ms merged commit dd14c06 into sonic-net:master Dec 13, 2024
16 checks passed
@saiarcot895 saiarcot895 deleted the warmboot-finalizer-fix branch December 13, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants