##2 Neutron计算节点

Posted yypr

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了##2 Neutron计算节点相关的知识,希望对你有一定的参考价值。

 ###openstack-ocata 单节点安装 部署 目录汇总

 

 

一 安装neutron

yum install openstack-neutron-linuxbridge ebtables ipset -y

--------------------------------------------------------------------------------
二 配置neutron文件

cp /etc/neutron/neutron.conf /etc/neutron/neutron.conf.bak
> /etc/neutron/neutron.conf

echo ‘
[DEFAULT]
# ...
transport_url = rabbit://openstack:[email protected]
auth_strategy = keystone

[keystone_authtoken]
# ...
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = neutron

[oslo_concurrency]
# ...
lock_path = /var/lib/neutron/tmp
‘>>/etc/neutron/neutron.conf


--------------------------------------------------------------------------------
三 配置自助网络文件
cp /etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini.bak
> /etc/neutron/plugins/ml2/linuxbridge_agent.ini

##修改provider local_ip.
echo ‘
[linux_bridge]
physical_interface_mappings = provider:ens33

[vxlan]
enable_vxlan = true
local_ip = OVERLAY_INTERFACE_IP_ADDRESS
l2_population = true

[securitygroup]
# ...
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
‘>>/etc/neutron/plugins/ml2/linuxbridge_agent.ini


--------------------------------------------------------------------------------
四 配置nova文件

vim /etc/nova/nova.conf

[neutron]
# ...
url = http://controller:9696
auth_url = http://controller:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron

--------------------------------------------------------------------------------
五 重启nova 启动neutron服务

systemctl restart openstack-nova-compute.service

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


六 在控制节点执行验证操作

openstack network agent list

+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+
| f49a4b81-afd6-4b3d-b923-66c8f0517099 | Metadata agent | controller | None | True | UP | neutron-metadata-agent |
| 27eee952-a748-467b-bf71-941e89846a92 | Linux bridge agent | controller | None | True | UP | neutron-linuxbridge-agent |
| 08905043-5010-4b87-bba5-aedb1956e27a | Linux bridge agent | compute1 | None | True | UP | neutron-linuxbridge-agent |
| 830344ff-dc36-4956-84f4-067af667a0dc | L3 agent | controller | nova | True | UP | neutron-l3-agent |
| dd3644c9-1a3a-435a-9282-eb306b4b0391 | DHCP agent | controller | nova | True | UP | neutron-dhcp-agent |
+--------------------------------------+--------------------+------------+-------------------+-------+-------+---------------------------+

 

 




























































以上是关于##2 Neutron计算节点的主要内容,如果未能解决你的问题,请参考以下文章

##2 Neutron计算节点

Openstack 网络服务 Neutron计算节点部署

八:OPENSTACK Queens部署neutron服务到计算节点

openstack安装-计算节点-neutron服务安装

Openstack 实战讲解之-----08-计算节点neutron配置

openstack 部署笔记--neutron计算节点