Skip to content

Instantly share code, notes, and snippets.

Created June 16, 2014 20:57
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 anonymous/d3ca102a69c8a0972dc8 to your computer and use it in GitHub Desktop.
Save anonymous/d3ca102a69c8a0972dc8 to your computer and use it in GitHub Desktop.
[odl@fedora142 devstack]$ ../osdbg.sh
+ echo
+ echo 'New capture: '
New capture:
+ echo
+ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:0c:29:c4:43:d2 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:0c:29:c4:43:dc brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:0c:29:c4:43:e6 brd ff:ff:ff:ff:ff:ff
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
link/ether 8a:aa:bf:97:b8:b2 brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default
link/ether de:91:b1:40:0b:dd brd ff:ff:ff:ff:ff:ff
7: br-int: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/ether 9a:74:e9:fe:97:4e brd ff:ff:ff:ff:ff:ff
8: tap35aa6b50-c3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UNKNOWN mode DEFAULT group default qlen 500
link/ether fe:16:3e:3e:07:18 brd ff:ff:ff:ff:ff:ff
9: tapba006229-0e: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UNKNOWN mode DEFAULT group default qlen 500
link/ether fe:16:3e:04:36:79 brd ff:ff:ff:ff:ff:ff
+ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:c4:43:d2 brd ff:ff:ff:ff:ff:ff
inet 172.16.18.142/24 brd 172.16.18.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fec4:43d2/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:c4:43:dc brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fec4:43dc/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:c4:43:e6 brd ff:ff:ff:ff:ff:ff
inet 172.16.150.142/24 brd 172.16.150.255 scope global eth2
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fec4:43e6/64 scope link
valid_lft forever preferred_lft forever
5: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 8a:aa:bf:97:b8:b2 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default
link/ether de:91:b1:40:0b:dd brd ff:ff:ff:ff:ff:ff
7: br-int: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether 9a:74:e9:fe:97:4e brd ff:ff:ff:ff:ff:ff
inet6 fe80::e44d:d7ff:fe76:59e6/64 scope link
valid_lft forever preferred_lft forever
8: tap35aa6b50-c3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 500
link/ether fe:16:3e:3e:07:18 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fe3e:718/64 scope link
valid_lft forever preferred_lft forever
9: tapba006229-0e: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 500
link/ether fe:16:3e:04:36:79 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fe04:3679/64 scope link
valid_lft forever preferred_lft forever
+ ip route
default via 172.16.18.2 dev eth0
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
169.254.0.0/16 dev eth2 scope link metric 1004
172.16.18.0/24 dev eth0 proto kernel scope link src 172.16.18.142
172.16.150.0/24 dev eth2 proto kernel scope link src 172.16.150.142
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
++ ip netns
+ sudo brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.000000000000 yes
+ sudo ovs-dpctl show
system@ovs-system:
lookups: hit:91936 missed:74362 lost:0
flows: 0
masks: hit:322530 total:0 hit/pkt:1.94
port 0: ovs-system (internal)
port 1: br-int (internal)
port 2: gre_system (gre: df_default=false, ttl=0)
port 3: tap35aa6b50-c3
port 4: tapba006229-0e
+ sudo ovs-dpctl dump-flows
+ sudo ovs-vsctl show
2859a640-1a3c-4fe3-ae7f-ec653c9f17ed
Manager "tcp:172.16.150.1:6640"
is_connected: true
Bridge br-int
Controller "tcp:172.16.150.1:6633"
is_connected: true
fail_mode: secure
Port "gre-172.16.150.143"
Interface "gre-172.16.150.143"
type: gre
options: {key=flow, local_ip="172.16.150.142", remote_ip="172.16.150.143"}
Port "gre-172.16.150.141"
Interface "gre-172.16.150.141"
type: gre
options: {key=flow, local_ip="172.16.150.142", remote_ip="172.16.150.141"}
Port "tap35aa6b50-c3"
Interface "tap35aa6b50-c3"
Port br-int
Interface br-int
Port "gre-172.16.150.144"
Interface "gre-172.16.150.144"
type: gre
options: {key=flow, local_ip="172.16.150.142", remote_ip="172.16.150.144"}
Port "tapba006229-0e"
Interface "tapba006229-0e"
ovs_version: "2.1.2"
++ sudo ovs-vsctl list-br
+ for i in '`sudo ovs-vsctl list-br`'
+ sudo ovs-ofctl -O OpenFlow13 show br-int
OFPT_FEATURES_REPLY (OF1.3) (xid=0x2): dpid:00009a74e9fe974e
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS
OFPT_GET_CONFIG_REPLY (OF1.3) (xid=0x4): frags=normal miss_send_len=0
+ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=9313.403s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=2,dl_dst=32:36:36:30:30:34 actions=output:1
cookie=0x0, duration=9245.394s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=1,dl_dst=70:65:6e:66:6c:6f actions=output:1
cookie=0x0, duration=10105.677s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=4,dl_dst=00:00:00:00:00:00 actions=output:1
cookie=0x0, duration=10105.681s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=2,dl_dst=00:00:00:00:00:00 actions=output:1
cookie=0x0, duration=9245.815s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=2,dl_dst=70:65:6e:66:6c:6f actions=output:1
cookie=0x0, duration=9249.227s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=4,dl_dst=70:65:6e:66:6c:6f actions=output:1
cookie=0x0, duration=10108.088s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=1,dl_dst=00:00:00:00:00:00 actions=output:1
cookie=0x0, duration=10246.194s, table=0, n_packets=11, n_bytes=754, send_flow_rem tun_id=0x251,in_port=1 actions=goto_table:20
cookie=0x0, duration=10245.261s, table=0, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x1,in_port=1 actions=goto_table:20
cookie=0x0, duration=10241.902s, table=0, n_packets=6596, n_bytes=626761, send_flow_rem tun_id=0x252,in_port=1 actions=goto_table:20
cookie=0x0, duration=10212.421s, table=0, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x252,in_port=4 actions=goto_table:20
cookie=0x0, duration=10175.928s, table=0, n_packets=9, n_bytes=1168, send_flow_rem tun_id=0x300,in_port=4 actions=goto_table:20
cookie=0x0, duration=10215.581s, table=0, n_packets=9, n_bytes=1168, send_flow_rem tun_id=0x252,in_port=2 actions=goto_table:20
cookie=0x0, duration=10241.406s, table=0, n_packets=10, n_bytes=664, send_flow_rem tun_id=0x300,in_port=1 actions=goto_table:20
cookie=0x0, duration=10179.466s, table=0, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x301,in_port=4 actions=goto_table:20
cookie=0x0, duration=10240.322s, table=0, n_packets=6596, n_bytes=626141, send_flow_rem tun_id=0x301,in_port=1 actions=goto_table:20
cookie=0x0, duration=10180.010s, table=0, n_packets=3, n_bytes=700, send_flow_rem tun_id=0x301,in_port=2 actions=goto_table:20
cookie=0x0, duration=10180.012s, table=0, n_packets=7, n_bytes=944, send_flow_rem tun_id=0x251,in_port=4 actions=goto_table:20
cookie=0x0, duration=10212.624s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=8192,in_port=3 actions=drop
cookie=0x0, duration=10181.120s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=8192,in_port=5 actions=drop
cookie=0x0, duration=10181.307s, table=0, n_packets=6092, n_bytes=550312, send_flow_rem dl_type=0x88cc actions=CONTROLLER:56
cookie=0x0, duration=10181.240s, table=0, n_packets=6591, n_bytes=625751, send_flow_rem in_port=5,dl_src=fa:16:3e:04:36:79 actions=set_field:0x301->tun_id,goto_table:10
cookie=0x0, duration=10212.637s, table=0, n_packets=6584, n_bytes=625793, send_flow_rem in_port=3,dl_src=fa:16:3e:3e:07:18 actions=set_field:0x252->tun_id,goto_table:10
cookie=0x0, duration=10212.581s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=8192,tun_id=0x252 actions=goto_table:20
cookie=0x0, duration=10180.687s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=8192,tun_id=0x301 actions=goto_table:20
cookie=0x0, duration=10192.419s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x251,dl_dst=fa:16:3e:57:a2:a3 actions=output:1,goto_table:20
cookie=0x0, duration=10147.409s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x301,dl_dst=fa:16:3e:f0:e3:68 actions=output:2,goto_table:20
cookie=0x0, duration=10174.556s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x300,dl_dst=fa:16:3e:0c:05:a1 actions=output:1,goto_table:20
cookie=0x0, duration=10245.272s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x1,dl_dst=fa:16:3e:6a:5d:26 actions=output:1,goto_table:20
cookie=0x0, duration=10219.922s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x252,dl_dst=fa:16:3e:8f:21:d1 actions=output:1,goto_table:20
cookie=0x0, duration=10240.332s, table=10, n_packets=6582, n_bytes=624583, send_flow_rem tun_id=0x301,dl_dst=fa:16:3e:05:a2:f0 actions=output:1,goto_table:20
cookie=0x0, duration=10175.929s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x300,dl_dst=fa:16:3e:b7:09:71 actions=output:4,goto_table:20
cookie=0x0, duration=10246.203s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x251,dl_dst=fa:16:3e:8a:0e:d2 actions=output:1,goto_table:20
cookie=0x0, duration=10241.416s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x300,dl_dst=fa:16:3e:95:65:a5 actions=output:1,goto_table:20
cookie=0x0, duration=10238.541s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x1,dl_dst=fa:16:3e:13:48:b5 actions=output:1,goto_table:20
cookie=0x0, duration=10215.590s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x252,dl_dst=fa:16:3e:b7:1e:08 actions=output:2,goto_table:20
cookie=0x0, duration=10180.686s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x251,dl_dst=fa:16:3e:74:56:a8 actions=output:4,goto_table:20
cookie=0x0, duration=10241.912s, table=10, n_packets=6575, n_bytes=624625, send_flow_rem tun_id=0x252,dl_dst=fa:16:3e:c2:20:80 actions=output:1,goto_table:20
cookie=0x0, duration=10241.891s, table=10, n_packets=9, n_bytes=1168, send_flow_rem priority=16384,tun_id=0x252,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:1,output:2,output:4,goto_table:20
cookie=0x0, duration=10246.185s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=16384,tun_id=0x251,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:1,output:4,goto_table:20
cookie=0x0, duration=10245.251s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=16384,tun_id=0x1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:1,goto_table:20
cookie=0x0, duration=10240.309s, table=10, n_packets=9, n_bytes=1168, send_flow_rem priority=16384,tun_id=0x301,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:1,output:2,output:4,goto_table:20
cookie=0x0, duration=10241.396s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=16384,tun_id=0x300,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:1,output:4,goto_table:20
cookie=0x0, duration=10212.569s, table=20, n_packets=6575, n_bytes=624625, send_flow_rem priority=8192,tun_id=0x252 actions=drop
cookie=0x0, duration=10180.686s, table=20, n_packets=6582, n_bytes=624583, send_flow_rem priority=8192,tun_id=0x301 actions=drop
cookie=0x0, duration=10212.612s, table=20, n_packets=6578, n_bytes=625429, send_flow_rem tun_id=0x252,dl_dst=fa:16:3e:3e:07:18 actions=output:3
cookie=0x0, duration=10180.981s, table=20, n_packets=6585, n_bytes=625387, send_flow_rem tun_id=0x301,dl_dst=fa:16:3e:04:36:79 actions=output:5
cookie=0x0, duration=10212.600s, table=20, n_packets=19, n_bytes=2406, send_flow_rem priority=16384,tun_id=0x252,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:3
cookie=0x0, duration=10180.823s, table=20, n_packets=12, n_bytes=1868, send_flow_rem priority=16384,tun_id=0x301,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:5
+ exit 0
[odl@fedora142 devstack]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment