• openstack stein部署手册 9. neutron


    # 安装程序包
    yum -y install openstack-neutron-linuxbridge ebtables ipset
    

    # 变更配置文件
    mv /etc/neutron/neutron.confneutron /etc/neutron/neutron.conf.org
    
    cat > /etc/neutron/neutron.conf << EOF
    [DEFAULT]
    transport_url = rabbit://openstack:Abc@123@controller
    auth_strategy = keystone
    
    [keystone_authtoken]
    www_authenticate_uri = http://controller:5000
    auth_url = http://controller:5000/v3
    memcached_servers = controller:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project _name = service
    username = neutron
    password = Abc@123
    
    [oslo_concurrency]
    lock_path = /var/lib/neutron/tmp
    EOF
    
    chmod 640 /etc/neutron/neutron.conf
    chown root:neutron /etc/neutron/neutron.conf
    
    mv /etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini.org
    cat > /etc/neutron/plugins/ml2/linuxbridge_agent.ini <<EOF
    [DEFAULT]
    
    [linux_bridge]
    physical_interface_mappings = provider:eth1
    
    [vxlan]
    enable_vxlan = false
    
    [securitygroup]
    enable_security_group = true
    firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
    EOF
    
    chmod 640 /etc/neutron/plugins/ml2/linuxbridge_agent.ini
    chown root:neutron /etc/neutron/plugins/ml2/linuxbridge_agent.ini
    
    /etc/nova/nova.conf
    未尾部分增加
    [neutron]
    url = http://controller:9696
    auth_url = http://controller:5000/v3
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project _name = service
    region_name = RegionOne
    username = neutron
    password = Abc@123
    service_metadata_proxy = True
    metadata_proxy_shared_secret = Abc@123
    

    # 开启服务
    systemctl restart openstack-nova-compute && systemctl enable openstack-nova-compute
    systemctl restart neutron-linuxbridge-agent && systemctl enable neutron-linuxbridge-agent
    

    ```bash # 验证 在controller上执行 source ~/.openstack_admin openstack network agent list ```
  • 相关阅读:
    Stop介绍
    django建站基本步骤
    Js 数组排序函数sort()
    前端面试基础-html篇之CSS3新特性
    前端面试基础-html篇之H5新特性
    2018年前端程序猿最好用的编辑器:visual studio code 常见配置
    适合手机端页面的轮播图,无插件,支持自动循环,一套轮播图可以适应所有的屏幕
    纯css3实现圆点围绕圆圈匀速无限旋转
    xpath 踩坑笔记01 通过a 文本内容标签定位元素
    python3学习记录3
  • 原文地址:https://www.cnblogs.com/liujitao79/p/11870877.html
Copyright © 2020-2023  润新知