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 | | | | | | |
    +------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+

     

  • 相关阅读:
    输入一个1-9的数i,再输入一个数字n,表示 i 出现的次数,输入的2个数字 i 和 n 组合成如下表达式:如i=2,n=4,2+22+222+2222=?,计算结果是多少?
    现有数列1/2;2/3;3/5;5/8······第十次出现的是什么?
    猜数游戏:范围时1-100,若错误就提示大了还是小了,猜对则结束,允许猜10次,游戏结束后对玩家评价:1次猜对;5次内猜对;10次内猜对;没有猜对
    登录模拟,用户名和密码输入错误后给出相关错误提示,并告知还有多少次错误机会,如果5次验证失败将冻结账户
    30人围坐轮流表演节目,按顺序数1-3,每次数到3的人就表演节目,表演过的人不再参加报数,那么在仅剩一个人没有表演的时候,共报数多少人次?
    docker 自定义镜像
    php 镜像richarvey/nginx-php-fpm的ngnix配置
    php tp5常用小知识
    php Tp5下mysql的增删改查
    php 面试常问问题
  • 原文地址:https://www.cnblogs.com/itzhao/p/11349733.html
Copyright © 2011-2022 走看看