Skip to content

[dualtor] Remove acl-drop verification from mux_toggle testcase#4041

Merged
lguohan merged 3 commits intosonic-net:masterfrom
vaibhavhd:skip-acl-drop
Aug 14, 2021
Merged

[dualtor] Remove acl-drop verification from mux_toggle testcase#4041
lguohan merged 3 commits intosonic-net:masterfrom
vaibhavhd:skip-acl-drop

Conversation

@vaibhavhd
Copy link
Copy Markdown
Contributor

@vaibhavhd vaibhavhd commented Aug 13, 2021

Description of PR

Summary: Remove verification of RX_DRP counters from test test_standby_tor_upstream_mux_toggle
Fixes sonic-net/sonic-buildimage#8091

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

Related image change: sonic-net/sonic-buildimage#8383

Do not verify ACL RX_DRP as the counters will not be increased in this case.

How did you do it?

Removed drop counter verification from the test.

How did you verify/test it?

Tested on mocked dualtor and the older issue (failure to verify drops) is not seen anymore.
There is another CRM issue in this testcase, which will be handled in differerent issue/PR.

dualtor/test_standby_tor_upstream_mux_toggle.py::test_standby_tor_upstream_mux_toggle
------------------------------------------------------------------------------------------------------------------------ live log setup ------------------------------------------------------------------------------------------------------------------------
17:55:01 __init__.set_default                     L0049 INFO   | Completeness level not set during test execution. Setting to default level: CompletenessLevel.basic
17:55:01 __init__.check_test_completeness         L0139 INFO   | Test has no defined levels. Continue without test completeness checks
17:55:01 facts_cache.read                         L0093 INFO   | Load cache file "/var/src/sonic-mgmt-int/tests/_cache/str2-7050cx3-acs-01/basic_facts.pickle" failed with exception: IOError(2, 'No such file or directory')
17:55:08 facts_cache.write                        L0114 INFO   | Create cache dir /var/src/sonic-mgmt-int/tests/_cache/str2-7050cx3-acs-01
17:55:08 facts_cache.write                        L0120 INFO   | Cached facts "str2-7050cx3-acs-01.basic_facts" to /var/src/sonic-mgmt-int/tests/_cache/str2-7050cx3-acs-01/basic_facts.pickle
17:55:10 facts_cache.read                         L0093 INFO   | Load cache file "/var/src/sonic-mgmt-int/tests/_cache/str2-7050cx3-acs-01/host_visible_vars.pickle" failed with exception: IOError(2, 'No such file or directory')
17:55:11 facts_cache.write                        L0120 INFO   | Cached facts "str2-7050cx3-acs-01.host_visible_vars" to /var/src/sonic-mgmt-int/tests/_cache/str2-7050cx3-acs-01/host_visible_vars.pickle
17:55:11 ptfhost_utils.change_mac_addresses       L0121 INFO   | Change interface MAC addresses on ptfhost 'vms20-5'
17:55:14 ptfhost_utils.run_icmp_responder         L0205 INFO   | Start running icmp_responder
17:55:14 facts_cache.read                         L0093 INFO   | Load cache file "/var/src/sonic-mgmt-int/tests/_cache/str2-7050cx3-acs-01/mg_facts.pickle" failed with exception: IOError(2, 'No such file or directory')
17:55:14 facts_cache.write                        L0120 INFO   | Cached facts "str2-7050cx3-acs-01.mg_facts" to /var/src/sonic-mgmt-int/tests/_cache/str2-7050cx3-acs-01/mg_facts.pickle
17:55:21 conftest.generate_params_dut_hostname    L0861 INFO   | Using DUTs ['str2-7050cx3-acs-01'] in testbed 'vms20-t0-7050cx3-1'
17:55:21 conftest.rand_one_dut_hostname           L0275 INFO   | Randomly select dut str2-7050cx3-acs-01 for testing
17:55:21 conftest.creds_on_dut                    L0496 INFO   | dut str2-7050cx3-acs-01 belongs to groups [u'sonic', u'sonic_arista', u'str2', 'fanout']
17:55:21 conftest.creds_on_dut                    L0508 INFO   | skip empty var file ../ansible/group_vars/all/corefile_uploader.yml
17:55:21 conftest.creds_on_dut                    L0508 INFO   | skip empty var file ../ansible/group_vars/all/README.yml
17:55:25 __init__.sanity_check                    L0130 INFO   | Prepare sanity check
17:55:25 __init__.sanity_check                    L0140 INFO   | Found marker: m.name=topology, m.args=('t0',), m.kwargs={}
17:55:25 __init__.sanity_check                    L0140 INFO   | Found marker: m.name=usefixtures, m.args=('apply_mock_dual_tor_tables', 'apply_mock_dual_tor_kernel_configs', 'run_garp_service', 'run_icmp_responder'), m.kwargs={}
17:55:25 __init__.sanity_check                    L0166 INFO   | Skip sanity check according to command line argument or configuration of test script.
17:55:26 ptfhost_utils.run_garp_service           L0245 INFO   | Generating GARP service config file
17:55:29 ptfhost_utils.run_garp_service           L0262 INFO   | Starting GARP Service on PTF host
17:55:31 __init__._fixture_generator_decorator    L0070 INFO   | -------------------- fixture test_cleanup setup starts --------------------
17:58:21 dual_tor_mock.cleanup_mocked_configs     L0426 INFO   | Load minigraph to reset the DUT str2-7050cx3-acs-01          ------------
17:58:21 __init__._fixture_generator_decorator    L0082 INFO   | -------------------- fixture test_cleanup teardown starts --------------------
17:58:21 __init__._fixture_generator_decorator    L0091 INFO   | -------------------- fixture test_cleanup teardown ends --------------------
17:58:21 ptfhost_utils.run_garp_service           L0271 INFO   | Stopping GARP service on PTF host
17:58:23 ptfhost_utils.run_icmp_responder         L0223 INFO   | Stop running icmp_responder


------------------------------------------------------- generated xml file: /var/src/sonic-mgmt-int/tests/logs/dualtor/test_stn 0:00:01.176790 secondsandby_tor_upstream_mux_toggle.py::test_standby_tor_upstream_mux_toggle.xml -------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------- live log sessionfinish ----------------------------------------------------------------------------------------------------------------in 0:00:01.875227 seconds----
17:58:25 __init__.pytest_terminal_summary         L0064 INFO   | Can not get Allure report URL. Please check logs
========================== 1 passed in 206.02 seconds ==========================

Any platform specific information?

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

Documentation

@vaibhavhd vaibhavhd requested a review from gechiang August 13, 2021 18:51
@vaibhavhd vaibhavhd requested a review from a team as a code owner August 13, 2021 18:51
@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Aug 13, 2021

This pull request introduces 1 alert and fixes 1 when merging c5e80a6 into f6b5a0c - view on LGTM.com

new alerts:

  • 1 for Unused import

fixed alerts:

  • 1 for Unused local variable

return int(data[itfs]['RX_DRP'])


def clear_portstat(dut):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I understand this function was there before your change. I just don't see any call to it so perhaps can be removed as part of the code cleanup with this PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You are right, this function was lying unused. Removed it now in latest commit. Thanks!

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Aug 13, 2021

This pull request fixes 2 alerts when merging 84f06d5 into f6b5a0c - view on LGTM.com

fixed alerts:

  • 1 for Unused local variable
  • 1 for Unused import

@lgtm-com
Copy link
Copy Markdown

lgtm-com bot commented Aug 13, 2021

This pull request fixes 2 alerts when merging 38eef9a into f6b5a0c - view on LGTM.com

fixed alerts:

  • 1 for Unused local variable
  • 1 for Unused import

@lguohan lguohan merged commit 88283b3 into sonic-net:master Aug 14, 2021
@vaibhavhd vaibhavhd deleted the skip-acl-drop branch August 16, 2021 15:46
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
…c-net#4041)

Removed drop counter verification from the test as the counters will not be increased in this case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dualtor] orchagent test_standby_tor_upstream_mux_toggle fails

3 participants