sonic-buildimage/dockers/docker-orchagent
Stepan Blyshchak 4426f7715f
[scapy] update scapy to 2.4.5 and patch it (#10457)
Why I did it
Running warm-reboot in a loop for 500 times leads to this error on 318-th iteration:

Apr  2 15:56:27.346747 sonic INFO swss#/supervisord: restore_neighbors Traceback (most recent call last):
Apr  2 15:56:27.346747 sonic INFO swss#/supervisord: restore_neighbors   File "/usr/bin/restore_neighbors.py", line 24, in <module>
Apr  2 15:56:27.346747 sonic INFO swss#/supervisord: restore_neighbors     from scapy.all import conf, in6_getnsma, inet_pton, inet_ntop, in6_getnsmac, get_if_hwaddr, Ether, ARP, IPv6, ICMPv6ND_NS, ICMPv6NDOptSrcLLAddr
Apr  2 15:56:27.346795 sonic INFO swss#/supervisord: restore_neighbors   File "/usr/local/lib/python3.7/dist-packages/scapy/all.py", line 25, in <module>
Apr  2 15:56:27.346956 sonic INFO swss#/supervisord: restore_neighbors     from scapy.route import *
Apr  2 15:56:27.346995 sonic INFO swss#/supervisord: restore_neighbors   File "/usr/local/lib/python3.7/dist-packages/scapy/route.py", line 205, in <module>
Apr  2 15:56:27.347089 sonic INFO swss#/supervisord: restore_neighbors     conf.iface = get_working_if()
Apr  2 15:56:27.347129 sonic INFO swss#/supervisord: restore_neighbors   File "/usr/local/lib/python3.7/dist-packages/scapy/arch/linux.py", line 128, in get_working_if
Apr  2 15:56:27.347213 sonic INFO swss#/supervisord: restore_neighbors     ifflags = struct.unpack("16xH14x", get_if(i, SIOCGIFFLAGS))[0]
Apr  2 15:56:27.347250 sonic INFO swss#/supervisord: restore_neighbors   File "/usr/local/lib/python3.7/dist-packages/scapy/arch/common.py", line 31, in get_if
Apr  2 15:56:27.347345 sonic INFO swss#/supervisord: restore_neighbors     return ioctl(sck, cmd, struct.pack("16s16x", iff.encode("utf8")))
Apr  2 15:56:27.347365 sonic INFO swss#/supervisord: restore_neighbors OSError: [Errno 19] No such device
The issue was reported to scapy devs secdev/scapy#3369, the fix is secdev/scapy#3371, however there is no released scapy version with this fix right now, thus decided to build scapy v2.4.5 from sources and apply the fix in a form of a patch.

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
2022-04-07 14:23:35 +03:00
..
base_image_files [Monit] Deprecate the feature of monitoring the critical processes by Monit (#7676) 2021-06-04 10:16:53 -07:00
arp_update.conf [docker-orchagent]: use service dependency in supervisord to start services 2020-05-22 11:01:28 -07:00
buffermgrd.sh [Reclaim buffer] Common infrastructure update for reclaiming buffer (#9133) 2021-11-24 15:00:23 +02:00
critical_processes.j2 [fabric] Disable unnecessary processes in swss and the orchagent-portsyncd dependency for fabric asic (#5569) 2021-06-09 10:53:47 -07:00
docker-init.j2 [swss]: Wait for vlan intf to start ndppd (#10119) 2022-03-02 16:23:56 -08:00
Dockerfile.j2 [scapy] update scapy to 2.4.5 and patch it (#10457) 2022-04-07 14:23:35 +03:00
enable_counters.py [counter] Fix issue: non default counters will be delayed forever after fastboot (#10413) 2022-03-31 15:23:57 +03:00
ipinip.json.j2 [IPinIP] Add Loopback2 interface, change dscp mode to uniform (#7234) 2021-04-07 09:58:12 -07:00
ndppd.conf [swss]: Wait for vlan intf to start ndppd (#10119) 2022-03-02 16:23:56 -08:00
ndppd.conf.j2 [docker-orchagent]: Increase ndppd kernel poll interval (#7456) 2021-04-30 16:30:30 -07:00
orchagent.sh Introduce the asic_subtype field for adding the sub platform variants. (#10235) 2022-03-28 11:22:32 -07:00
ports.json.j2 [cfggen] Make Jinja2 Template Python 3 Compatible 2020-09-30 07:07:43 -07:00
supervisord.conf.j2 Revert "[swss]: Wait for vlan intf to start ndppd (#10036)" (#10085) 2022-02-28 15:42:02 -08:00
switch.json.j2 Enable/Disable Order ECMP feature. (#9651) 2022-01-06 16:40:50 -08:00
swssconfig.sh [Mellanox][VXLAN] add params to vxlan.json file in order to configure VXLAN src port range feature (#9658) 2022-01-31 15:57:30 +02:00
tunnel_packet_handler.py [tun_pkt]: Wait for AsyncSniffer to init fully (#10346) 2022-03-30 14:03:29 -07:00
vlan_vars.j2 [swss] Reduce Calls to SONiC Cfggen (#5177) 2020-08-17 15:47:52 -07:00
vxlan.json.j2 [Mellanox][VXLAN] add params to vxlan.json file in order to configure VXLAN src port range feature (#9658) 2022-01-31 15:57:30 +02:00
wait_for_link.sh.j2 [swss]: Wait for vlan intf to start ndppd (#10119) 2022-03-02 16:23:56 -08:00