Skip to content

Instantly share code, notes, and snippets.

@trozet
Created March 12, 2025 19:32
Show Gist options
  • Save trozet/dcbfc48d7ae797f48f1477132217b31b to your computer and use it in GitHub Desktop.
Save trozet/dcbfc48d7ae797f48f1477132217b31b to your computer and use it in GitHub Desktop.
reply geneve drop
[root@ovn-worker ~]# ovn-trace --ct est,rpl b780a060-63b0-4a7b-a6c2-17dbd58a8ab5 'inport == "tstor-ovn-worker2" && eth.src == 0a:58:64:58:00:02 && eth.dst== 0a:58:64:58:00:03 && tcp && ip4.src==10.244.1.3 && ip4.dst==10.244.2.3 && ip.ttl==64 && tcp.dst==23453'
2025-03-12T19:25:22Z|00001|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_1 && tcp.dst == 31844: parsing expression failed
2025-03-12T19:25:22Z|00002|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_1 && tcp.dst == 31844: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00003|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_1 && udp.dst == 31411: parsing expression failed
2025-03-12T19:25:22Z|00004|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_1 && udp.dst == 31411: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00005|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_0 && tcp.dst == 31844: parsing expression failed
2025-03-12T19:25:22Z|00006|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_0 && tcp.dst == 31844: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00007|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_0 && udp.dst == 31411: parsing expression failed
2025-03-12T19:25:22Z|00008|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_0 && udp.dst == 31411: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00009|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_0 && udp.dst == 31411: parsing expression failed
2025-03-12T19:25:22Z|00010|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_0 && udp.dst == 31411: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00011|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_1 && tcp && tcp.dst == 31844: parsing expression failed
2025-03-12T19:25:22Z|00012|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_1 && tcp && tcp.dst == 31844: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00013|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_1 && tcp.dst == 31844: parsing expression failed
2025-03-12T19:25:22Z|00014|ovntrace|WARN|reg0[2] == 1 && ip4.dst == ^NODEIP_IPv4_1 && tcp.dst == 31844: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00015|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_1 && udp && udp.dst == 31411: parsing expression failed
2025-03-12T19:25:22Z|00016|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_1 && udp && udp.dst == 31411: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00017|ovntrace|WARN|ip && ip4.dst == ^NODEIP_IPv4_0: parsing expression failed
2025-03-12T19:25:22Z|00018|ovntrace|WARN|ip && ip4.dst == ^NODEIP_IPv4_0: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00019|ovntrace|WARN|ip && ip4.dst == ^NODEIP_IPv4_1: parsing expression failed
2025-03-12T19:25:22Z|00020|ovntrace|WARN|ip && ip4.dst == ^NODEIP_IPv4_1: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00021|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_0 && tcp.dst == 31844: parsing expression failed
2025-03-12T19:25:22Z|00022|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_0 && tcp.dst == 31844: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00023|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_0 && udp && udp.dst == 31411: parsing expression failed
2025-03-12T19:25:22Z|00024|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_0 && udp && udp.dst == 31411: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00025|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_0 && tcp && tcp.dst == 31844: parsing expression failed
2025-03-12T19:25:22Z|00026|ovntrace|WARN|ct.new && !ct.rel && ip4 && ip4.dst == ^NODEIP_IPv4_0 && tcp && tcp.dst == 31844: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00027|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_1 && udp.dst == 31411: parsing expression failed
2025-03-12T19:25:22Z|00028|ovntrace|WARN|ct.new && ip4.dst == ^NODEIP_IPv4_1 && udp.dst == 31411: parsing expression failed (Syntax error at end of input expecting constant.)
2025-03-12T19:25:22Z|00029|socket_util|ERR|^NODEIP_IPv4_0:31411: bad IP address "^NODEIP_IPv4_0"
2025-03-12T19:25:22Z|00030|socket_util|ERR|^NODEIP_IPv4_1:31411: bad IP address "^NODEIP_IPv4_1"
2025-03-12T19:25:22Z|00031|socket_util|ERR|^NODEIP_IPv4_0:31844: bad IP address "^NODEIP_IPv4_0"
2025-03-12T19:25:22Z|00032|socket_util|ERR|^NODEIP_IPv4_1:31844: bad IP address "^NODEIP_IPv4_1"
2025-03-12T19:25:22Z|00033|socket_util|ERR|^NODEIP_IPv4_0:31411: bad IP address "^NODEIP_IPv4_0"
2025-03-12T19:25:22Z|00034|socket_util|ERR|^NODEIP_IPv4_1:31411: bad IP address "^NODEIP_IPv4_1"
2025-03-12T19:25:22Z|00035|socket_util|ERR|^NODEIP_IPv4_0:31844: bad IP address "^NODEIP_IPv4_0"
2025-03-12T19:25:22Z|00036|socket_util|ERR|^NODEIP_IPv4_1:31844: bad IP address "^NODEIP_IPv4_1"
# tcp,reg14=0x2,vlan_tci=0x0000,dl_src=0a:58:64:58:00:02,dl_dst=0a:58:64:58:00:03,nw_src=10.244.1.3,nw_dst=10.244.2.3,nw_tos=0,nw_ecn=0,nw_ttl=64,nw_frag=no,tp_src=0,tp_dst=23453,tcp_flags=0
ingress(dp="transit_switch", inport="tstor-ovn-worker2")
--------------------------------------------------------
0. ls_in_check_port_sec (northd.c:9544): 1, priority 50, uuid d694c3c1
reg0[15] = check_in_port_sec();
next;
28. ls_in_l2_lkup (northd.c:10422): eth.dst == 0a:58:64:58:00:03, priority 50, uuid 17b7512f
outport = "tstor-ovn-worker";
output;
egress(dp="transit_switch", inport="tstor-ovn-worker2", outport="tstor-ovn-worker")
-----------------------------------------------------------------------------------
1. ls_out_pre_lb (northd.c:6049): ip && outport == "tstor-ovn-worker", priority 110, uuid fbdb52d1
ct_clear;
next;
9. ls_out_check_port_sec (northd.c:6009): 1, priority 0, uuid 761a3cbd
reg0[15] = check_out_port_sec();
next;
10. ls_out_apply_port_sec (northd.c:6017): 1, priority 0, uuid 69eef7d8
output;
/* output to "tstor-ovn-worker", type "patch" */
ingress(dp="ovn_cluster_router", inport="rtots-ovn-worker")
-----------------------------------------------------------
0. lr_in_admission (northd.c:13136): eth.dst == 0a:58:64:58:00:03 && inport == "rtots-ovn-worker", priority 50, uuid 6b1814a7
xreg0[0..47] = 0a:58:64:58:00:03;
next;
1. lr_in_lookup_neighbor (northd.c:13324): 1, priority 0, uuid 4365c8e1
reg9[2] = 1;
next;
2. lr_in_learn_neighbor (northd.c:13334): reg9[2] == 1 || reg9[3] == 0, priority 100, uuid e13af4d8
mac_cache_use;
next;
13. lr_in_ip_routing_pre (northd.c:13577): 1, priority 0, uuid 4eae1b70
reg7 = 0;
next;
14. lr_in_ip_routing (northd.c:11805): ip4.dst == 10.244.2.0/24, priority 74, uuid ec8728c3
ip.ttl--;
reg8[0..15] = 0;
reg0 = ip4.dst;
reg1 = 10.244.2.1;
eth.src = 0a:58:0a:f4:02:01;
outport = "rtos-ovn-worker";
flags.loopback = 1;
next;
15. lr_in_ip_routing_ecmp (northd.c:13636): reg8[0..15] == 0, priority 150, uuid 0bdbcdde
next;
16. lr_in_policy (northd.c:10935): ip4.src == 10.244.0.0/16 && ip4.dst == 10.244.0.0/16, priority 102, uuid 8c762157
reg8[0..15] = 0;
next;
17. lr_in_policy_ecmp (northd.c:13922): reg8[0..15] == 0, priority 150, uuid 259e6365
next;
20. lr_in_arp_resolve (northd.c:14335): outport == "rtos-ovn-worker" && reg0 == 10.244.2.3, priority 100, uuid 1512005d
eth.dst = 0a:58:0a:f4:02:03;
next;
23. lr_in_gw_redirect (northd.c:14668): outport == "rtos-ovn-worker", priority 50, uuid d9523a0c
outport = "cr-rtos-ovn-worker";
next;
24. lr_in_arp_request (northd.c:14824): 1, priority 0, uuid 1f81b07b
output;
/* Replacing type "chassisredirect" outport "cr-rtos-ovn-worker" with distributed port "rtos-ovn-worker". */
egress(dp="ovn_cluster_router", inport="rtots-ovn-worker", outport="rtos-ovn-worker")
-------------------------------------------------------------------------------------
0. lr_out_chk_dnat_local (northd.c:16435): 1, priority 0, uuid e72401b3
reg9[4] = 0;
next;
6. lr_out_delivery (northd.c:14873): outport == "rtos-ovn-worker", priority 100, uuid f5aae008
output;
/* output to "rtos-ovn-worker", type "patch" */
ingress(dp="ovn-worker", inport="stor-ovn-worker")
--------------------------------------------------
0. ls_in_check_port_sec (northd.c:5941): inport == "stor-ovn-worker", priority 70, uuid 8a44b72b
reg0[18] = 1;
next;
4. ls_in_pre_acl (northd.c:6197): ip, priority 100, uuid 5ec65ed8
reg0[0] = 1;
next;
5. ls_in_pre_lb (northd.c:6410): ip, priority 100, uuid dc262be9
reg0[2] = 1;
next;
6. ls_in_pre_stateful (northd.c:6440): reg0[2] == 1, priority 110, uuid 903c17ef
ct_lb_mark;
ct_lb_mark
----------
7. ls_in_acl_hint (northd.c:6558): ct.est && ct_mark.blocked == 0, priority 1, uuid c97ecfe5
reg0[10] = 1;
next;
8. ls_in_acl_eval (northd.c:7634): ct.est && !ct.rel && !ct.new && !ct.inv && ct.rpl && ct_mark.blocked == 0, priority 65532, uuid 364aace0
reg0[9] = 0;
reg0[10] = 0;
reg0[17] = 1;
reg8[16] = 1;
next;
10. ls_in_acl_action (northd.c:7391): reg8[16] == 1, priority 1000, uuid 384f9a0d
reg8[16] = 0;
reg8[17] = 0;
reg8[18] = 0;
next;
15. ls_in_pre_hairpin (northd.c:8496): ip && ct.trk, priority 100, uuid b000338c
reg0[6] = chk_lb_hairpin();
reg0[12] = chk_lb_hairpin_reply();
next;
18. ls_in_acl_after_lb_eval (northd.c:7672): reg0[17] == 1, priority 65532, uuid 1ed1e1d3
reg8[16] = 1;
next;
20. ls_in_acl_after_lb_action (northd.c:7391): reg8[16] == 1, priority 1000, uuid 3e88acf8
reg8[16] = 0;
reg8[17] = 0;
reg8[18] = 0;
reg8[30..31] = 0;
next;
28. ls_in_l2_lkup (northd.c:10434): eth.dst == 0a:58:0a:f4:02:03, priority 50, uuid 04fd1b17
outport = "default_client";
output;
egress(dp="ovn-worker", inport="stor-ovn-worker", outport="default_client")
---------------------------------------------------------------------------
0. ls_out_pre_acl (northd.c:6200): ip, priority 100, uuid 5d711f14
reg0[0] = 1;
next;
1. ls_out_pre_lb (northd.c:6413): ip, priority 100, uuid 93ae7fa8
reg0[2] = 1;
next;
2. ls_out_pre_stateful (northd.c:6444): reg0[2] == 1, priority 110, uuid 1f0dfeb2
ct_lb_mark;
ct_lb_mark /* default (use --ct to customize) */
------------------------------------------------
3. ls_out_acl_hint (northd.c:6558): ct.est && ct_mark.blocked == 0, priority 1, uuid e27ddf9c
reg0[10] = 1;
next;
4. ls_out_acl_eval (northd.c:7640): ct.est && !ct.rel && !ct.new && !ct.inv && ct.rpl && ct_mark.blocked == 0, priority 65532, uuid b7e7f024
reg8[16] = 1;
next;
6. ls_out_acl_action (northd.c:7391): reg8[16] == 1, priority 1000, uuid 96393139
reg8[16] = 0;
reg8[17] = 0;
reg8[18] = 0;
reg8[30..31] = 0;
next;
9. ls_out_check_port_sec (northd.c:6009): 1, priority 0, uuid 761a3cbd
reg0[15] = check_out_port_sec();
next;
10. ls_out_apply_port_sec (northd.c:6017): 1, priority 0, uuid 69eef7d8
output;
/* output to "default_client", type "" */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment