Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:14917] Adding fixes for the docker0 ipv6 issue. #15319

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary:
In qos-sai-base, there is a docker0 ipv6 checking function, which fails if the DUT has no ipv6 address. The failure signature is as below:

14:50:01 __init__._fixture_generator_decorator L0088 ERROR | 
IndexError('list index out of range')
Traceback (most recent call last):
 File "/data/tests/common/plugins/log_section_start/__init__.py", line 84, in _fixture_generator_decorator
 res = next(it)
 File "/data/tests/qos/qos_sai_base.py", line 1824, in dut_disable_ipv6
 duthost.shell("sudo ip -6 addr show dev docker0 | grep global" + " | awk '{print $2}'")[
IndexError: list index out of range

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

The failure of the ipv6 disabling fixture.

How did you do it?

Check if the docker0 has ipv6 address or not.

How did you verify/test it?

Ran it on my TB:

----------------------------------------------------------------------------- live log sessionfinish -----------------------------------------------------------------------------
07:42:47 __init__.pytest_terminal_summary L0067 INFO | Can not get Allure report URL. Please check logs
============================================================================ short test summary info =============================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[single_asic]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[single_dut_multi_asic]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[multi_dut_longlink_to_shortlink]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[multi_dut_shortlink_to_shortlink]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[multi_dut_shortlink_to_longlink]
=================================================================== 5 passed, 1 warning in 5246.68s (1:27:26) ====================================================================
sonic@202405-qos-sonic-mgmt-prod:/data/tests$ 

Description of PR
Summary:
In qos-sai-base, there is a docker0 ipv6 checking function, which fails if the DUT has no ipv6 address. The failure signature is as below:

14:50:01 __init__._fixture_generator_decorator    L0088 ERROR  | 
IndexError('list index out of range')
Traceback (most recent call last):
  File "/data/tests/common/plugins/log_section_start/__init__.py", line 84, in _fixture_generator_decorator
    res = next(it)
  File "/data/tests/qos/qos_sai_base.py", line 1824, in dut_disable_ipv6
    duthost.shell("sudo ip -6  addr show dev docker0 | grep global" + " | awk '{print $2}'")[
IndexError: list index out of range

Approach
What is the motivation for this PR?
The failure of the ipv6 disabling fixture.

How did you do it?
Check if the docker0 has ipv6 address or not.

How did you verify/test it?
Ran it on my TB:

----------------------------------------------------------------------------- live log sessionfinish -----------------------------------------------------------------------------
07:42:47 __init__.pytest_terminal_summary         L0067 INFO   | Can not get Allure report URL. Please check logs
============================================================================ short test summary info =============================================================================
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[single_asic]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[single_dut_multi_asic]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[multi_dut_longlink_to_shortlink]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[multi_dut_shortlink_to_shortlink]
PASSED qos/test_qos_sai.py::TestQosSai::testParameter[multi_dut_shortlink_to_longlink]
=================================================================== 5 passed, 1 warning in 5246.68s (1:27:26) ====================================================================
sonic@202405-qos-sonic-mgmt-prod:/data/tests$ 

co-authorized by: [email protected]
@mssonicbld
Copy link
Collaborator Author

Original PR: #14917

@mssonicbld mssonicbld merged commit ed53efe into sonic-net:202405 Nov 1, 2024
13 checks passed
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.

2 participants