<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:14px">Hi All,</span><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">I had try to setup a environment of neutron provider network. I follow some instructions as belows.</div>



<div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px"><a href="http://trickycloud.wordpress.com/2013/11/12/setting-up-a-flat-network-with-neutron" target="_blank">http://trickycloud.wordpress.com/2013/11/12/setting-up-a-flat-network-with-neutron</a></div>



<div style="font-family:arial,sans-serif;font-size:14px"><a href="http://developer.rackspace.com/blog/neutron-networking-simple-flat-network.html" target="_blank">http://developer.rackspace.com/blog/neutron-networking-simple-flat-network.html</a><br>



</div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">There are three nodes in my environment. cloud-t1 is the controller node and cloud-t2/cloud-t3 is the compute node. I use the ml2 plugin with OVS and VXLAN. The multi-host model used by L3 agent.<br>



</div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">There are three networks. </div><div style="font-family:arial,sans-serif;font-size:14px"><a href="http://10.22.129.0/24" target="_blank">10.22.129.0/24</a> --> external</div>



<div style="font-family:arial,sans-serif;font-size:14px"><a href="http://10.22.203.0/24" target="_blank">10.22.203.0/24</a> --> managment</div><div style="font-family:arial,sans-serif;font-size:14px"><a href="http://192.168.129.0/24" target="_blank">192.168.129.0/24</a> --> internal</div>



<div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">cloud-t1 (<a href="http://10.22.129.21/10.22.203.21/192.168.129.21" target="_blank">10.22.129.21/10.22.203.21/192.168.129.21</a>)</div>



<div style="font-family:arial,sans-serif;font-size:14px">cloud-t2 (<a href="http://10.22.129.22/10.22.203.22/192.168.129.22" target="_blank">10.22.129.22/10.22.203.22/192.168.129.22</a>)<br></div><div style="font-family:arial,sans-serif;font-size:14px">



cloud-t3 (<a href="http://10.22.129.23/10.22.203.23/192.168.129.23" target="_blank">10.22.129.23/10.22.203.23/192.168.129.23</a>)<br></div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">



Here is my configuration file:</div><div style="font-family:arial,sans-serif;font-size:14px"><a href="https://gist.github.com/AlexYangYu/9782496" target="_blank">https://gist.github.com/AlexYangYu/9782496</a></div><div style="font-family:arial,sans-serif;font-size:14px">



<br></div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">But I failed to get it work. I need your help.</div><div style="font-family:arial,sans-serif;font-size:14px">



<br></div><div style="font-family:arial,sans-serif;font-size:14px"><b>1. There are two error log occured when I try to create network.</b></div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">



The command:</div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 40px;border:none;padding:0px"><div>neutron net-create ext-net --shared --provider:network_type=flat --provider:physical_network=phy-129 </div>



<div>neutron subnet-create ext-net <a href="http://10.22.129.0/24" target="_blank">10.22.129.0/24</a> --name=ext-129 --gateway=10.22.129.1 --enable_dhcp=True --allocation-pool start=10.22.129.101,end=10.22.129.200</div></blockquote>



<div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">The error log(neutron-server.log):</div><div style="font-family:arial,sans-serif;font-size:14px">



<br></div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 40px;border:none;padding:0px"><div>2014-03-26 20:12:33.914 17360 ERROR neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api [-] <span style="background-color:rgb(234,153,153)">No DHCP agents are associated with network 'f1ae9157-a9e6-4c96-9dd3-2da0bb188e8c'. </span>Unable to send notification for 'network_create_end' with payload: {'network': {'status': 'ACTIVE', 'subnets': [], 'name': u'ext-net', 'provider:physical_network': u'phy-129', 'admin_state_up': True, 'tenant_id': u'a6d3748a7a474e3d96d98bfbea6e8273', 'provider:network_type': u'flat', 'shared': True, 'id': 'f1ae9157-a9e6-4c96-9dd3-2da0bb188e8c', 'provider:segmentation_id': None}}</div>



<div>2014-03-26 20:12:34.279 17360 ERROR neutron.api.rpc.agentnotifiers.dhcp_rpc_agent_api [-] <span style="background-color:rgb(234,153,153)">No DHCP agents are associated with network 'f1ae9157-a9e6-4c96-9dd3-2da0bb188e8c'.</span> Unable to send notification for 'subnet_create_end' with payload: {'subnet': {'name': u'ext-129', 'enable_dhcp': True, 'network_id': u'f1ae9157-a9e6-4c96-9dd3-2da0bb188e8c', 'tenant_id': u'a6d3748a7a474e3d96d98bfbea6e8273', 'dns_nameservers': [], 'allocation_pools': [{'start': u'10.22.129.101', 'end': u'10.22.129.200'}], 'host_routes': [], 'ip_version': 4, 'gateway_ip': u'10.22.129.1', 'cidr': u'<a href="http://10.22.129.0/24" target="_blank">10.22.129.0/24</a>', 'id': '7f82c313-22a0-46da-8ecf-9e7c9c3cf60b</div>



</blockquote><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">I check the agent list, the status of agent seems all right.</div><div style="font-family:arial,sans-serif;font-size:14px">



<br></div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 40px;border:none;padding:0px"><div>root@cloud-t1:~/alex_scripts# neutron agent-list</div><div>+--------------------------------------+--------------------+--------------+-------+----------------+</div>



<div>| id                                   | agent_type         | host         | alive | admin_state_up |</div><div>+--------------------------------------+--------------------+--------------+-------+----------------+</div>



<div>| 2884d489-9e6c-446c-a680-877a17e14101 | DHCP agent         | 10.22.203.22 | :-)   | True           |</div><div>| 8aa2dab5-ece2-4722-a3e4-cd3691f712f6 | L3 agent           | 10.22.203.23 | :-)   | True           |</div>



<div>| 8ef1fdc8-ef45-447e-85d5-45a601f02c89 | Open vSwitch agent | 10.22.203.23 | :-)   | True           |</div><div>| ba2992ea-9184-4309-9d8b-02c98e5386ac | L3 agent           | 10.22.203.22 | :-)   | True           |</div>



<div>| e420aec4-5b47-470a-8d73-a82f65dc2c3d | Open vSwitch agent | 10.22.203.22 | :-)   | True           |</div><div>| ecf28e47-6569-4c84-ac51-c772bd0c06fe | DHCP agent         | 10.22.203.23 | :-)   | True           |</div>



<div>+--------------------------------------+--------------------+--------------+-------+----------------+</div></blockquote><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">



<b>2. After I created an instancne and attatached it to ext-net, the instance can't get an ip from dhcp and access the gateway. An error log also occured.</b></div><div style="font-family:arial,sans-serif;font-size:14px">



<br></div><div style="font-family:arial,sans-serif;font-size:14px">Error Log:</div><div style="font-family:arial,sans-serif;font-size:14px"><br></div><blockquote style="font-family:arial,sans-serif;font-size:14px;margin:0px 0px 0px 40px;border:none;padding:0px">



<div>2014-03-26 20:15:00.476 17360 WARNING neutron.plugins.ml2.managers [-] Failed to bind port da0b40c4-7251-4e97-a59a-7f5d524c7221 on host cloud-t2</div><div>2014-03-26 20:15:02.314 17360 WARNING neutron.plugins.ml2.rpc [-] Device da0b40c4-7251-4e97-a59a-7f5d524c7221 requested by agent ovsaac14b4ea64f on network f1ae9157-a9e6-4c96-9dd3-2da0bb188e8c not bound, vif_type: binding_failed</div>



</blockquote><div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px">I found that the vm be attached to br-int with local VLAN tag 4096, but the dnsmasq with local VLAN tag 1.</div>



<div style="font-family:arial,sans-serif;font-size:14px"><br></div><div style="font-family:arial,sans-serif;font-size:14px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>root@cloud-t2:~# ovs-vsctl show</div>



<div>ff82998c-08bc-4753-a301-afa110c0c4d2</div><div>    Bridge br-int</div><div>        Port patch-tun</div><div>            Interface patch-tun</div><div>                type: patch</div><div>                options: {peer=patch-int}</div>



<div>        <font color="#ff0000">Port "tap7259b843-79"</font></div><div><font color="#ff0000">            tag: 1</font></div><div><font color="#ff0000">            Interface "tap7259b843-79"</font></div>



<div><font color="#ff0000">                type: internal</font></div><div>        Port br-int</div><div>            Interface br-int</div><div>                type: internal</div><div>        <font color="#ff0000">Port "qvoda0b40c4-72"</font></div>



<div><font color="#ff0000">            tag: 4095</font></div><div><font color="#ff0000">            Interface "qvoda0b40c4-72"</font></div><div>        Port int-br-ex</div><div>            Interface int-br-ex</div>



<div>    Bridge br-tun</div><div>        Port patch-int</div><div>            Interface patch-int</div><div>                type: patch</div><div>                options: {peer=patch-tun}</div><div>        Port br-tun</div>



<div>            Interface br-tun</div><div>                type: internal</div><div>    Bridge br-ex</div><div>        Port br-ex</div><div>            Interface br-ex</div><div>                type: internal</div><div>


        Port phy-br-ex</div>
<div>            Interface phy-br-ex</div><div>        Port "eth0"</div><div>            Interface "eth0"</div><div>    ovs_version: "1.10.2"</div></div><div><br></div><div><div>root@cloud-t2:~# ip netns</div>



<div>qdhcp-f1ae9157-a9e6-4c96-9dd3-2da0bb188e8c</div><div><br></div><div>root@cloud-t2:~# ip netns exec qdhcp-f1ae9157-a9e6-4c96-9dd3-2da0bb188e8c ip a</div><div>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN </div>



<div>    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00</div><div>    inet <a href="http://127.0.0.1/8" target="_blank">127.0.0.1/8</a> scope host lo</div><div>    inet6 ::1/128 scope host </div><div>       valid_lft forever preferred_lft forever</div>



<div><font color="#ff0000">59: tap7259b843-79: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN </font></div><div><font color="#ff0000">    link/ether fa:16:3e:96:15:f4 brd ff:ff:ff:ff:ff:ff</font></div>



<div><font color="#ff0000">    inet <a href="http://10.22.129.102/24" target="_blank">10.22.129.102/24</a> brd 10.22.129.255 scope global tap7259b843-79</font></div><div><font color="#ff0000">    inet <a href="http://169.254.169.254/16" target="_blank">169.254.169.254/16</a> brd 169.254.255.255 scope global tap7259b843-79</font></div>



<div><font color="#ff0000">    inet6 fe80::f816:3eff:fe96:15f4/64 scope link </font></div><div><font color="#ff0000">       valid_lft forever preferred_lft forever</font></div></div></blockquote></div><div style="font-family:arial,sans-serif;font-size:14px">



<div><br></div><div><br></div><div>How can I deal with this problems? </div><div><br></div><div>Best Reards,</div></div><div><br></div>-- <br><div dir="ltr">  杨雨<div>  Email:       <a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a><div>



GitHub:       <a href="https://github.com/AlexYangYu" target="_blank">https://github.com/AlexYangYu</a></div><div> Weibo:       <a href="http://www.weibo.com/alexyangyu" target="_blank">http://www.weibo.com/alexyangyu</a></div>



</div></div>
</div>