Skip to content

[copp] Fix COPP test failures and make clean-up more robust#1904

Merged
daall merged 2 commits intosonic-net:masterfrom
daall:fix_copp
Jul 16, 2020
Merged

[copp] Fix COPP test failures and make clean-up more robust#1904
daall merged 2 commits intosonic-net:masterfrom
daall:fix_copp

Conversation

@daall
Copy link
Contributor

@daall daall commented Jul 15, 2020

  • Add minig_bgp var introduced by 1171
  • Disable loganalyzer by default for LLDP messages
  • Updates default swap_syncd behavior to match qos_sai
  • Remove docker images after test

Signed-off-by: Danny Allen daall@microsoft.com

Description of PR

Summary: Fix COPP test failures and make clean-up process more robust.
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

There are a few problems we found:

  • The pytests do not support the fix in Wrong DIP on packet #1171 yet
  • The default behavior for swap_syncd was different between this set of tests and qos_sai, so this set of tests wasn't running properly
  • Loganalyzer flags the "LLDP down" messages as failures
  • swap_syncd leaves the RPC image behind after test, which is problematic for performing upgrade tests on devices with smaller hard drives

This PR addresses all 4 of those issues, which should make the COPP tests more reliable and stable.

How did you do it?

I addressed each issue in turn:

  • Added the minig_bgp variable from Wrong DIP on packet #1171 to the ptf runner params
  • Changed swap_syncd to enable by default to match qos_sai
  • Disabled loganalyzer for this set of tests (note: it would be helpful to only ignore LLDP error messages, as those are expected, but this will be refined in a later PR)
  • Removed the RPC docker image at the end of restore_syncd

How did you verify/test it?

Tests pass locally, and the RPC docker image is not present on the DUT after the tests complete.

Any platform specific information?

N/A

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

N/A

Documentation

- Add minig_bgp var introduced by 1171
- Disable loganalyzer by default for LLDP messages
- Updates default swap_syncd behavior to match qos_sai
- Remove docker images after test

Signed-off-by: Danny Allen <daall@microsoft.com>
@daall daall requested a review from a team July 15, 2020 00:40
@lgtm-com
Copy link

lgtm-com bot commented Jul 15, 2020

This pull request introduces 2 alerts and fixes 2 when merging a69d389 into e3652ee - view on LGTM.com

new alerts:

  • 2 for Unused import

fixed alerts:

  • 2 for Unused import


pytestmark = [
pytest.mark.topology('t1')
pytest.mark.disable_loganalyzer, # TODO: Figure out how to *only* ignore LLDP log messages.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log analyzer was extended to support such a case in qos test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, fixed!

@lgtm-com
Copy link

lgtm-com bot commented Jul 15, 2020

This pull request introduces 2 alerts and fixes 2 when merging e03598d into e048d8f - view on LGTM.com

new alerts:

  • 2 for Unused import

fixed alerts:

  • 2 for Unused import

@daall daall merged commit 9c8ad51 into sonic-net:master Jul 16, 2020
@daall daall deleted the fix_copp branch July 16, 2020 18:36
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Submodule update for sonic-utilties

```
48035d75 [202012] [techsupport] Techsupport Error Reporting pending fixes (sonic-net#1854)
8b2ec09a Fix log_ssd_health hang issue (sonic-net#1904)
ac9c4254 Fix the option missing in kernel config issue (sonic-net#1888)
5cc9417a disk_check: Script updated to run good in 201811 & 201911 (sonic-net#1747)
```
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
swss
73caba3 Allow interface type value none (sonic-net#1991)

utilities
32e530f Allow interface type value none (sonic-net#1902)
53f066c Fix log_ssd_health hang issue (sonic-net#1904)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants