ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

neutron计算节点

2019-08-14 09:03:45  阅读:291  来源: 互联网

标签:name zxw6 agent openvswitch nova 计算 节点 neutron


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

第二步:配置neutron的文件
[root@zxw8 ~]# egrep -v '(^#|^$)' /etc/nova/nova.conf
[DEFAULT]
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:zxw6@zxw6
my_ip = 192.168.126.6
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://zxw6:9292
[guestfs]
[healthcheck]
[hyperv]
[image_file_url]
[ironic]
[key_manager]
[keystone_authtoken]
auth_uri = http://zxw6:5000
auth_url = http://zxw6:35357
memcached_servers = zxw6:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = zxw6
[libvirt]
virt_type = qemu
[matchmaker_redis]
[metrics]
[mks]
[neutron]
url = http://zxw6:9696
auth_url = http://zxw6:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = zxw6
[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://zxw6:35357/v3
username = placement
password = zxw6
[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.6: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 | | | | | | |
+------------------------+--------------------+------+-------------------+-------+----------------+-------------------------+

 

标签:name,zxw6,agent,openvswitch,nova,计算,节点,neutron
来源: https://www.cnblogs.com/itzhao/p/11349733.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有