Uploaded image for project: 'netvirt'
  1. netvirt
  2. NETVIRT-1086 NetVirt CSIT Improvements
  3. NETVIRT-1087

Add ovs-appctl ofproto/trace <ping> packet

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • General
    • None

      The trace tool is useful to see what ovs thinks the pipeline should look like and also helps debugging as it renders the pipeline. The example below is tracing dhcp packets.

      Add dhcp, ping, ssh to and from the vm's, dhcp namespace and external ips.

      [root@overcloud-controller-foo-0 ~]# ovs-appctl ofproto/trace br-int "in_port=1,udp,dl_vlan=64,dl_src=fa:16:3e:17:c7:20,dl_dst=ff:ff:ff:ff:ff:ff,n w_src=0.0.0.0,nw_dst=255.255.255.255,udp_src=68,udp_dst=67" Flow: udp,in_port=1,dl_vlan=64,dl_vlan_pcp=0,vlan_tci1=0x0000,dl_src=fa:16:3e:17:c7:20,dl_dst=ff:ff:ff:ff:ff:ff,nw_src=0.0.0.0,nw_dst=255.255.255. 255,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=68,tp_dst=67 bridge("br-int") ---------------- 0. in_port=1,dl_vlan=64, priority 10, cookie 0x8000000 pop_vlan write_metadata:0x50000000001/0xffffff0000000001 goto_table:17 17. metadata=0x50000000000/0xffffff0000000000, priority 10, cookie 0x8040000 load:0x5->NXM_NX_REG1[0..19] load:0x138b->NXM_NX_REG7[0..15] write_metadata:0xa00005138b000000/0xfffffffffffffffe goto_table:43 43. priority 0, cookie 0x8220000 goto_table:48 48. priority 0, cookie 0x8500000 resubmit(,49) 49. No match. drop resubmit(,50) 50. metadata=0x5138b000000/0xfffffffff000000,dl_src=fa:16:3e:17:c7:20, priority 20, cookie 0x805138b goto_table:51 52. metadata=0x138b000001/0xffff000001, priority 5, cookie 0x870138b write_actions(group:210005) -> action set is: group:210005 --. Executing action set: group:210005 set_field:0x4->tun_id resubmit(,55) 55. tun_id=0x4, priority 9, cookie 0x8800004 load:0x400->NXM_NX_REG6[] resubmit(,220) 220. reg6=0x400, priority 9, cookie 0x8000007 output:3 Final flow: udp,reg1=0x5,reg7=0x138b,metadata=0xa00005138b000001,in_port=1,vlan_tci=0x0000,dl_src=fa:16:3e:17:c7:20,dl_dst=ff:ff:ff:ff:ff:ff,nw_sr c=0.0.0.0,nw_dst=255.255.255.255,nw_tos=0,nw_ecn=0,nw_ttl=0,tp_src=68,tp_dst=67 Megaflow: recirc_id=0,eth,ip,tun_id=0,in_port=1,dl_vlan=64,dl_vlan_pcp=0,dl_src=fa:16:3e:17:c7:20,dl_dst=ff:ff:ff:ff:ff:ff,nw_frag=no Datapath actions: pop_vlan,10

            Unassigned Unassigned
            shague Sam Hague
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: