Improved error handling when not all Interfaces are up#853
Merged
liat-grozovik merged 2 commits intosonic-net:masterfrom May 26, 2019
Merged
Improved error handling when not all Interfaces are up#853liat-grozovik merged 2 commits intosonic-net:masterfrom
liat-grozovik merged 2 commits intosonic-net:masterfrom
Conversation
Contributor
|
What is changed base on #815? |
Collaborator
Collaborator
|
this PR was verified on top of sonic-mgmt master today and found to be working just fine. |
liat-grozovik
approved these changes
May 22, 2019
pavel-shirshov
approved these changes
May 24, 2019
yxieca
pushed a commit
that referenced
this pull request
May 28, 2019
* Improved error handling when not all Interfaces are up * Fixed PR 853.
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.
Recreated PR
#815 which was merged and reverted
Description of PR
Summary:
Any test, that calls interface.yml, if encountered that some Interfaces/PortChannels are not up, will not just fail but will try to gather interfaces status from Fanout/VMs as well.
Type of change
Approach
How did you do it?
when 'Verify interfaces are up' step fails.
How did you verify/test it?
Any test that call interface.yml, in two cases:
In this case nothing is changed.
In that cases, the test fails as usual, but gathers Interfaces status from Fanout.
In that cases, the test fails as usual, but gathers VMs status from Testbed server, and PortChannel status from VMs.
Any platform specific information?
Current implementation can enter Fanout switch, only if Fanout is MLNX type.
The 'Check Fanout interfaces' step in check_testbed_interfaces.yml calls fanout.yml (actually fanout role) with tag 'check_interfaces_status'
In this case anyone can modify roles/fanout/tasks/main.yml to execute Fanout specific step with
when: peer_hwsku == "<specific_fanout_type>" tags: check_interfaces_status
Example:
Supported testbed topology if it's a new test case?
Documentation