canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
32 stars 38 forks source link

Intel E810 ice and ovs issue with tagged vlan not working #655

Open arif-ali opened 1 year ago

arif-ali commented 1 year ago

We need to detect running of the following scenario on a

network driver: ice kernel: 5.4 network overlay: openvswitch neutron provider network network type vlan

In this particular scenario the traffic does not flow, even the openflows are all good

Using HWE kernel for focal solves the problem

Related issue: #430

dosaboy commented 1 year ago

I've been thinking through how this could be implemented and have a few thoughts/questions:

arif-ali commented 1 year ago

Here's the scenario, and potentially how we can check this

$ sudo ovs-ofctl dump-flows br-data
 cookie=0x39ba2001971757d4, duration=1192372.398s, table=0, n_packets=1035283, n_bytes=43496614, priority=4,in_port="phy-br-data",dl_vlan=5 actions=mod_vlan_vid:328,NORMAL
 cookie=0x39ba2001971757d4, duration=1192375.985s, table=0, n_packets=6, n_bytes=252, priority=2,in_port="phy-br-data" actions=drop
 cookie=0x39ba2001971757d4, duration=1192375.986s, table=0, n_packets=0, n_bytes=0, priority=0 actions=NORMAL

EDIT:

We may be able to grab, if the hypervisor has any vlans configured in ovs

$ grep network_type=vlan sos_commands/openvswitch/ovsdb-client_-f_list_dump
other_config        : {net_uuid="93cd6964-ea12-4579-8a43-8ff059f2c7f5", network_type=vlan, physical_network=physnet1, segmentation_id="328", tag="5"}
other_config        : {net_uuid="93cd6964-ea12-4579-8a43-8ff059f2c7f5", network_type=vlan, physical_network=physnet1, segmentation_id="328", tag="5"}
muthuramanataya commented 2 months ago

In some other use case, I found this problem and fixed by turn off the setting "rx-vlan-offload" like below

ethtool -K enp131s0f0 rx-vlan-filter off

This problem can not be seen when interface set to PROMISC flag.