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

[Bug] [202405]: test_nhop_group_interface_flap fails on multi-asic devices #15330

Open
arista-hpandya opened this issue Nov 1, 2024 · 0 comments

Comments

@arista-hpandya
Copy link
Contributor

arista-hpandya commented Nov 1, 2024

Issue Description

The commands being run in this test do not take into account the namespace of the asic and hence fail with an error. The fix would be to use the sonic-netns-exec <namespace> wrapper as a prefix to these commands.

Results you see

E           tests.common.errors.RunAnsibleModuleFail: run module shell failed, Ansible Results =>
E           {"changed": true, "cmd": "echo 0 > /proc/sys/net/ipv4/conf/PortChannel102/arp_evict_nocarrier", "delta": "0:00:00.004116", "end": "2024-10-27 04:58:27.767844", "failed": true, "msg": "non-zero return code", "rc": 2, "start": "2024-10-27 04:58:27.763728", "stderr": "/bin/sh: 1: cannot create /proc/sys/net/ipv4/conf/PortChannel102/arp_evict_nocarrier: Directory nonexistent", "stderr_lines": ["/bin/sh: 1: cannot create /proc/sys/net/ipv4/conf/PortChannel102/arp_evict_nocarrier: Directory nonexistent"], "stdout": "", "stdout_lines": []}
E           tests.common.errors.RunAnsibleModuleFail: run module shell failed, Ansible Results =>
E           {"changed": true, "cmd": "echo 1 > /proc/sys/net/ipv4/conf/PortChannel102/arp_evict_nocarrier", "delta": "0:00:00.002389", "end": "2024-10-27 04:58:28.305826", "failed": true, "msg": "non-zero return code", "rc": 2, "start": "2024-10-27 04:58:28.303437", "stderr": "/bin/sh: 1: cannot create /proc/sys/net/ipv4/conf/PortChannel102/arp_evict_nocarrier: Directory nonexistent", "stderr_lines": ["/bin/sh: 1: cannot create /proc/sys/net/ipv4/conf/PortChannel102/arp_evict_nocarrier: Directory nonexistent"], "stdout": "", "stdout_lines": []}

Results you expected to see

We expect this test to pass

Is it platform specific

generic

Relevant log output

No response

Output of show version

SONiC Software Version: SONiC.branch.202405-ars.722f3e4d-buildimage.origin.202405-nightly-2024.10.30.01.09
SONiC OS Version: 12
Distribution: Debian 12.7
Kernel: 6.1.0-22-2-amd64
Build commit: 3c5f89c3d
Build date: Wed Oct 30 06:54:53 UTC 2024

Platform: x86_64-arista_7800r3ak_36dm2_lc
HwSKU: Arista-7800R3AK-36DM2-C36
ASIC: broadcom
ASIC Count: 2
Serial Number: SSN21060156
Model Number: 7800R3AK-36DM2-LC
Hardware Revision: 29.00
Uptime: 22:15:25 up 5:41, 1 user, load average: 1.40, 1.48, 1.48
Date: Fri 01 Nov 2024 22:15:25

Attach files (if any)

No response

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

No branches or pull requests

1 participant