问题1:
安装mitaka并安装F5 agent后,设置F5 agent的配置中tunnel类型为vxlan
在openstack中创建网络,并创建loadbalancer,发现在F5上自动创建的tunnel是gre的
修改 /etc/neutron/plugins/ml2/ml2_conf.ini 中的ML2段落下的租户网络类型为vxlan,发现依旧推送gre tunnel
tenant_network_types = vxlan
原因:
在创建网络的时候,tenant_network_types 配置项的第一个配置是gre,导致产生的租户网络类型是gre,这样即便后来修改了该配置,已经产生的类型依旧是gre,导致推送到F5上的tunnel始终是gre。
附,正常配置:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
[DEFAULT] [ml2] type_drivers = local,flat,vlan,gre,vxlan,geneve mechanism_drivers = openvswitch,l2population tenant_network_types = vxlan,vlan,gre extension_drivers = port_security [ml2_type_flat] flat_networks = physicalflat [ml2_type_geneve] [ml2_type_gre] tunnel_id_ranges = 1:100 [ml2_type_vlan] network_vlan_ranges = [ml2_type_vxlan] vxlan_group = 239.1.1.1 vni_ranges = 110:1000 [securitygroup] enable_security_group = True enable_ipset = True firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver [ovs] enable_tunneling = True local_ip = 192.168.214.150 bridge_mappings = physicalflat:br-ex [agent] arp_responder = True vxlan_udp_port = 4789 l2_population = True [database] connection = mysql+pymysql://neutrondbuser:P@ssw0rd@192.168.215.150:3306/neutrondb retry_interval = 10 idle_timeout = 3600 min_pool_size = 1 max_pool_size = 10 max_retries = 100 pool_timeout = 10 |
问题2:
如果通过openstack配置了一个loadbalancer,此后重启compute节点上的neutron-server,则系统提示必须先删除之前创建loadbalancer,否则启动失败
2017-01-13 18:55:38.297 24480 ERROR neutron_lbaas.services.loadbalancer.plugin [req-00e705df-f351-481a-853d-cc250a3b01a2 - - - - -] Delete associated load balancers before removing providers [u'f5networks']
待解