Skip to content

DUT takes more than 7 seconds to finish update ip v6 neighbor #2414

Closed
@keboliu

Description

@keboliu

Description

Steps to reproduce the issue:
run sonic-mgmt test "neighbour_mac_noptf", in this test it use command "ip -6 neigh change xxxxxx" to change the ipv6 neighbor mac address and then verify the ASIC DB to see whether the change is success or not.

Describe the results you received:
sometimes the test failed due to the mac address in the ASIC DB table "KEYS ASIC_STATE:SAI_OBJECT_TYPE_NEIGHBOR_ENTRY*" not change yet, ASIC DB only been updated after about 7 seconds after issue the ip neigh change command.

Describe the results you expected:
the ansible test expecting DB will be updated in 2 seconds, 7 seconds is too long.

Additional information you deem important (e.g. issue happens only occasionally):
when the issue happened, there was no time consuming task running on the DUT, only ansible test is running on it.

Output of show version:

```
admin@sonic:/var/log# show version
SONiC Software Version: SONiC.HEAD.6-6f37181
Distribution: Debian 9.6
Kernel: 4.9.0-8-amd64
Build commit: 6f37181
Build date: Thu Dec 27 09:23:55 UTC 2018
Built by: johnar@jenkins-worker-3

Docker images:
REPOSITORY                 TAG                 IMAGE ID            SIZE
docker-orchagent-mlnx      HEAD.6-6f37181      f7b8bc6db7cd        287.6 MB
docker-orchagent-mlnx      latest              f7b8bc6db7cd        287.6 MB
docker-syncd-mlnx          HEAD.6-6f37181      6e354eba2db0        366 MB
docker-syncd-mlnx          latest              6e354eba2db0        366 MB
docker-lldp-sv2            HEAD.6-6f37181      07af73531c86        275.8 MB
docker-lldp-sv2            latest              07af73531c86        275.8 MB
docker-dhcp-relay          HEAD.6-6f37181      484d63492a27        258 MB
docker-dhcp-relay          latest              484d63492a27        258 MB
docker-database            HEAD.6-6f37181      a946b91f1948        256.7 MB
docker-database            latest              a946b91f1948        256.7 MB
docker-teamd               HEAD.6-6f37181      5b7a15682af1        275.8 MB
docker-teamd               latest              5b7a15682af1        275.8 MB
docker-snmp-sv2            HEAD.6-6f37181      166e335a3a8a        296.9 MB
docker-snmp-sv2            latest              166e335a3a8a        296.9 MB
docker-router-advertiser   HEAD.6-6f37181      d12c47bb6e4e        254.3 MB
docker-router-advertiser   latest              d12c47bb6e4e        254.3 MB
docker-platform-monitor    HEAD.6-6f37181      9027de550971        288.3 MB
docker-platform-monitor    latest              9027de550971        288.3 MB
docker-fpm-quagga          HEAD.6-6f37181      67148e4ecb4b        282.7 MB
docker-fpm-quagga          latest              67148e4ecb4b        282.7 MB
```

syslog for this issue, can see that ip neighbor change command was issued at 06:20:05, ASIC DB was updated at 06:20:11 and 06:20:12, in total it took around 7 seconds:

```
Jan  4 06:20:05.618410 arc-mtbc-1001 INFO ansible-<stdin>: Invoked with warn=True executable=None chdir=None _raw_params=ip -6 neigh change fc00::62 lladdr 08:bc:27:af:cc:65 dev Ethernet96 removes=None creates=None _uses_shell=False
Jan  4 06:20:05.659794 arc-mtbc-1001 NOTICE swss#orchagent: :- addNeighbor: Updated neighbor 08:bc:27:af:cc:65 on Ethernet96
Jan  4 06:20:05.899714 arc-mtbc-1001 INFO ansible-<stdin>: Invoked with warn=True executable=None chdir=None _raw_params=ip -6 neigh change fc00::62 lladdr 08:bc:27:af:cc:67 dev Ethernet96 removes=None creates=None _uses_shell=False
Jan  4 06:20:05.920981 arc-mtbc-1001 NOTICE swss#orchagent: :- addNeighbor: Updated neighbor 08:bc:27:af:cc:67 on Ethernet96
Jan  4 06:20:07.987604 arc-mtbc-1001 NOTICE swss#orchagent: :- removeNextHopGroup: Delete next hop group 10.0.0.1,10.0.0.5,10.0.0.9,10.0.0.13,10.0.0.17,10.0.0.21,10.0.0.25,10.0.0.29
Jan  4 06:20:08.327570 arc-mtbc-1001 INFO ansible-<stdin>: Invoked with warn=True executable=None chdir=None _raw_params=pgrep orchagent removes=None creates=None _uses_shell=False
Jan  4 06:20:08.853737 arc-mtbc-1001 INFO ansible-<stdin>: Invoked
Jan  4 06:20:09.320123 arc-mtbc-1001 INFO ansible-<stdin>: Invoked with warn=True executable=None chdir=None _raw_params=docker exec database redis-cli -n 1 KEYS ASIC_STATE:SAI_OBJECT_TYPE_NEIGHBOR_ENTRY* | grep -Fe '"fc00::62"' removes=None creates=None _uses_shell=True
Jan  4 06:20:09.707769 arc-mtbc-1001 INFO ansible-<stdin>: Invoked with warn=True executable=None chdir=None _raw_params=docker exec database redis-cli -n 1 HGETALL 'ASIC_STATE:SAI_OBJECT_TYPE_NEIGHBOR_ENTRY:{"ip":"fc00::62","rif":"oid:0x60000000009d4","switch_id":"oid:0x21000000000000"}' | grep "_ATTR_DST_MAC_ADDRESS" -A 1 | tail -1 removes=None creates=None _uses_shell=True
Jan  4 06:20:11.979943 arc-mtbc-1001 INFO syncd#supervisord: syncd Jan 04 06:20:11 NOTICE  SAI_UTILS: mlnx_sai_utils.c[2290]- set_dispatch_attrib_handler: Set DST_MAC_ADDRESS, key:neighbor ip fc00::62 rif 16, val:[08:bc:27:af:cc:65]
Jan  4 06:20:12.157586 arc-mtbc-1001 INFO syncd#supervisord: syncd Jan 04 06:20:12 NOTICE  SAI_UTILS: mlnx_sai_utils.c[2290]- set_dispatch_attrib_handler: Set DST_MAC_ADDRESS, key:neighbor ip fc00::62 rif 16, val:[08:bc:27:af:cc:67]
```

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions