[upgrade_path]Bug fix in test_upgrade_path#2165
Closed
bingwang-ms wants to merge 3 commits intosonic-net:masterfrom
Closed
[upgrade_path]Bug fix in test_upgrade_path#2165bingwang-ms wants to merge 3 commits intosonic-net:masterfrom
bingwang-ms wants to merge 3 commits intosonic-net:masterfrom
Conversation
1. Fix bug in check_sonic_version_after_reboot 2. Add filter for ping_dataplane to cut down CPU usage (99.9% -> 40%) 3. Refactor code in test_upgrade_path
|
This pull request introduces 1 alert when merging 1bcb7a3 into 528fb67 - view on LGTM.com new alerts:
|
Collaborator
Author
|
retest vsimage please |
Sanitycheck and LogAnalyzer are disabled for upgrade_path because 1. The cold reboot at the beginning of test probably recover DUT; 2. Cold-reboot and warm-reboot during test may produce unexpected warning log.
neethajohn
reviewed
Sep 8, 2020
| from datetime import datetime | ||
|
|
||
| from tests.common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] | ||
| from tests.common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] |
Contributor
There was a problem hiding this comment.
This required as all interface on new ptfdocker would have the same mac address.
Collaborator
Author
There was a problem hiding this comment.
Thanks. I'll recover it back.
neethajohn
reviewed
Sep 8, 2020
Collaborator
Author
|
Add and remove filter from fd frequently introduces a noticable delay. So I close this PR until fix it. |
ZhaohuiS
pushed a commit
that referenced
this pull request
Jul 7, 2022
What is the motivation for this PR? Update sub_port_interfaces TC according to changes from #2165 PR of sonic-swss How did you do it? Added function for removing ACL table when ingress/egress ACL binding is configured on LAG members. Signed-off-by: Oleksandr Kozodoi <oleksandrx.kozodoi@intel.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
Including change: * 7ff8f75 2022-06-03 | Revert "[portsorch]: Prevent LAG member configuration when port has active ACL binding (sonic-net#2165)" (sonic-net#2306) (HEAD -> 202205, github/202205) [bingwang-ms] Signed-off-by: Ying Xie <ying.xie@microsoft.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
13ec600 [generic-config-updater] Add NTP validator (sonic-net#2212) 4fc09b1 [GCU] Handling non-compliant leaf-list with string values (sonic-net#2174) ac89489 Modify override testcase to cover PORT admin_status (sonic-net#2165) d7953d2 [GCU] Validate peer_group_range ip_range are correct (sonic-net#2145)
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
5bb99c7 Validate LAG has members before mirror session create (sonic-net#2130) ec6c8af [vxlan] Remove tunnel map objects on VNET tunnel removal (sonic-net#2150) 7e7db19 [BFD]Registering BFD state change callback during session creation (sonic-net#2202) 618fe07 [VNET]Fixing nexthop group delete during route change (sonic-net#2198) 91b66df [portsorch]: Prevent LAG member configuration when port has active ACL binding (sonic-net#2165) 29de9d0 Remove redundant and problematic code to skip "pool" field in buffer profile handling (sonic-net#2197) ded0b45 [PBH] Implement Edit Flows (sonic-net#2169) 2ee0f49 [neighsyncd] increase neighsyncd timeout (sonic-net#2209) a0160c0 [QosOrch] The notifications cannot be drained in QosOrch in case the first one needs to retry (sonic-net#2206)
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)
This PR is to fix several bug in test_upgrade_path.
Type of change
Approach
What is the motivation for this PR?
This PR is to fix several bug in test_upgrade_path.
How did you do it?
Fix several bugs.
The original position of check_sonic_version_after_reboot is too closer to reboot, as a result, it might get a incorrect version. This commit moved it to the end of test.
A filter is applied before ping_dataplane to cut down CPU usage. At the very beginning of test, flooding ARP packets are captured and analyzed by ptf, which cousume lots of CPU. The filter only allow packets on port 5000 in, and the CPU usage is cut down from 99.9% to up to 40%. At the same time, the packet queue is also increase from 1000 to 10000 because the queue is full according debug log.
Use fixture to handle ptf scripts.
How did you verify/test it?
Verified on Arista-7260cx3
Any platform specific information?
No.
Supported testbed topology if it's a new test case?
N/A
Documentation
No.