Skip to content

Instantly share code, notes, and snippets.

Created June 16, 2014 20:59
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/dcf1686e6d9df5530c16 to your computer and use it in GitHub Desktop.
Save anonymous/dcf1686e6d9df5530c16 to your computer and use it in GitHub Desktop.
[odl@fedora143 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:13:9b:00 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:13:9b:0a 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:13:9b:14 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 b2:54:dc:52:1a:be brd ff:ff:ff:ff:ff:ff
6: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default
link/ether ba:ae:e3:dd:4d:87 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 7a:0e:63:11:15:42 brd ff:ff:ff:ff:ff:ff
8: tap30f97f92-0d: <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:74:56:a8 brd ff:ff:ff:ff:ff:ff
9: tapa9cfc54d-0d: <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:b7:09:71 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:13:9b:00 brd ff:ff:ff:ff:ff:ff
inet 172.16.18.143/24 brd 172.16.18.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe13:9b00/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:13:9b:0a brd ff:ff:ff:ff:ff:ff
inet6 fe80::20c:29ff:fe13:9b0a/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:13:9b:14 brd ff:ff:ff:ff:ff:ff
inet 172.16.150.143/24 brd 172.16.150.255 scope global eth2
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe13:9b14/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 b2:54:dc:52:1a:be 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 ba:ae:e3:dd:4d:87 brd ff:ff:ff:ff:ff:ff
7: br-int: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default
link/ether 7a:0e:63:11:15:42 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5c2c:feff:fe59:89ef/64 scope link
valid_lft forever preferred_lft forever
8: tap30f97f92-0d: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 500
link/ether fe:16:3e:74:56:a8 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:fe74:56a8/64 scope link
valid_lft forever preferred_lft forever
9: tapa9cfc54d-0d: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master ovs-system state UNKNOWN group default qlen 500
link/ether fe:16:3e:b7:09:71 brd ff:ff:ff:ff:ff:ff
inet6 fe80::fc16:3eff:feb7:971/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.143
172.16.150.0/24 dev eth2 proto kernel scope link src 172.16.150.143
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:88604 missed:68464 lost:0
flows: 0
masks: hit:266745 total:0 hit/pkt:1.70
port 0: ovs-system (internal)
port 1: br-int (internal)
port 2: gre_system (gre: df_default=false, ttl=0)
port 3: tap30f97f92-0d
port 4: tapa9cfc54d-0d
+ sudo ovs-dpctl dump-flows
+ sudo ovs-vsctl show
a15f0998-3fbb-4c2b-ae9f-4bb0aae95fb5
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 "tapa9cfc54d-0d"
Interface "tapa9cfc54d-0d"
Port "tap30f97f92-0d"
Interface "tap30f97f92-0d"
Port "gre-172.16.150.142"
Interface "gre-172.16.150.142"
type: gre
options: {key=flow, local_ip="172.16.150.143", remote_ip="172.16.150.142"}
Port "gre-172.16.150.144"
Interface "gre-172.16.150.144"
type: gre
options: {key=flow, local_ip="172.16.150.143", remote_ip="172.16.150.144"}
Port br-int
Interface br-int
Port "gre-172.16.150.141"
Interface "gre-172.16.150.141"
type: gre
options: {key=flow, local_ip="172.16.150.143", remote_ip="172.16.150.141"}
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:00007a0e63111542
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=9354.034s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=3,dl_dst=70:65:6e:66:6c:6f actions=output:1
cookie=0x0, duration=9354.034s, 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=10204.638s, 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=9406.261s, 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=10204.612s, 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=9406.277s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=3,dl_dst=32:36:36:30:30:34 actions=output:1
cookie=0x0, duration=10204.625s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,in_port=3,dl_dst=00:00:00:00:00:00 actions=output:1
cookie=0x0, duration=9354.040s, 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=10345.339s, table=0, n_packets=203, n_bytes=19115, send_flow_rem tun_id=0x251,in_port=1 actions=goto_table:20
cookie=0x0, duration=10344.400s, table=0, n_packets=30, n_bytes=1440, send_flow_rem tun_id=0x1,in_port=1 actions=goto_table:20
cookie=0x0, duration=10311.597s, table=0, n_packets=9, n_bytes=1168, send_flow_rem tun_id=0x252,in_port=3 actions=goto_table:20
cookie=0x0, duration=10278.156s, table=0, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x300,in_port=3 actions=goto_table:20
cookie=0x0, duration=10340.990s, table=0, n_packets=17, n_bytes=1242, send_flow_rem tun_id=0x252,in_port=1 actions=goto_table:20
cookie=0x0, duration=10280.110s, table=0, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x251,in_port=3 actions=goto_table:20
cookie=0x0, duration=10279.645s, table=0, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x251,in_port=2 actions=goto_table:20
cookie=0x0, duration=10314.766s, table=0, n_packets=9, n_bytes=1168, send_flow_rem tun_id=0x252,in_port=2 actions=goto_table:20
cookie=0x0, duration=10278.155s, table=0, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x300,in_port=2 actions=goto_table:20
cookie=0x0, duration=10340.531s, table=0, n_packets=6459, n_bytes=613843, send_flow_rem tun_id=0x300,in_port=1 actions=goto_table:20
cookie=0x0, duration=10339.429s, table=0, n_packets=11, n_bytes=754, send_flow_rem tun_id=0x301,in_port=1 actions=goto_table:20
cookie=0x0, duration=10246.426s, table=0, n_packets=3, n_bytes=700, send_flow_rem tun_id=0x301,in_port=2 actions=goto_table:20
cookie=0x0, duration=10278.774s, table=0, n_packets=9, n_bytes=1168, send_flow_rem tun_id=0x301,in_port=3 actions=goto_table:20
cookie=0x0, duration=10279.267s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=8192,in_port=5 actions=drop
cookie=0x0, duration=10280.188s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=8192,in_port=4 actions=drop
cookie=0x0, duration=9343.269s, table=0, n_packets=5604, n_bytes=506228, send_flow_rem dl_type=0x88cc actions=CONTROLLER:56
cookie=0x0, duration=10280.188s, table=0, n_packets=194, n_bytes=18417, send_flow_rem in_port=4,dl_src=fa:16:3e:74:56:a8 actions=set_field:0x251->tun_id,goto_table:10
cookie=0x0, duration=10279.268s, table=0, n_packets=6456, n_bytes=613585, send_flow_rem in_port=5,dl_src=fa:16:3e:b7:09:71 actions=set_field:0x300->tun_id,goto_table:10
cookie=0x0, duration=10279.041s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=8192,tun_id=0x300 actions=goto_table:20
cookie=0x0, duration=10280.187s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=8192,tun_id=0x251 actions=goto_table:20
cookie=0x0, duration=10289.966s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x301,dl_dst=fa:16:3e:5b:ad:a0 actions=output:1,goto_table:20
cookie=0x0, duration=10293.352s, 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=10246.442s, 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=10273.323s, 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=10344.411s, 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=10318.991s, 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=10339.438s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x301,dl_dst=fa:16:3e:05:a2:f0 actions=output:1,goto_table:20
cookie=0x0, duration=10311.606s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x252,dl_dst=fa:16:3e:3e:07:18 actions=output:3,goto_table:20
cookie=0x0, duration=10279.040s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x301,dl_dst=fa:16:3e:04:36:79 actions=output:3,goto_table:20
cookie=0x0, duration=10345.348s, table=10, n_packets=187, n_bytes=17473, send_flow_rem tun_id=0x251,dl_dst=fa:16:3e:8a:0e:d2 actions=output:1,goto_table:20
cookie=0x0, duration=10340.543s, table=10, n_packets=6447, n_bytes=612417, send_flow_rem tun_id=0x300,dl_dst=fa:16:3e:95:65:a5 actions=output:1,goto_table:20
cookie=0x0, duration=10337.686s, 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=10314.776s, 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=10340.999s, table=10, n_packets=0, n_bytes=0, send_flow_rem tun_id=0x252,dl_dst=fa:16:3e:c2:20:80 actions=output:1,goto_table:20
cookie=0x0, duration=10340.979s, table=10, n_packets=0, n_bytes=0, 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:3,goto_table:20
cookie=0x0, duration=10345.330s, table=10, n_packets=7, n_bytes=944, 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:3,output:2,goto_table:20
cookie=0x0, duration=10344.390s, 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=10339.413s, table=10, n_packets=0, n_bytes=0, 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:3,output:2,goto_table:20
cookie=0x0, duration=10340.522s, table=10, n_packets=9, n_bytes=1168, 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:3,output:2,goto_table:20
cookie=0x0, duration=10278.774s, table=20, n_packets=6447, n_bytes=612417, send_flow_rem priority=8192,tun_id=0x300 actions=drop
cookie=0x0, duration=10280.187s, table=20, n_packets=187, n_bytes=17473, send_flow_rem priority=8192,tun_id=0x251 actions=drop
cookie=0x0, duration=10279.254s, table=20, n_packets=6450, n_bytes=613221, send_flow_rem tun_id=0x300,dl_dst=fa:16:3e:b7:09:71 actions=output:5
cookie=0x0, duration=10280.188s, table=20, n_packets=192, n_bytes=18361, send_flow_rem tun_id=0x251,dl_dst=fa:16:3e:74:56:a8 actions=output:4
cookie=0x0, duration=10280.187s, table=20, n_packets=7, n_bytes=944, send_flow_rem priority=16384,tun_id=0x251,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:4
cookie=0x0, duration=10279.180s, table=20, n_packets=10, n_bytes=1238, send_flow_rem priority=16384,tun_id=0x300,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:5
+ exit 0
[odl@fedora143 devstack]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment