Fix verify_orchagent_running_or_assert() for multi-ASIC#18463
Merged
abdosi merged 1 commit intosonic-net:masterfrom May 21, 2025
Merged
Fix verify_orchagent_running_or_assert() for multi-ASIC#18463abdosi merged 1 commit intosonic-net:masterfrom
abdosi merged 1 commit intosonic-net:masterfrom
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
arlakshm
approved these changes
May 17, 2025
Contributor
|
/Azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
arlakshm
pushed a commit
to Azure/sonic-mgmt.msft
that referenced
this pull request
May 17, 2025
…292) Cherry-pick the fix of `verify_orchagent_running_or_assert` in following PRs to msft-202503: - sonic-net/sonic-mgmt#16065 - sonic-net/sonic-mgmt#18463
opcoder0
pushed a commit
to opcoder0/sonic-mgmt
that referenced
this pull request
Dec 8, 2025
…all ASIC's. (sonic-net#18463) Fix this by checking the orchagent state in for loop for every ASIC. Signed-off-by: opcoder0 <[email protected]>
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
…all ASIC's. (sonic-net#18463) Fix this by checking the orchagent state in for loop for every ASIC. Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
…all ASIC's. (sonic-net#18463) Fix this by checking the orchagent state in for loop for every ASIC. Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Jan 26, 2026
…all ASIC's. (sonic-net#18463) Fix this by checking the orchagent state in for loop for every ASIC. Signed-off-by: Guy Shemesh <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Current implementation of
verify_orchagent_running_or_assertdoes not verify orchagent state on all ASIC's. This is the code in question:On multi-ASIC, the validation of orchagent running state
return 'RUNNING' in output['stdout']is outside of the for loop. This means only the orchagent state of the ASIC with largest Id is checked.Fix this by checking the orchagent state in for loop for every ASIC.
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation