I set up a KVM server in Ubuntu 16.10 and then installed ovswitch.
Originally, I did not associate with a controller. I just used the
ovswitch default normal flow for each bridge.
I have normal flow currently on my ovsbr0 and ovsbrwan bridges. I did
have normal default flow on ovsbrlan as well, but I tried to connect to
an Open Daylight controller. Now I no longer have default flow, even
when not associated with my controller.
ovs-vsctl show gives me this:
bruce@KVMServer:/etc/network$ sudo ovs-vsctl show
cf845024-b4e7-43e2-b488-5838be1c732d
Bridge ovsbrwan
Port ovsbrwan
Interface ovsbrwan
type: internal
Port "enp5s0f0"
Interface "enp5s0f0"
Bridge ovsbrlan
Controller "tcp:10.0.5.10:6633"
Port "enp6s0f0"
Interface "enp6s0f0"
Port "enp6s0f1"
Interface "enp6s0f1"
Port ovsbrlan
Interface ovsbrlan
type: internal
Port "enp5s0f1"
Interface "enp5s0f1"
Bridge "ovsbr0"
Port "ovsbr0"
Interface "ovsbr0"
type: internal
Port "vnet0"
Interface "vnet0"
Port "eno1"
Interface "eno1"
ovs_version: "2.6.0"
/etc/network/interfaces shows this:
bruce@KVMServer:/etc/network$ more interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet manual
auto ovsbr0
iface ovsbr0 inet static
address 10.0.1.55
network 10.0.1.0
netmask 255.255.255.0
broadcast 10.0.1.255
auto enp5s0f0
iface enp5s0f0 inet manual
auto ovsbrwan
iface ovsbrwan inet static
address 10.0.1.54
network 10.0.1.0
netmask 255.255.255.0
broadcast 10.0.1.255
auto enp5s0f1
iface enp5s0f1 inet manual
auto ovsbrlan
iface ovsbrlan inet static
address 10.0.5.1
network 10.0.5.0
netmask 255.255.255.0
broadcast 10.0.5.255
auto enp6s0f0
iface enp6s0f0 inet manual
auto enp6s0f1
iface anp6s0f1 inet manual
tcpdump on ovsbr0 looks good (and I can connect over this interface)
11:09:30.339405 IP KVMServer8.ssh > 10.0.1.82.33550: Flags [P.], seq
1678396:1678600, ack 1045, win 339, options [nop,nop,TS val 17010463 ecr
16100319], length 204
11:09:30.339648 IP 10.0.1.82.33550 > KVMServer8.ssh: Flags [.], ack
1674928, win 1324, options [nop,nop,TS val 16100319 ecr 17010461], length 0
11:09:30.339668 IP KVMServer8.ssh > 10.0.1.82.33550: Flags [P.], seq
1678600:1678804, ack 1045, win 339, options [nop,nop,TS val 17010463 ecr
16100319], length 204
^C11:09:30.339652 IP 10.0.1.82.33550 > KVMServer8.ssh: Flags [P.], seq
1045:1081, ack 1675336, win 1324, options [nop,nop,TS val 16100320 ecr
17010462], length 36
tcpdump on ovsbrwan looks good (I can connect over this interface as well)
bruce@KVMServer:/etc/network$ sudo tcpdump -i ovsbrwan
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ovsbrwan, link-type EN10MB (Ethernet), capture size 262144
bytes
11:11:00.087897 IP 10.0.1.70.mdns > 224.0.0.251.mdns: 0*- [0q] 8/0/5
(Cache flush) TXT "", PTR _homekit._tcp.local., PTR
9A10825B-68D7-542F-ADC7-260668C89603._homekit._tcp.local., (Cache flush)
SRV Elizabeths-iPad.local.:49183 0 0, (Cache flush) PTR
Elizabeths-iPad.local., (Cache flush) PTR Elizabeths-iPad.local., (Cache
flush) AAAA fe80::1cd5:a619:2166:b087, (Cache flush) A 10.0.1.70 (436)
11:11:00.092117 IP6 fe80::1cd5:a619:2166:b087.mdns > ff02::fb.mdns: 0*-
[0q] 8/0/5 (Cache flush) TXT "", PTR _homekit._tcp.local., PTR
9A10825B-68D7-542F-ADC7-260668C89603._homekit._tcp.local., (Cache flush)
SRV Elizabeths-iPad.local.:49183 0 0, (Cache flush) PTR
Elizabeths-iPad.local., (Cache flush) PTR Elizabeths-iPad.local., (Cache
flush) AAAA fe80::1cd5:a619:2166:b087, (Cache flush) A 10.0.1.70 (436)
11:11:00.357792 ARP, Request who-has 10.0.1.70 tell KVMServer8, length 46
But I get absolutely nothing over ovsbrlan:bruce@KVMServer:/etc/network$
sudo tcpdump -i ovsbrlan
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ovsbrlan, link-type EN10MB (Ethernet), capture size 262144
bytes
11:12:02.535408 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:12:03.559487 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:12:04.583408 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:12:05.607410 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:12:11.491816 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:12:12.519413 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:12:13.543414 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
10.0.5.10 is my Open Daylight controller. We can't find it, and are
trying to get to it over ovsbrlan.
My flows for ovsbr0 (this bridge works) are:
bruce@KVMServer:/etc/network$ sudo ovs-ofctl dump-flows ovsbr0
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=68617.529s, table=0, n_packets=385017,
n_bytes=54940975, idle_age=0, hard_age=65534, priority=0 actions=NORMAL
My flows for ovsbrwan (this works) are:
bruce@KVMServer:/etc/network$ sudo ovs-ofctl dump-flows ovsbrwan
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=68662.961s, table=0, n_packets=216980,
n_bytes=93567462, idle_age=0, hard_age=65534, priority=0 actions=NORMAL
My flows for ovsbrlan (this is broken) are:
bruce@KVMServer:/etc/network$ sudo ovs-ofctl dump-flows ovsbrlan
NXST_FLOW reply (xid=0x4):
I tried to add a default flow back: sudo ovs-ofctl add-flow ovsbrlan
action=normal
My flow now looks like:
bruce@KVMServer:/etc/network$ sudo ovs-ofctl dump-flows ovsbrlan
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=50.535s, table=0, n_packets=0, n_bytes=0,
idle_age=50, actions=NORMAL
But I'm not getting any packets. I'm still just sending out ARP requests
and not getting any response back:
bruce@KVMServer:/etc/network$ sudo tcpdump -i ovsbrlan
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ovsbrlan, link-type EN10MB (Ethernet), capture size 262144
bytes
11:18:15.495412 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:18:16.519425 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:18:17.543490 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
11:18:18.567410 ARP, Request who-has 10.0.5.10 tell KVMServer8, length 28
What do i need to do to start trouble-shooting? This worked up until I
tried to connect to an Open Flow controller over ovsbrlan. Before that,
I just ran using default flows without problems.
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss