sonic-net / sonic-mgmt

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

copp test was broken with swap_syncd #7822

Closed ysmanman closed 1 year ago

ysmanman commented 1 year ago

Description

In T2 copp testing, we noticed that ptf_nn_agent was not running in rpc syncd because ptf.afpacket module was not installed in rpc syncd. Should we add the following in https://github.com/sonic-net/sonic-buildimage/blob/202205/platform/broadcom/docker-syncd-brcm-dnx-rpc/Dockerfile.j2?

mkdir ptf && cd ptf && wget https://raw.githubusercontent.com/p4lang/ptf/master/src/ptf/afpacket.py && touch __init__.py

Steps to reproduce the issue:

  1. Enable swap_syncd and run copp test on T2 topo.
  2. Check if ptf_nn_agent is running in rpc syncd or not.

Describe the results you received:

Describe the results you expected:

Additional information you deem important:

**Output of `show version`:**

```
(paste your output here)
```

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

```
(paste your output here)
```
ysmanman commented 1 year ago

Add @abdosi @arlakshm for visibility.

ysmanman commented 1 year ago

https://github.com/sonic-net/sonic-buildimage/pull/14503 should fix the issue.

arlakshm commented 1 year ago

https://github.com/sonic-net/sonic-buildimage/pull/14503 is merged. closing this issue