<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style style="display: none;" id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body tabindex="0" aria-label="Nachrichtentext" fpstyle="1" dir="ltr">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Tahoma, Geneva, sans-serif; font-size: 10pt; color: #000000; margin: 0">
Hi!<br>
<br>
I have set up a simple test case for VLAN networks - just one Neutron network and one VLAN:<br>
<br>
/etc/quantum/plugin.ini<br>
<font face="'Lucida Console', Monaco, monospace">[DATABASE]<br>
sql_connection = mysql://quantum:71884b6791004319@192.168.104.62/ovs_quantum<br>
sql_max_retries = 10<br>
reconnect_interval = 2<br>
[OVS]<br>
integration_bridge=br-int<br>
tenant_network_type = vlan<br>
enable_tunneling=False<br>
network_vlan_ranges = install:40:40<br>
bridge_mappings = install:br-vlan<br>
[AGENT]<br>
polling_interval = 2<br>
[SECURITYGROUP]<br>
firewall_driver = quantum.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver<br>
<br>
+---------------------------+--------------------------------------+<br>
| Field                     | Value                                |<br>
+---------------------------+--------------------------------------+<br>
| admin_state_up            | True                                 |<br>
| id                        | 531c4059-68ce-4051-a049-f7b715a3aa61 |<br>
| name                      | install-vlan                         |<br>
| provider:network_type     | vlan                                 |<br>
| provider:physical_network | install                              |<br>
| provider:segmentation_id  | 40                                   |<br>
| router:external           | False                                |<br>
| shared                    | False                                |<br>
| status                    | ACTIVE                               |<br>
| subnets                   | d961c242-004e-4502-a6bb-59ce3157040c |<br>
| tenant_id                 | 91108a7377204cd78eed2cf22a978475     |<br>
+---------------------------+--------------------------------------+<br>
</font><br>
<font face="'Lucida Console', Monaco, monospace"># ovs-vsctl show<br>
e10c8833-e54d-4693-a657-b2034c5b244f<br>
    Bridge br-vlan<br>
        Port "tapb07358d3-48"<br>
            Interface "tapb07358d3-48"<br>
        Port br-vlan<br>
            Interface br-vlan<br>
                type: internal<br>
        Port "eth4"<br>
            Interface "eth4"<br>
        Port phy-br-vlan<br>
            Interface phy-br-vlan<br>
    Bridge br-int<br>
        Port "tap3158d4cc-20"<br>
            tag: 1<br>
            Interface "tap3158d4cc-20"<br>
        Port "tap0fae4e60-f1"<br>
            tag: 1<br>
            Interface "tap0fae4e60-f1"<br>
        Port "qvo942326c5-68"<br>
            tag: 2<br>
            Interface "qvo942326c5-68"<br>
        Port br-int<br>
            Interface br-int<br>
                type: internal<br>
        Port int-br-vlan<br>
            Interface int-br-vlan<br>
        Port int-br-ex<br>
            Interface int-br-ex<br>
        Port "tapd446cc89-be"<br>
            tag: 2<br>
            Interface "tapd446cc89-be"<br>
        Port "qvo7b22401b-89"<br>
            tag: 2<br>
            Interface "qvo7b22401b-89"<br>
    Bridge br-ex<br>
        Port br-ex<br>
            Interface br-ex<br>
                type: internal<br>
    ovs_version: "1.10.0"<br>
</font><br>
<div>I created an instance that runs GRML and got it an address (192.168.102.2) and tried to ping the router via the VLAN. The instance does not receive the ARP replies.<br>
<br>
This is a tcpdump from the trunk interface:<br>
<br>
<font face="'Lucida Console', Monaco, monospace"># tcpdump -n -i eth4 -e arp<br>
tcpdump: WARNING: eth4: no IPv4 address assigned<br>
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode<br>
listening on eth4, link-type EN10MB (Ethernet), capture size 65535 bytes<br>
10:24:59.032932 fa:16:3e:a4:7e:d4 > Broadcast, ethertype 802.1Q (0x8100), length 46: vlan 40, p 0, ethertype ARP, Request who-has 192.168.102.1 tell 192.168.102.2, length 28<br>
10:24:59.033341 00:00:5e:00:01:01 > fa:16:3e:a4:7e:d4, ethertype ARP (0x0806), length 60: Reply 192.168.102.1 is-at 00:00:5e:00:01:01, length 46<br>
10:24:59.253619 90:e2:ba:3d:f6:5d > Broadcast, ethertype ARP (0x0806), length 60: Request who-has 192.168.101.6 tell 192.168.101.7, length 46<br>
10:25:00.030796 fa:16:3e:a4:7e:d4 > Broadcast, ethertype 802.1Q (0x8100), length 46: vlan 40, p 0, ethertype ARP, Request who-has 192.168.102.1 tell 192.168.102.2, length 28<br>
10:25:00.032549 00:00:5e:00:01:01 > fa:16:3e:a4:7e:d4, ethertype ARP (0x0806), length 60: Reply 192.168.102.1 is-at 00:00:5e:00:01:01, length 46<br>
10:25:00.253355 90:e2:ba:3d:f6:5d > Broadcast, ethertype ARP (0x0806), length 60: Request who-has 192.168.101.6 tell 192.168.101.7, length 46<br>
10:25:01.030887 fa:16:3e:a4:7e:d4 > Broadcast, ethertype 802.1Q (0x8100), length 46: vlan 40, p 0, ethertype ARP, Request who-has 192.168.102.1 tell 192.168.102.2, length 28<br>
10:25:01.031237 00:00:5e:00:01:01 > fa:16:3e:a4:7e:d4, ethertype ARP (0x0806), length 60: Reply 192.168.102.1 is-at 00:00:5e:00:01:01, length 46<br>
<br>
</font>Curious thing on the side - the replies come with a VLAN tag when I create an eth4.40 interface. Nothing changes on the OpenStack/OVS side, though.<br>
<br>
Here are the flows and port numbers for the two bridges:<br>
<font face="'Lucida Console', Monaco, monospace"><br>
# ovs-ofctl show br-vlan<br>
OFPT_FEATURES_REPLY (xid=0x2): dpid:00000025b502001b<br>
n_tables:254, n_buffers:256<br>
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP<br>
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE<br>
 1(eth4): addr:00:25:b5:02:00:1b<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD FIBER<br>
     advertised: 10GB-FD FIBER<br>
     supported:  10GB-FD FIBER<br>
     speed: 10000 Mbps now, 10000 Mbps max<br>
 2(phy-br-vlan): addr:72:55:3c:e6:ae:6b<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 3(tapb07358d3-48): addr:d6:35:64:a1:87:15<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 LOCAL(br-vlan): addr:c2:98:c5:81:f9:f2<br>
     config:     0<br>
     state:      0<br>
     speed: 0 Mbps now, 0 Mbps max<br>
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0<br>
# ovs-ofctl dump-flows br-vlan<br>
NXST_FLOW reply (xid=0x4):<br>
 cookie=0x0, duration=1057.205s, table=0, n_packets=343, n_bytes=25981, idle_age=0, priority=4,in_port=2,dl_vlan=2 actions=mod_vlan_vid:40,NORMAL<br>
 cookie=0x0, duration=1065.475s, table=0, n_packets=32, n_bytes=2384, idle_age=1052, priority=2,in_port=2 actions=drop<br>
 cookie=0x0, duration=1067.066s, table=0, n_packets=5515, n_bytes=366100, idle_age=0, priority=1 actions=NORMAL<br>
# ovs-ofctl show br-int<br>
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000beab831a754e<br>
n_tables:254, n_buffers:256<br>
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP<br>
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE<br>
 1(int-br-vlan): addr:52:1f:bd:18:93:90<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 2(tap0fae4e60-f1): addr:f6:42:b0:32:da:73<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 3(tap3158d4cc-20): addr:12:4e:1d:fd:e1:8b<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 4(tapd446cc89-be): addr:f2:66:2a:aa:d2:c6<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 5(qvo942326c5-68): addr:16:cd:bc:df:c7:69<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 6(qvo7b22401b-89): addr:be:3b:ee:cb:47:33<br>
     config:     0<br>
     state:      0<br>
     current:    10GB-FD COPPER<br>
     speed: 10000 Mbps now, 0 Mbps max<br>
 LOCAL(br-int): addr:3a:ff:87:95:03:0b<br>
     config:     0<br>
     state:      0<br>
     speed: 0 Mbps now, 0 Mbps max<br>
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0<br>
# ovs-ofctl dump-flows br-int<br>
NXST_FLOW reply (xid=0x4):<br>
 cookie=0x0, duration=1083.622s, table=0, n_packets=0, n_bytes=0, idle_age=1083, priority=3,in_port=1,dl_vlan=40 actions=mod_vlan_vid:2,NORMAL<br>
 cookie=0x0, duration=1092.217s, table=0, n_packets=5659, n_bytes=375809, idle_age=0, priority=2,in_port=1 actions=drop<br>
 cookie=0x0, duration=1093.975s, table=0, n_packets=457, n_bytes=39432, idle_age=0, priority=1 actions=NORMAL</font><br>
<br>
As you can see, the br-int flows don't see VLAN 40 and drop all packets from port 1, i.e. the br-vlan bridge.<br>
<title></title>
<basefont size="2" face="Arial"><br>
I'm out of ideas how to fix this. Before I install Ubuntu 13.04 and rebuild this thing, I thought somebody on this list understands what's happening.<br>
<br>
<font face="Tahoma">Best regards / Mit freundlichen Grüßen <br>
Lutz Christoph <br>
<br>
-- <br>
<br>
Lutz Christoph <br>
<br>
arago Institut für komplexes Datenmanagement AG <br>
<br>
Eschersheimer Landstraße 526 - 532 <br>
60433 Frankfurt am Main <br>
<br>
eMail: lchristoph@arago.de - www: http://www.arago.de <br>
Tel: 0172/6301004 <br>
Mobil: 0172/6301004 <br>
</font><font face="Tahoma"><br>
<a href="http://www.cloudops.de/"><img border="0" height="88" width="350" src="http://www.arago.net/wp-content/uploads/2013/06/EmailSignatur1.png">
</a>  <br>
<br>
-- <br>
Bankverbindung: Frankfurter Sparkasse, BLZ: 500 502 01, Kto.-Nr.: 79343 <br>
Vorstand: Hans-Christian Boos, Martin Friedrich <br>
Vorsitzender des Aufsichtsrats: Dr. Bernhard Walther <br>
Sitz: Kronberg im Taunus - HRB 5731 - Registergericht: Königstein i.Ts <br>
Ust.Idnr. DE 178572359 - Steuernummer 2603 003 228 43435 </font></div>
</div>
</body>
</html>