zoukankan      html  css  js  c++  java
  • Openstack 网络服务 Neutron计算节点部署(十)

    Neutron计算节点部署

    安装组件,安装的服务器是192.168.137.12

    1、安装软件包

    yum install -y openstack-neutron-linuxbridge ebtables ipset
    

    2、配置文件neutron.conf

    • 因为neutron控制节点跟计算节点配置几乎一样,直接复制控制节点的文件到计算节点,将不同的部分进行修改。
    scp /etc/neutron/neutron.conf root@192.168.137.12:/etc/neutron
    
    • 在neutron计算节点进行修改配置文件权限
    chown -R root:neutron /etc/neutron/neutron.conf
    

    • neutron计算节点配置
    [root@linux-node2 ~]# vim /etc/neutron/neutron.conf
    #connection =           # 删除mysql连接路径
    [nova]                  # 删除nova标签下keystone配置
    #notify_nova_on_port_status_changes = true      # 注释
    #notify_nova_on_port_data_changes = true        # 注释
    #core_plugin = ml2                              # 注释
    #service_plugins =                              # 注释
    
    • 为nova计算节点配置网络服务
    [root@linux-node2 ~]# vim /etc/nova/nova.conf
    [neutron]
    url = http://192.168.137.11:9696
    auth_url = http://192.168.137.11:35357
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    region_name = RegionOne
    project_name = service
    username = neutron
    password = neutron
    

    提示:在nova控制节点配置文件中配置了neutron的节点选项,在nova计算节点的上也要配置neutron的节点选项。

    3、配置Linuxbridge代理

    编辑/etc/neutron/plugins/ml2/linuxbridge_agent.ini文件并且完成以下操作:

    • 在[linux_bridge]部分,将公共虚拟网络和公共物理网络接口对应起来
    [linux_bridge]
    physical_interface_mappings = public:eth0
    
    • 在[vxlan]部分,禁止VXLAN覆盖网络
    [vxlan]
    enable_vxlan = false
    
    • 在[securitygroup]部分,启用安全组并配置防火墙驱动
    [securitygroup]
    enable_security_group = True
    firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
    

    4、重启计算节点nova-compute

    systemctl restart openstack-nova-compute.service
    

    5、启动Linuxbridge代理并配置它开机自启动

    systemctl enable neutron-linuxbridge-agent.service
    systemctl start neutron-linuxbridge-agent.service
    

    6、进入控制节点(192.168.137.11),进行检查

    source /root/admin-openstack.sh
    neutron agent-list
    

  • 相关阅读:
    使用cmd命令行窗口操作SqlServer
    .net core compatibility windows & windows compatible Linux
    Microsoft Azure Tutorial: Build your first movie inventory web app with just a few lines of code
    Running ASP.NET Core applications on Windows Subsystem for Linux
    Simple Use IEnumerable<T>
    JSON in SQL Server 2016
    [开源 .NET 跨平台 Crawler 数据采集 爬虫框架: DotnetSpider] [一] 初衷与架构设计
    NotBacon
    Create an Azure SQL database in the Azure portal
    Cisco IP 电话 将它的voice mail 发送到手机
  • 原文地址:https://www.cnblogs.com/shhnwangjian/p/6361748.html
Copyright © 2011-2022 走看看