问题:
将contoller和network 安装在同一个节点上,compute单独另一个节点。 安装后发现在controller/network 节点上无法出现tunnel 接口(ovs-vsctl show),但是compute上可以
查看controller/network节点上日志发现:
1 2 3 4 |
/var/log/neutron/server.log:2015-04-22 15:55:30.428 15064 WARNING neutron.plugins.ml2.drivers.type_gre [req-903f1aab-693c-49b4-8fd8-1b954445adcf None] Gre endpoint with ip 10.1.1.5 already exists /var/log/neutron/server.log:2015-04-22 16:14:08.664 15064 WARNING neutron.plugins.ml2.drivers.type_gre [req-048e3115-e5ec-4b8e-a923-a20fa9017ab0 None] Gre endpoint with ip 10.1.1.5 already exists /var/log/neutron/server.log:2015-04-22 16:16:36.184 15064 WARNING neutron.plugins.ml2.drivers.type_gre [req-b1bbf4cc-bc2f-4731-941f-fdf17e389afe None] Gre endpoint with ip 10.1.1.5 already exists /var/log/neutron/server.log:2015-04-22 16:22:03.503 19890 WARNING neutron.plugins.ml2.drivers.type_gre [req-74cd7078-64f2-4c55-aae6-3f6f3c0ec063 None] Gre endpoint with ip 10.1.1.5 already exists |
解决方法,在ml2的配置文件中不要启用下面配置:
type_drivers = gre
即配置为:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
root@controller:/etc/neutron# cat /etc/neutron/plugins/ml2/ml2_conf.ini | egrep -v "^$|^#" [ml2] tenant_network_types = gre mechanism_drivers = openvswitch [ml2_type_flat] [ml2_type_vlan] [ml2_type_gre] tunnel_id_ranges = 1:1000 [ovs] local_ip = 10.1.1.5 tunnel_type = gre enable_tunneling = True [ml2_type_vxlan] [securitygroup] enable_security_group = True firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver |