retis-org / retis

Tracing packets in the Linux networking stack & friends
https://retis.readthedocs.io/en/stable/
100 stars 14 forks source link

OVS sorting does not work after NAT #286

Closed amorenoz closed 1 year ago

amorenoz commented 1 year ago

Tested in Openshift:

$ retis collect -o retis.data -p ovs --ovs-track ...
$ retis sort retis.data
Error: Queue Id lookup failed for OVS userspace event: 3052254652
amorenoz commented 1 year ago

Analyzing the data I see the issue. The queue_id is being recalculated for each ovs action. So, even though when a packet is modified it's new queue_id is different. We should store it and always put the queue_id obtained from kprobe:ovs_packet_cmd_execute.