Fix failures of test_dynamic_acl on dualtor#17055
Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom Feb 21, 2025
Merged
Fix failures of test_dynamic_acl on dualtor#17055StormLiangMS merged 1 commit intosonic-net:masterfrom
StormLiangMS merged 1 commit intosonic-net:masterfrom
Conversation
Signed-off-by: Zhaohui Sun <[email protected]>
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Feb 21, 2025
What is the motivation for this PR?
For dualtor, the content of config_facts['VLAN_INTERFACE'] is like:
grat_arp is not ip address, need to catch the exception and continue to loop the next one until to get ip address
"VLAN_INTERFACE": {
"Vlan1000": {
"grat_arp": "enabled",
"proxy_arp": "enabled",
"192.168.0.1/21": {
},
"fc02:1000::1/64": {
}
}
},
How did you do it?
Add try catch to avoid such kind of exception.
How did you verify/test it?
Run test_dynamic_acl on dualtor
Test evidence on dualtor:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
-------------------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------------------
11:56:28 __init__.pytest_terminal_summary L0067 INFO | Can not get Allure report URL. Please check logs
======================================================================================= 12 passed, 123 warnings in 2943.09s (0:49:03) =======================================================================================
DEBUG:tests.conftest:[log_custom_msg] item: <Function test_gcu_acl_nonexistent_table_removal[default-Vlan1000]>
INFO:root:Can not get Allure report URL. Please check logs
Collaborator
|
Cherry-pick PR to 202405: #17081 |
11 tasks
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Feb 21, 2025
What is the motivation for this PR?
For dualtor, the content of config_facts['VLAN_INTERFACE'] is like:
grat_arp is not ip address, need to catch the exception and continue to loop the next one until to get ip address
"VLAN_INTERFACE": {
"Vlan1000": {
"grat_arp": "enabled",
"proxy_arp": "enabled",
"192.168.0.1/21": {
},
"fc02:1000::1/64": {
}
}
},
How did you do it?
Add try catch to avoid such kind of exception.
How did you verify/test it?
Run test_dynamic_acl on dualtor
Test evidence on dualtor:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
-------------------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------------------
11:56:28 __init__.pytest_terminal_summary L0067 INFO | Can not get Allure report URL. Please check logs
======================================================================================= 12 passed, 123 warnings in 2943.09s (0:49:03) =======================================================================================
DEBUG:tests.conftest:[log_custom_msg] item: <Function test_gcu_acl_nonexistent_table_removal[default-Vlan1000]>
INFO:root:Can not get Allure report URL. Please check logs
Collaborator
|
Cherry-pick PR to 202411: #17082 |
11 tasks
mssonicbld
pushed a commit
that referenced
this pull request
Feb 21, 2025
What is the motivation for this PR?
For dualtor, the content of config_facts['VLAN_INTERFACE'] is like:
grat_arp is not ip address, need to catch the exception and continue to loop the next one until to get ip address
"VLAN_INTERFACE": {
"Vlan1000": {
"grat_arp": "enabled",
"proxy_arp": "enabled",
"192.168.0.1/21": {
},
"fc02:1000::1/64": {
}
}
},
How did you do it?
Add try catch to avoid such kind of exception.
How did you verify/test it?
Run test_dynamic_acl on dualtor
Test evidence on dualtor:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
-------------------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------------------
11:56:28 __init__.pytest_terminal_summary L0067 INFO | Can not get Allure report URL. Please check logs
======================================================================================= 12 passed, 123 warnings in 2943.09s (0:49:03) =======================================================================================
DEBUG:tests.conftest:[log_custom_msg] item: <Function test_gcu_acl_nonexistent_table_removal[default-Vlan1000]>
INFO:root:Can not get Allure report URL. Please check logs
kperumalbfn
pushed a commit
that referenced
this pull request
Feb 21, 2025
nnelluri-cisco
pushed a commit
to nnelluri-cisco/sonic-mgmt
that referenced
this pull request
Mar 15, 2025
What is the motivation for this PR?
For dualtor, the content of config_facts['VLAN_INTERFACE'] is like:
grat_arp is not ip address, need to catch the exception and continue to loop the next one until to get ip address
"VLAN_INTERFACE": {
"Vlan1000": {
"grat_arp": "enabled",
"proxy_arp": "enabled",
"192.168.0.1/21": {
},
"fc02:1000::1/64": {
}
}
},
How did you do it?
Add try catch to avoid such kind of exception.
How did you verify/test it?
Run test_dynamic_acl on dualtor
Test evidence on dualtor:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
-------------------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------------------
11:56:28 __init__.pytest_terminal_summary L0067 INFO | Can not get Allure report URL. Please check logs
======================================================================================= 12 passed, 123 warnings in 2943.09s (0:49:03) =======================================================================================
DEBUG:tests.conftest:[log_custom_msg] item: <Function test_gcu_acl_nonexistent_table_removal[default-Vlan1000]>
INFO:root:Can not get Allure report URL. Please check logs
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
### Why I did it Fix flakiness of eventd UT - run sub after capture service starts ##### Work item tracking - Microsoft ADO **(number only)**:25650744 #### How I did it Run sub socket after capture socket is initialized #### How to verify it Pipeline
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
Summary:
Fixes # (issue)
GCU test_dynamic_acl failed on dualtor after #16637
Type of change
Back port request
Approach
What is the motivation for this PR?
For dualtor, the content of config_facts['VLAN_INTERFACE'] is like:
grat_arpis not ip address, need to catch the exception and continue to loop the next one until to get ip addressHow did you do it?
Add try catch to avoid such kind of exception.
How did you verify/test it?
Run test_dynamic_acl on dualtor
Test evidence on dualtor:
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation