<div dir="ltr">Hi, <div><br></div><div style>Those vlan tags you are showing are not the actual tags that will be seen on the wire. Those tags are auto incremented and used for each new port that lands on a server that is in a different network. If you run ovs-ofctl dump-flows br-int you'll see those vlan tags are stripped off and the correct one is added. </div>
<div style><br></div><div style><br></div><div style>Look here <a href="https://github.com/openstack/quantum/blob/master/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py#L326">https://github.com/openstack/quantum/blob/master/quantum/plugins/openvswitch/agent/ovs_quantum_agent.py#L326</a> if your curious about what's going on.</div>
<div style><br></div><div style>Aaron</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 5, 2013 at 2:25 AM, Chu Duc Minh <span dir="ltr"><<a href="mailto:chu.ducminh@gmail.com" target="_blank">chu.ducminh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, i'm converting from GRE tunnel to VLAN tagging, and deleted all old project/user/net/subnet. <div>
<br></div><div>in file /etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini @ all nodes, I already set:</div>

<div><div>network_vlan_ranges = physnet1:2:4094</div><div>When I create a new net: </div><div><div><font face="courier new, monospace">+---------------------------+--------------------------------------+</font></div>
<div><font face="courier new, monospace">| Field                     | Value                                |</font></div><div><font face="courier new, monospace">+---------------------------+--------------------------------------+</font></div>


<div><font face="courier new, monospace">| admin_state_up            | True                                 |</font></div><div><font face="courier new, monospace">| id                        | 6d7b116e-be0b-4019-8769-a50a9ca13406 |</font></div>


<div><font face="courier new, monospace">| name                      | net_proj_one                         |</font></div><div><font face="courier new, monospace">| provider:network_type     | vlan                                 |</font></div>


<div><font face="courier new, monospace">| provider:physical_network | physnet1                             |</font></div><div><font face="courier new, monospace"><font color="#ff0000"><b>| provider:segmentation_id  | 2  </b>     </font>                             |</font></div>


<div><font face="courier new, monospace">| router:external           | False                                |</font></div><div><font face="courier new, monospace">| shared                    | False                                |</font></div>


<div><font face="courier new, monospace">| status                    | ACTIVE                               |</font></div><div><font face="courier new, monospace">| subnets                   | 959fe9e0-a79d-4d0f-8040-ebfab26d8182 |</font></div>


<div><font face="courier new, monospace">| tenant_id                 | 29ba82e97f374492a4ca02c62eb0a953     |</font></div><div><font face="courier new, monospace">+---------------------------+--------------------------------------+</font></div>


<div><br></div></div><div>But when i show in network-node:</div><div># ovs-vsctl show</div><div>...</div><div><div>Bridge br-int</div><div>        Port "tapdddef664-ee"</div><div><b><font color="#ff0000">            tag: 1</font></b></div>


<div>            Interface "tapdddef664-ee"</div><div>                type: internal</div><div>        Port "qr-f9ba0308-2c"</div><div><b><font color="#ff0000">            tag: 1</font></b></div><div>

            Interface "qr-f9ba0308-2c"</div>
<div>                type: internal</div><div>        Port "int-br-eth0"</div><div>            Interface "int-br-eth0"</div><div>        Port br-int</div><div>            Interface br-int</div><div>                type: internal</div>


<div><div>    Bridge "br-eth0"</div><div>        Port "br-eth0"</div><div>            Interface "br-eth0"</div><div>                type: internal</div><div>        Port "phy-br-eth0"</div>


<div>            Interface "phy-br-eth0"</div><div>        Port "eth0"</div><div>            Interface "eth0"</div></div><div><br></div><div>interface for router & dhcp created are created in VLAN 1 (wrong! it should be created with VLAN 2)</div>


<div>I try to find in config and database, but i can't found which setting that start with VLAN 1.</div><div><br></div><div>Because of VLAN tag mismatch, I can't access to VM instance.</div><div>Another weird thing is on compute node, tag is not constant when i create/terminate new instance:</div>

<div># ovs-vsctl show </div><div><div>a9900940-f882-42f8-9b7c-9b42393ed8a4</div><div>    Bridge "qbred613362-fe"</div><div>        Port "qvbed613362-fe"</div><div>            Interface "qvbed613362-fe"</div>

<div>        Port "qbred613362-fe"</div><div>            Interface "qbred613362-fe"</div><div>                type: internal</div><div>        Port "taped613362-fe"</div><div>            Interface "taped613362-fe"</div>

<div>    Bridge "br-eth1"</div><div>        Port "eth1"</div><div>            Interface "eth1"</div><div>        Port "br-eth1"</div><div>            Interface "br-eth1"</div>

<div>                type: internal</div><div>        Port "phy-br-eth1"</div><div>            Interface "phy-br-eth1"</div><div>    Bridge br-int</div><div>        Port br-int</div><div>            Interface br-int</div>

<div>                type: internal</div><div>        Port "qvo9816466e-22"</div><div><b><font color="#ff0000">            tag: 5</font></b></div><div>            Interface "qvo9816466e-22"</div><div>
        Port "int-br-eth1"</div>
<div>            Interface "int-br-eth1"</div><div>        Port "qvoed613362-fe"</div><div><b><font color="#ff0000">            tag: 5</font></b></div><div>            Interface "qvoed613362-fe"</div>

<div>    Bridge "qbr9816466e-22"</div><div>        Port "qbr9816466e-22"</div><div><div>            Interface "qbr9816466e-22"</div><div>                type: internal</div><div>        Port "tap9816466e-22"</div>

<div>            Interface "tap9816466e-22"</div><div>        Port "qvb9816466e-22"</div><div>            Interface "qvb9816466e-22"</div><div>    Bridge "virbr0"</div><div>        Port "virbr0"</div>

<div>            Interface "virbr0"</div><div>                type: internal</div></div><div><br></div><div>Do you know why it happen?</div><div><br></div><div>When everything is ok, <b>tag</b> on both Network-node & Compute-node should equal <b>2 </b>(for first VM network) when I configured "<b>network_vlan_ranges = physnet1:2:4094</b>" ??</div>

<div><br></div><div>Thank you very much!</div></div>
</div></div></div>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br></div></div>