zoukankan      html  css  js  c++  java
  • 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 = 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

  • 相关阅读:
    自定义udf添加一列
    spark执行命令 监控执行命令
    R链接hive/oracle/mysql
    [Hive_6] Hive 的内置函数应用
    [Hive_add_6] Hive 实现 Word Count
    [Hive_add_5] Hive 的 join 操作
    【爬坑】远程连接 MySQL 失败
    [Hive_add_4] Hive 命令行客户端 Beeline 的使用
    [Hive_5] Hive 的 JDBC 编程
    [Hive_add_3] Hive 进行简单数据处理
  • 原文地址:https://www.cnblogs.com/gaozhengwei/p/7100200.html
Copyright © 2011-2022 走看看