基础云修改网络模式Vxlan_OVs到Vlan_OVS

问题解决

 

所有节点

完成下面替换

  1. openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan
  2. openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types flat,vlan
  3. openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2_type_vlan network_vlan_ranges physnet1:1:4000
  4. openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs tenant_network_type vlan
  5. openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs network_vlan_ranges physnet1:1:4000
  6. openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ovs integration_bridge br-int
  7. openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs tenant_network_type flat,vlan

 

/etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini agent节全部注释 注释所有vni有关的以及tenneling有关的选项

 

最后重启所有节点neutron服务

openstack-service restart neutron

问题验证

 

ovs-vsctl show命令查看ovs网桥,vlan模式与vxlan模式最大的区别在与vxlan模式用vxlan隧道传输,而vlan模式则不是,输出结果里面没有vxlan br-tun字段

 

通过以上配置之后实测发现很多问题

 

虚拟机迁移失败

 
 

虚拟机获取不到元数据

 

vlan模式 需要设置isolated值为true

openstack-config --set /etc/neutron/dhcp_agent.ini DEFAULT enable_isolated_metadata True

 

其他配置

  1. openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs bridge_mappings physnet1:br-$NETDEV
  2. # NETDEV为业务网网桥
  3. # 控制节点执行 下面其他的所有节点执行
  4. openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs network_vlan_ranges physnet1:1:4000
  5. openstack-config --set /etc/neutron/neutron.conf DEFAULT service_plugins router,lbaas,firewall
  6. openstack-config --set /etc/neutron/neutron.conf DEFAULT nova_admin_tenant_id `keystone tenant-list |grep services|awk '{print $2}'`

暂时发现俩个显性问题,配置问题排查相对费时间,按以上配完之后暂时没发现问题,建议配完之后对下附件中的配置

posted @ 2019-06-24 15:39  那个谁866  阅读(397)  评论(0编辑  收藏  举报