<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:PMingLiU;
        panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"\@PMingLiU";
        panose-1:2 2 5 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi All,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks you,
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Ageeleshwar</span><span style="font-family:"Arial","sans-serif"">,
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">for the response. I changed the ml2 configuration for vlan from 1 to 8. The log and dump are in the following. But, I have a question how the tenant subnet associated with
 a vlan? I want to have my both tenants with 192.168.2.x and 192.168.3.x subnets to associate vlan2 and vlan3.  How can I do that with vlan?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Mitchell<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[ml2]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">type_drivers = vlan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">tenant_network_types = vlan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">mechanism_drivers = openvswitch<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[ml2_type_vlan]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">network_vlan_ranges = physnet1:1:8<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">[ovs]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">local_ip = 192.168.1.218<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">bridge_mappings = physnet1:br-eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">tenant_network_type = vlan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">network_vlan_ranges = physnet1:1:8<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">integration_bridge = br-int<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">In my compute node, :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">2015-03-20 12:14:32.068 1340 DEBUG neutron.agent.linux.utils [req-8a174ab2-0a11-4278-afda-bd8a829831f3 None]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'dump-flows', 'br-int', 'table=22']<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Exit code: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Stdout: 'NXST_FLOW reply (xid=0x4):\n cookie=0x0, duration=169.473s, table=22, n_packets=0, n_bytes=0, idle_age=169, priority=0 actions=drop\n'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Stderr: '' execute /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:75<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">2015-03-20 12:14:32.069 1340 DEBUG neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-8a174ab2-0a11-4278-afda-bd8a829831f3 None] Agent rpc_loop - iteration:84
 completed. Processed ports statistics: {'ancillary': {'removed': 0, 'added': 0}, 'regular': {'updated': 0, 'added': 0, 'removed': 0}}. Elapsed:0.065 rpc_loop /usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py:1388<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">2015-03-20 12:14:34.007 1340 DEBUG neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-8a174ab2-0a11-4278-afda-bd8a829831f3 None] Agent rpc_loop - iteration:85
 started rpc_loop /usr/lib/python2.7/dist-packages/neutron/plugins/openvswitch/agent/ovs_neutron_agent.py:1287<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">2015-03-20 12:14:34.008 1340 DEBUG neutron.agent.linux.utils [req-8a174ab2-0a11-4278-afda-bd8a829831f3 None] Running command: ['sudo', '/usr/bin/neutron-rootwrap',
 '/etc/neutron/rootwrap.conf', 'ovs-ofctl', 'dump-flows', 'br-int', 'table=22'] create_process /usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py:48<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">root@compute:# ovs-ofctl dump-flows br-eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">NXST_FLOW reply (xid=0x4):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cookie=0x0, duration=1111.903s, table=0, n_packets=1070, n_bytes=191705, idle_age=0, priority=4,in_port=4,dl_vlan=1 actions=mod_vlan_vid:2,NORMAL<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cookie=0x0, duration=1113.399s, table=0, n_packets=508, n_bytes=95459, idle_age=6, priority=2,in_port=4 actions=drop<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cookie=0x0, duration=1114.149s, table=0, n_packets=613, n_bytes=41365, idle_age=2, priority=1 actions=NORMAL<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">root@neutron:# ovs-ofctl dump-flows br-eth1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">NXST_FLOW reply (xid=0x4):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cookie=0x0, duration=71982.785s, table=0, n_packets=10, n_bytes=796, idle_age=65534, hard_age=65534, priority=4,in_port=2,dl_vlan=1 actions=mod_vlan_vid:2,NORMAL<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cookie=0x0, duration=75606.253s, table=0, n_packets=29929, n_bytes=5592694, idle_age=5, hard_age=65534, priority=2,in_port=2 actions=drop<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">cookie=0x0, duration=75607.504s, table=0, n_packets=1, n_bytes=78, idle_age=65534, hard_age=65534, priority=1 actions=NORMAL<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Akilesh K [mailto:akilesh1597@gmail.com]
<br>
<b>Sent:</b> Wednesday, March 18, 2015 11:13 PM<br>
<b>To:</b> Mitchell Chen<br>
<b>Cc:</b> openstack@lists.openstack.org<br>
<b>Subject:</b> Re: [Openstack] Change from GRE to vlan<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Apart from type_driver, there are many other setting in 'ml2_conf.ini'. Like below<o:p></o:p></p>
<pre>[ml2]<o:p></o:p></pre>
<pre>mechanism_drivers=openvswitch<o:p></o:p></pre>
<pre>type_drivers=vlan,flat<o:p></o:p></pre>
<pre>tenant_network_types=vlan,flat<o:p></o:p></pre>
<pre>[ml2_type_flat]<br>flat_networks=Extnet<o:p></o:p></pre>
<pre>[ml2_type_vlan]<o:p></o:p></pre>
<pre>network_vlan_ranges=Intnet1:100:200<br><br>[ovs]<o:p></o:p></pre>
<pre style="margin-bottom:12.0pt">bridge_mappings=Intnet1:br-eth1, Extnet:br-ex<o:p></o:p></pre>
<pre style="margin-bottom:12.0pt"><span style="font-family:"Arial","sans-serif"">In above configuration I am using one flat External network 'Extnet' and One vlan network 'Intnet1'. <br>I would suggest read through the documentation given in the config file. It is a good starting point.<br>In case you need more info we have created a few blog posts that could be of help.<br><br><a href="https://fosskb.wordpress.com/2014/06/19/l2-connectivity-in-openstack-using-openvswitch-mechanism-driver/">https://fosskb.wordpress.com/2014/06/19/l2-connectivity-in-openstack-using-openvswitch-mechanism-driver/</a><br><a href="https://fosskb.wordpress.com/2014/09/15/l3-connectivity-using-neutron-l3-agent/">https://fosskb.wordpress.com/2014/09/15/l3-connectivity-using-neutron-l3-agent/</a><br><a href="https://fosskb.wordpress.com/2014/10/18/openstack-juno-on-ubuntu-14-10/">https://fosskb.wordpress.com/2014/10/18/openstack-juno-on-ubuntu-14-10/</a></span><o:p></o:p></pre>
<pre><span style="font-family:"Arial","sans-serif"">Do write back if you need any further information.</span><o:p></o:p></pre>
<pre><span style="font-family:"Arial","sans-serif"">Thank you,</span><o:p></o:p></pre>
<pre><span style="font-family:"Arial","sans-serif"">Ageeleshwar K</span><o:p></o:p></pre>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Mar 19, 2015 at 11:31 AM, Mitchell Chen <<a href="mailto:mitchell.chen@mediatek.com" target="_blank">mitchell.chen@mediatek.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Hi All,<br>
<br>
I have, step by step, followed the OpenStack icehouse installation guide to install control, compute and neutron nodes. They all run fine like OpenStack document describes. There is a GRE tunneling connection described in OpenStack installation guide from compute
 nodes to a neutron node. We currently plan to change the GRE tunneling connection to vlan, but I don't see the Openstack installation describes detail for setting up vlan.<br>
<br>
I can see the type driver need to be changed from gre to vlan in ml2_conf.ini files in all nodes. I also got a HP switch configured vlan trunk ports for each computer and neutron systems to replace the current flat switch in the physical private connection.<br>
<br>
Besides the above mentioned ml2_conf.ini change and physical connection change, is there anything else I need to do for setting the vlan connection to get the external/internal nets, subnets and the router to work again to build instances? I am going to do
 this work very soon and will appreciate advices from your experience.<br>
<br>
Thank you,<br>
Mitchell<br>
<br>
************* Email Confidentiality Notice ********************<br>
The information contained in this e-mail message (including any<br>
attachments) may be confidential, proprietary, privileged, or otherwise<br>
exempt from disclosure under applicable laws. It is intended to be<br>
conveyed only to the designated recipient(s). Any use, dissemination,<br>
distribution, printing, retaining or copying of this e-mail (including its<br>
attachments) by unintended recipient(s) is strictly prohibited and may<br>
be unlawful. If you are not an intended recipient of this e-mail, or believe<br>
that you have received this e-mail in error, please notify the sender<br>
immediately (by replying to this e-mail), delete any and all copies of<br>
this e-mail (including any attachments) from your system, and do not<br>
disclose the content of this e-mail to any other person. Thank you!<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>
<table><tr><td><!--type:text--><!--{--><pre>************* Email Confidentiality Notice ********************
The information contained in this e-mail message (including any 
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be 
conveyed only to the designated recipient(s). Any use, dissemination, 
distribution, printing, retaining or copying of this e-mail (including its 
attachments) by unintended recipient(s) is strictly prohibited and may 
be unlawful. If you are not an intended recipient of this e-mail, or believe 
that you have received this e-mail in error, please notify the sender 
immediately (by replying to this e-mail), delete any and all copies of 
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!
</pre><!--}--></td></tr></table>