首页 > 代码库 > Openstack 部署

Openstack 部署

部署OpenStack 参见:  http://docs.openstack.org/newton/install-guide-rdo/

*Liberty开始 neutron-L2-agent默认使用 LinuxBridge,但生成环境使用的OpenvSwitch,此处提供使用OpenvSwitch的相关配置:

 1 # Configure the Modular Layer 2 (ML2) plug-in
 2 # Controller Node
 3 yum install openstack-neutron-openvswitch
 4   
 5 # Edit /etc/neutron/plugins/ml2/ml2_conf.ini
 6 [ml2]
 7 mechanism_drivers = openvswitch,l2population
 8   
 9 # Edit /etc/neutron/plugins/ml2/openvswitch_agent.ini
10 [agent]
11 tunnel_types = vxlan
12 l2_population = true
13   
14 [ovs]
15 local_ip = $ip
16 bridge_mappings =   # For flat,vlan
17 of_interface = ovs-ofctl
18   
19 [securitygroup]
20 firewall_driver = iptables
21   
22 # Edit /etc/neutron/l3_agent.ini
23 [DEFAULT]
24 interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
25   
26 # Edit etc/neutron/dhcp_agent.ini
27 [DEFAULT]
28 interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
29 dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
30 enable_isolated_metadata =http://www.mamicode.com/ True
31   
32   
33   
34 #Compute Node
35 yum install openstack-neutron-openvswitch
36   
37 # Edit /etc/neutron/plugins/ml2/openvswitch_agent.ini
38 [agent]
39 tunnel_types = vxlan
40 l2_population = true
41  
42 [ovs]
43 local_ip = $ip
44 bridge_mappings =   # For vlan
45 of_interface = ovs-ofctl
46  
47 [securitygroup]
48 firewall_driver = iptables_hybrid

 

OVN + DPDK(计算节点)

1 # 配置 ovn-controller
2   
3 ovs-vsctl set open . external_ids=ovn-remote:tcp:$controller_ip:6642
4 ovs-vsctl set open . external_ids=ovn-encap-ip:$local_host_ip
5 ovs-vsctl set open . external_ids=ovn-encap-type:geneve
6  
7  
8 ovs-vsctl set open . external_ids:datapath-type="netdev"
9 ovs-vsctl set open . external_ids:iface-types="dpdkvhostuser"

创建虚机

     OVS-DPDK uses hugepages to communicate with guests, before you boot a VM with OVS-DPDK you will need to create a flavor that requests hugepages.

     nova flavor-key <FLAVOR> set hw:mem_page_size=large

Openstack 部署