Skip to content

Instantly share code, notes, and snippets.

@trozet
Created April 17, 2024 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trozet/ffd71554812969514c401b48c1033920 to your computer and use it in GitHub Desktop.
Save trozet/ffd71554812969514c401b48c1033920 to your computer and use it in GitHub Desktop.
[root@ovn-control-plane ~]# ovn-trace --ct trk,rpl --ct trk,rpl transit_switch 'inport == "tstor-ovn-worker" && eth.src ==0a:58:2b:22:eb:86 && eth.dst==0a:58:92:3f:71:e5 && ip6 && ip.ttl==64 && ip6.src==fc00:f853:ccd:e793::4 && ip6.dst==fd00:10:244:1::7 && tcp && tcp.src == 8080 && tcp.dst ==43434'
2024-04-17T17:08:05Z|00001|ovntrace|WARN|ct.new && !ct.rel && ip6 && ip6.dst == ^NODEIP_IPv6_0 && tcp && tcp.dst == 30926: parsing expression failed (Syntax error at `NODEIP_IPv6_0' expecting constant.)
2024-04-17T17:08:05Z|00002|ovntrace|WARN|ct.new && ip6.dst == ^NODEIP_IPv6_0 && tcp.dst == 30926: parsing expression failed (Syntax error at `NODEIP_IPv6_0' expecting constant.)
2024-04-17T17:08:05Z|00003|ovntrace|WARN|reg0[2] == 1 && ip6.dst == ^NODEIP_IPv6_0 && tcp.dst == 30926: parsing expression failed (Syntax error at `NODEIP_IPv6_0' expecting constant.)
2024-04-17T17:08:05Z|00004|ovntrace|WARN|ip && ip6.dst == ^NODEIP_IPv6_0: parsing expression failed (Syntax error at `NODEIP_IPv6_0' expecting constant.)
# tcp6,reg14=0x4,vlan_tci=0x0000,dl_src=0a:58:2b:22:eb:86,dl_dst=0a:58:92:3f:71:e5,ipv6_src=fc00:f853:ccd:e793::4,ipv6_dst=fd00:10:244:1::7,ipv6_label=0x00000,nw_tos=0,nw_ecn=0,nw_ttl=64,nw_frag=no,tp_src=8080,tp_dst=43434,tcp_flags=0
ingress(dp="transit_switch", inport="tstor-ovn-worker")
-------------------------------------------------------
0. ls_in_check_port_sec (northd.c:9807): 1, priority 50, uuid d64fd04f
reg0[15] = check_in_port_sec();
next;
27. ls_in_l2_lkup (northd.c:10633): eth.dst == 0a:58:92:3f:71:e5, priority 50, uuid a5e1b168
outport = "tstor-ovn-control-plane";
output;
egress(dp="transit_switch", inport="tstor-ovn-worker", outport="tstor-ovn-control-plane")
-----------------------------------------------------------------------------------------
1. ls_out_pre_lb (northd.c:7132): ip && outport == "tstor-ovn-control-plane", priority 110, uuid b45b159b
ct_clear;
next;
9. ls_out_check_port_sec (northd.c:7097): 1, priority 0, uuid 743e0efb
reg0[15] = check_out_port_sec();
next;
10. ls_out_apply_port_sec (northd.c:7102): 1, priority 0, uuid b2a8acad
output;
/* output to "tstor-ovn-control-plane", type "patch" */
ingress(dp="ovn_cluster_router", inport="rtots-ovn-control-plane")
------------------------------------------------------------------
0. lr_in_admission (northd.c:13006): eth.dst == 0a:58:92:3f:71:e5 && inport == "rtots-ovn-control-plane", priority 50, uuid 013f6f55
xreg0[0..47] = 0a:58:92:3f:71:e5;
next;
1. lr_in_lookup_neighbor (northd.c:13190): 1, priority 0, uuid b2c664c6
reg9[2] = 1;
next;
2. lr_in_learn_neighbor (northd.c:13199): reg9[2] == 1 || reg9[3] == 0, priority 100, uuid 9b6c5620
mac_cache_use;
next;
12. lr_in_ip_routing_pre (northd.c:13424): 1, priority 0, uuid 63fccfed
reg7 = 0;
next;
13. lr_in_ip_routing (northd.c:11753): ip6.dst == fd00:10:244:1::/64, priority 194, uuid bbfc2933
ip.ttl--;
reg8[0..15] = 0;
xxreg0 = ip6.dst;
xxreg1 = fd00:10:244:1::1;
eth.src = 0a:58:b1:f5:35:61;
outport = "rtos-ovn-control-plane";
flags.loopback = 1;
next;
14. lr_in_ip_routing_ecmp (northd.c:13519): reg8[0..15] == 0, priority 150, uuid 9e809624
next;
15. lr_in_policy (northd.c:13684): 1, priority 0, uuid 8e053e9b
reg8[0..15] = 0;
next;
16. lr_in_policy_ecmp (northd.c:13686): reg8[0..15] == 0, priority 150, uuid 528af6e4
next;
17. lr_in_arp_resolve (northd.c:13930): outport == "rtos-ovn-control-plane" && xxreg0 == fd00:10:244:1::7, priority 100, uuid 14544012
eth.dst = 0a:58:06:bb:a9:06;
next;
20. lr_in_gw_redirect (northd.c:14227): outport == "rtos-ovn-control-plane", priority 50, uuid 33b30d62
outport = "cr-rtos-ovn-control-plane";
next;
21. lr_in_arp_request (northd.c:14345): 1, priority 0, uuid dcd04fee
output;
/* Replacing type "chassisredirect" outport "cr-rtos-ovn-control-plane" with distributed port "rtos-ovn-control-plane". */
egress(dp="ovn_cluster_router", inport="rtots-ovn-control-plane", outport="rtos-ovn-control-plane")
---------------------------------------------------------------------------------------------------
0. lr_out_chk_dnat_local (northd.c:15705): 1, priority 0, uuid 89470852
reg9[4] = 0;
next;
6. lr_out_delivery (northd.c:14391): outport == "rtos-ovn-control-plane", priority 100, uuid ebf1f4bb
output;
/* output to "rtos-ovn-control-plane", type "patch" */
ingress(dp="ovn-control-plane", inport="stor-ovn-control-plane")
----------------------------------------------------------------
0. ls_in_check_port_sec (northd.c:9807): 1, priority 50, uuid d64fd04f
reg0[15] = check_in_port_sec();
next;
4. ls_in_pre_acl (northd.c:7129): ip && inport == "stor-ovn-control-plane", priority 110, uuid f36824c6
next;
5. ls_in_pre_lb (northd.c:7129): ip && inport == "stor-ovn-control-plane", priority 110, uuid 40c185ff
next;
7. ls_in_acl_hint (northd.c:7541): !ct.trk, priority 5, uuid e991b949
reg0[8] = 1;
reg0[9] = 1;
next;
9. ls_in_acl_action (northd.c:7938): reg8[30..31] == 0, priority 500, uuid 1ccb186f
reg8[30..31] = 1;
next(8);
9. ls_in_acl_action (northd.c:7938): reg8[30..31] == 1, priority 500, uuid 87a4b42d
reg8[30..31] = 2;
next(8);
9. ls_in_acl_action (northd.c:7927): 1, priority 0, uuid 37bfb6c1
reg8[16] = 0;
reg8[17] = 0;
reg8[18] = 0;
reg8[30..31] = 0;
next;
19. ls_in_acl_after_lb_action (northd.c:7938): reg8[30..31] == 0, priority 500, uuid c73fdb2e
reg8[30..31] = 1;
next(18);
19. ls_in_acl_after_lb_action (northd.c:7938): reg8[30..31] == 1, priority 500, uuid 92188030
reg8[30..31] = 2;
next(18);
19. ls_in_acl_after_lb_action (northd.c:7927): 1, priority 0, uuid 5cd2d42a
reg8[16] = 0;
reg8[17] = 0;
reg8[18] = 0;
reg8[30..31] = 0;
next;
27. ls_in_l2_lkup (northd.c:10560): eth.dst == 0a:58:06:bb:a9:06, priority 50, uuid c97111ed
outport = "egress-services-4663_pod1";
output;
egress(dp="ovn-control-plane", inport="stor-ovn-control-plane", outport="egress-services-4663_pod1")
----------------------------------------------------------------------------------------------------
0. ls_out_pre_acl (northd.c:7253): ip, priority 100, uuid 731d773d
reg0[0] = 1;
next;
1. ls_out_pre_lb (northd.c:7440): ip, priority 100, uuid 9c8acd02
reg0[2] = 1;
next;
2. ls_out_pre_stateful (northd.c:7464): reg0[2] == 1, priority 110, uuid 557bf605
ct_lb_mark;
ct_lb_mark
----------
3. ls_out_acl_hint (northd.c:7565): !ct.est, priority 3, uuid 649037f1
reg0[9] = 1;
next;
4. ls_out_acl_eval (northd.c:8100): ip && !ct.est, priority 1, uuid c9646c61
reg0[1] = 1;
next;
5. ls_out_acl_action (northd.c:7938): reg8[30..31] == 0, priority 500, uuid 77cf2e3f
reg8[30..31] = 1;
next(4);
4. ls_out_acl_eval (northd.c:8100): ip && !ct.est, priority 1, uuid c9646c61
reg0[1] = 1;
next;
5. ls_out_acl_action (northd.c:7938): reg8[30..31] == 1, priority 500, uuid 50798c05
reg8[30..31] = 2;
next(4);
4. ls_out_acl_eval (northd.c:8100): ip && !ct.est, priority 1, uuid c9646c61
reg0[1] = 1;
next;
5. ls_out_acl_action (northd.c:7927): 1, priority 0, uuid d7632320
reg8[16] = 0;
reg8[17] = 0;
reg8[18] = 0;
reg8[30..31] = 0;
next;
8. ls_out_stateful (northd.c:8893): reg0[1] == 1 && reg0[13] == 0, priority 100, uuid 87e63199
ct_commit { ct_mark.blocked = 0; };
next;
9. ls_out_check_port_sec (northd.c:7097): 1, priority 0, uuid 743e0efb
reg0[15] = check_out_port_sec();
next;
10. ls_out_apply_port_sec (northd.c:7102): 1, priority 0, uuid b2a8acad
output;
/* output to "egress-services-4663_pod1", type "" */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment