zoukankan      html  css  js  c++  java
  • neutron计算节点

    第一步:下载
    [root@zxw6 ~]# yum install openvswitch openstack-neutron-openvswitch ebtables ipset -y

    [root@zxw8 ~]# egrep -v '(^#|^$)' /etc/neutron/neutron.conf
    [DEFAULT]
    transport_url = rabbit://openstack:123@zxw7
    auth_strategy = keystone
    [agent]
    [cors]
    [cors.subdomain]
    [database]
    [keystone_authtoken]
    auth_uri = http://zxw7:5000
    auth_url = http://zxw7:35357
    memcached_servers = zxw7:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project_name = service
    username = neutron
    password = 123
    [matchmaker_redis]
    [nova]
    [oslo_concurrency]
    lock_path = /var/lib/neutron/tmp
    [oslo_messaging_amqp]
    [oslo_messaging_kafka]
    [oslo_messaging_notifications]
    [oslo_messaging_rabbit]
    [oslo_messaging_zmq]
    [oslo_middleware]
    [oslo_policy]
    [qos]
    [quotas]
    [ssl]

    第二步:配置neutron的文件

    [root@zxw8 ~]# egrep -v '(^#|^$)' /etc/nova/nova.conf 
    [DEFAULT]
    enabled_apis = osapi_compute,metadata
    transport_url = rabbit://openstack:123@zxw7
    my_ip = 192.168.126.8
    use_neutron = True
    firewall_driver = nova.virt.firewall.NoopFirewallDriver
    [api]
    auth_strategy = keystone
    [api_database]
    [barbican]
    [cache]
    [cells]
    [cinder]
    [cloudpipe]
    [conductor]
    [console]
    [consoleauth]
    [cors]
    [cors.subdomain]
    [crypto]
    [database]
    [ephemeral_storage_encryption]
    [filter_scheduler]
    [glance]
    api_servers = http://zxw7:9292
    [guestfs]
    [healthcheck]
    [hyperv]
    [image_file_url]
    [ironic]
    [key_manager]
    auth_uri = http://zxw7:5000
    auth_url = http://zxw7:35357
    memcached_servers = zxw7:11211
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    project_name = service
    username = nova
    password = 123
    [keystone_authtoken]
    [libvirt]
    virt_type = qemu
    [matchmaker_redis]
    [metrics]
    [mks]
    [neutron]
    url = http://zxw7:9696
    auth_url = http://zxw7:35357
    auth_type = password
    project_domain_name = default
    user_domain_name = default
    region_name = RegionOne
    project_name = service
    username = neutron
    password = 123
    [notifications]
    [osapi_v21]
    [oslo_concurrency]
    lock_path = /var/lib/nova/tmp
    [oslo_messaging_amqp]
    [oslo_messaging_kafka]
    [oslo_messaging_notifications]
    [oslo_messaging_rabbit]
    [oslo_messaging_zmq]
    [oslo_middleware]
    [oslo_policy]
    [pci]
    [placement]
    os_region_name = RegionOne
    project_domain_name = Default
    project_name = service
    auth_type = password
    user_domain_name = Default
    auth_url = http://zxw7:35357/v3
    username = placement
    password = 123
    [quota]
    [rdp]
    [remote_debug]
    [scheduler]
    [serial_console]
    [service_user]
    [spice]
    [ssl]
    [trusted_computing]
    [upgrade_levels]
    [vendordata_dynamic_auth]
    [vmware]
    [vnc]
    enabled = True
    vncserver_listen = 0.0.0.0
    vncserver_proxyclient_address = $my_ip
    novncproxy_base_url = http://192.168.126.7:6080/vnc_auto.html
    [workarounds]
    [wsgi]
    [xenserver]
    [xvp]

     

    第三步:修改哦ovs的配置文件
    [root@zxw8 ~]# cat /etc/neutron/plugins/ml2/openvswitch_agent.ini
    [DEFAULT]

    [agent]
    tunnel_types = vxlan
    l2_population = True

    [ovs]
    tunnel_bridge = br-tun
    local_ip = 192.168.92.134
    bridge_mappings =

    [securitygroup]
    firewall_driver = iptables_hybrid
    enable_security_group = true

    [xenapi]

     

     

    第四步:重启nova
    [root@zxw7 ~]# systemctl restart openstack-nova-compute.service

     

    第五步:重启ovs并开机自启
    [root@zxw7 ~]# systemctl start openvswitch neutron-openvswitch-agent

    [root@zxw7 ~]# systemctl enable openvswitch neutron-openvswitch-agent

     

    控制节点查看
    [root@zxw6 ~]# neutron agent-list
    neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
    +------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+
    | id | agent_type | host | availability_zone | alive | admin_state_up | binary |
    +------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+
    | 482328bc-05b9-473d- | Open vSwitch agent | zxw8 | | :-) | True | neutron-openvswitch- |
    | a3a2-e686b1525f25 | | | | | | agent |
    | 5e559f85-fabf-4695-a75 | DHCP agent | zxw6 | nova | :-) | True | neutron-dhcp-agent |
    | 8-95a605c374e6 | | | | | | |
    | 6d9dd18e-bba8-4546-99e | Open vSwitch agent | zxw6 | | :-) | True | neutron-openvswitch- |
    | 4-d4cfe27bfea9 | | | | | | agent |
    | 81607355-1258-4904 | L3 agent | zxw6 | nova | :-) | True | neutron-l3-agent |
    | -83fb-4b084b2ef6ee | | | | | | |
    | 835300f9-0c75-40a6 | Open vSwitch agent | zxw7 | | :-) | True | neutron-openvswitch- |
    | -ae4a-56968f676fe6 | | | | | | agent |
    | 98ce7a22-eae1-4727-811 | Metadata agent | zxw6 | | :-) | True | neutron-metadata-agent |
    | 4-eed65c1703f3 | | | | | | |
    +------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+

     

  • 相关阅读:
    数据结构 树(下)
    数据结构 树(上)
    Python Scrapy爬虫(上)
    线程的生命周期
    多线程-方式二实现Runnable接口方式
    Thread类中的常用的方法及概述
    多线程-方式一继承Thread方式
    14: 字母的前趋或后继
    13: A+B
    12: 成绩转换
  • 原文地址:https://www.cnblogs.com/itzhao/p/11349733.html
Copyright © 2011-2022 走看看