Skip to content

Instantly share code, notes, and snippets.

@rsevilla87
Created April 23, 2020 10:05
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 rsevilla87/e7bf3c272edd74bac32d2a0675cbb488 to your computer and use it in GitHub Desktop.
Save rsevilla87/e7bf3c272edd74bac32d2a0675cbb488 to your computer and use it in GitHub Desktop.
ovn-trace rst|ack
sh-4.2# ovn-trace --ct=trk,est --detailed ip-10-0-165-188.us-west-2.compute.internal 'inport == "openshift-ingress_router-default-6cbfff9f69-g5dwj"
&& eth.src == 9a:90:f0:83:04:0a &&
eth.dst == 0A:58:0A:83:04:01 &&
ip4.src == 10.131.4.9 &&
ip4.dst == 10.128.2.31 &&
ip.ttl == 64 && tcp.flags == 20'
# tcp,reg14=0xe,vlan_tci=0x0000,dl_src=9a:90:f0:83:04:0a,dl_dst=0a:58:0a:83:04:01,nw_src=10.131.4.9,nw_dst=10.128.2.31,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=0,tp_dst=0,tcp_flags=rst|ack
ingress(dp="ip-10-0-165-188.us-west-2.compute.internal", inport="openshift-ingress_router-default-6cbfff9f69-g5dwj")
--------------------------------------------------------------------------------------------------------------------
0. ls_in_port_sec_l2 (ovn-northd.c:4512): inport == "openshift-ingress_router-default-6cbfff9f69-g5dwj" && eth.src == {9a:90:f0:83:04:0a}, priority 50, uuid 8728f8f0
next;
1. ls_in_port_sec_ip (ovn-northd.c:4184): inport == "openshift-ingress_router-default-6cbfff9f69-g5dwj" && eth.src == 9a:90:f0:83:04:0a && ip4.src == {10.131.4.9}, priority 90, uuid 973a20a2
next;
3. ls_in_pre_acl (ovn-northd.c:4687): nd || nd_rs || nd_ra || icmp4.type == 3 || icmp6.type == 1 || (tcp && tcp.flags == 20), priority 110, uuid ee0bcfc3
next;
4. ls_in_pre_lb (ovn-northd.c:4804): nd || nd_rs || nd_ra || icmp4.type == 3 ||icmp6.type == 1 || (tcp && tcp.flags == 20), priority 110, uuid be7cac2b
next;
19. ls_in_l2_lkup (ovn-northd.c:6753): eth.dst == 0a:58:0a:83:04:01, priority 50, uuid d801d561
outport = "stor-ip-10-0-165-188.us-west-2.compute.internal";
output;
egress(dp="ip-10-0-165-188.us-west-2.compute.internal", inport="openshift-ingress_router-default-6cbfff9f69-g5dwj", outport="stor-ip-10-0-165-188.us-west-2.compute.internal")
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0. ls_out_pre_lb (ovn-northd.c:4808): nd || nd_rs || nd_ra || icmp4.type == 3 ||icmp6.type == 1 || (tcp && tcp.flags == 20), priority 110, uuid b5cd1275
next;
1. ls_out_pre_acl (ovn-northd.c:4691): nd || nd_rs || nd_ra || icmp4.type == 3 || icmp6.type == 1 || (tcp && tcp.flags == 20), priority 110, uuid 3c696241
next;
9. ls_out_port_sec_l2 (ovn-northd.c:4578): outport == "stor-ip-10-0-165-188.us-west-2.compute.internal", priority 50, uuid bbf954dc
output;
/* output to "stor-ip-10-0-165-188.us-west-2.compute.internal", type "patch" */
ingress(dp="ovn_cluster_router", inport="rtos-ip-10-0-165-188.us-west-2.compute.internal")
------------------------------------------------------------------------------------------
0. lr_in_admission (ovn-northd.c:7852): eth.dst == 0a:58:0a:83:04:01 && inport == "rtos-ip-10-0-165-188.us-west-2.compute.internal", priority 50, uuid 355e3b83
next;
1. lr_in_lookup_neighbor (ovn-northd.c:7901): 1, priority 0, uuid c49c7fac
reg9[3] = 1;
next;
2. lr_in_learn_neighbor (ovn-northd.c:7907): reg9[3] == 1 || reg9[2] == 1, priority 100, uuid 1764f148
next;
9. lr_in_ip_routing (ovn-northd.c:7481): ip4.dst == 10.128.2.0/23, priority 447, uuid 9e29c56f
ip.ttl--;
reg8[0..15] = 0;
reg0 = ip4.dst;
reg1 = 10.128.2.1;
eth.src = 0a:58:0a:80:02:01;
outport = "rtos-ip-10-0-165-244.us-west-2.compute.internal";
flags.loopback = 1;
next;
10. lr_in_ip_routing_ecmp (ovn-northd.c:9393): reg8[0..15] == 0, priority 150, uuid 8ce7d90b
next;
12. lr_in_arp_resolve (ovn-northd.c:9644): outport == "rtos-ip-10-0-165-244.us-west-2.compute.internal" && reg0 == 10.128.2.31, priority 100, uuid e7c7d81e
eth.dst = 9a:90:f0:80:02:20;
next;
16. lr_in_arp_request (ovn-northd.c:10060): 1, priority 0, uuid f7805c48
output;
egress(dp="ovn_cluster_router", inport="rtos-ip-10-0-165-188.us-west-2.compute.internal", outport="rtos-ip-10-0-165-244.us-west-2.compute.internal")
----------------------------------------------------------------------------------------------------------------------------------------------------
3. lr_out_delivery (ovn-northd.c:10106): outport == "rtos-ip-10-0-165-244.us-west-2.compute.internal", priority 100, uuid d7980e7b
output;
/* output to "rtos-ip-10-0-165-244.us-west-2.compute.internal", type "patch" */
ingress(dp="ip-10-0-165-244.us-west-2.compute.internal", inport="stor-ip-10-0-165-244.us-west-2.compute.internal")
------------------------------------------------------------------------------------------------------------------
0. ls_in_port_sec_l2 (ovn-northd.c:4512): inport == "stor-ip-10-0-165-244.us-west-2.compute.internal", priority 50, uuid 89c112e2
next;
3. ls_in_pre_acl (ovn-northd.c:4653): ip && inport == "stor-ip-10-0-165-244.us-west-2.compute.internal", priority 110, uuid f0da005a
next;
4. ls_in_pre_lb (ovn-northd.c:4804): nd || nd_rs || nd_ra || icmp4.type == 3 ||icmp6.type == 1 || (tcp && tcp.flags == 20), priority 110, uuid b288f0d8
next;
19. ls_in_l2_lkup (ovn-northd.c:6774): eth.dst == 9a:90:f0:80:02:20, priority 50, uuid 5a836be2
outport = "server-http-010_nginx-http-001-bjng4";
output;
egress(dp="ip-10-0-165-244.us-west-2.compute.internal", inport="stor-ip-10-0-165-244.us-west-2.compute.internal", outport="server-http-010_nginx-http-001-bjng4")
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
0. ls_out_pre_lb (ovn-northd.c:4808): nd || nd_rs || nd_ra || icmp4.type == 3 ||icmp6.type == 1 || (tcp && tcp.flags == 20), priority 110, uuid 7e918afa
next;
1. ls_out_pre_acl (ovn-northd.c:4691): nd || nd_rs || nd_ra || icmp4.type == 3 || icmp6.type == 1 || (tcp && tcp.flags == 20), priority 110, uuid dc5fc7a1
next;
8. ls_out_port_sec_ip (ovn-northd.c:4184): outport == "server-http-010_nginx-http-001-bjng4" && eth.dst == 9a:90:f0:80:02:20 && ip4.dst == {255.255.255.255, 224.0.0.0/4, 10.128.2.31, 10.128.3.255}, priority 90, uuid 41d472f8
next;
9. ls_out_port_sec_l2 (ovn-northd.c:4578): outport == "server-http-010_nginx-http-001-bjng4" && eth.dst == {9a:90:f0:80:02:20}, priority 50, uuid 0e57d00b
output;
/* output to "server-http-010_nginx-http-001-bjng4", type "" */
sh-4.2#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment