sonic-net / sonic-mgmt

Configuration management examples for SONiC
Other
196 stars 719 forks source link

[copp/test_copp.py] Test fails due to Ansible module failure #8372

Open Vickyni2 opened 1 year ago

Vickyni2 commented 1 year ago

Description

The test case copp/test_copp.py fails due to Ansible module failure in T0 topology with a physical DUT

Steps to reproduce the issue: 1.Run the test case in a physical DUT. 2. 3.

Describe the results you received:

complex_args = {} filename = '/data/sonic-mgmt/tests/common/devices/multi_asic.py' function_name = '_run_on_asics' index = 0 line_number = 118 lines = [' return getattr(self.sonichost, self.multi_asic_attr)(*module_args, *complex_args)\n'] module_args = ['docker exec -e http_proxy= -e https_proxy= syncd bash -c " rm -rf /var/lib/apt/lists/ ... https://raw.githubusercontent.com/p4lang/ptf/master/src/ptf/afpacket.py && touch init.py " '] module_async = False module_ignore_errors = False previous_frame = <frame object at 0x7f5980000bb0> res = {'stderr_lines': [u"W: Failed to fetch http://deb.debian.org/debian/dists/bull...ce'], u'start': u'2022-08-08 23:00:40.459475', u'msg': u'non-zero return code'} self = verbose = True

common/devices/base.py:127: RunAnsibleModuleFail

Describe the results you expected:

The test case should PASS.

Additional information you deem important:

**Output of `show version`:**

SONiC Software Version: SONiC.202211.269499-59c7d39ef SONiC OS Version: 11 Distribution: Debian 11.6 Kernel: 5.10.0-18-2-amd64 Build commit: 59c7d39ef Build date: Tue May 9 17:58:15 UTC 2023 Built by: AzDevOps@vmss-soni00118K Platform: x86_64-accton_as7716_32x-r0 HwSKU: Accton-AS7716-32X ASIC: broadcom ASIC Count: 1

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
bingwang-ms commented 1 year ago

From the backtrace, the failure was because package download failed. Can you check the connectivity of the testbed?

https://github.com/sonic-net/sonic-mgmt/blob/5b7c3f8bf116d1b593bf72fe544451bdf690d4d0/tests/copp/copp_utils.py#L225-L238

mithun2498 commented 1 year ago

Hello @bingwang-ms

This test cases fails with the same reason in the Virtual Testbed also. I have attached the logs for your analysis.

test_copp_t0.txt