OpenStack_Rocky版-7.安装Neutron服务(计算节点)
1.网络服务neutron安装及配置
1.1 安装配置控制节点
1.1.1 安装组件
[root@compute ~]# yum install openstack-neutron-linuxbridge ebtables ipset -y
1.1.2 配置公共组件
[root@compute ~]# cp /etc/neutron/neutron.conf{,.bak}
[root@compute ~]# grep -Ev '^$|#' /etc/neutron/neutron.conf.bak > /etc/neutron/neutron.conf
[root@compute ~]# vim /etc/neutron/neutron.conf
[DEFAULT]
transport_url = rabbit://openstack:000000@controller
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 = 000000
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
1.1.3 配置网络(self-service)
1.配置linux网桥
[root@compute ~]# cp /etc/neutron/plugins/ml2/linuxbridge_agent.ini{,.bak}
[root@compute ~]# grep -Ev '^$|#' /etc/neutron/plugins/ml2/linuxbridge_agent.ini.bak > /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[root@compute ~]# vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[vxlan]
enable_vxlan = true
local_ip = 192.168.2.20 #这里的192.168.2.20为计算节点隧道网络的IP地址
l2_population = true
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
2.配置计算服务使用网络服务
[root@compute ~]# 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 = 000000
3.配置内核支持网桥过滤
[root@compute ~]# vim /usr/lib/sysctl.d/00-system.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
[root@compute ~]# sysctl -p
4.重启compute服务
[root@compute ~]# systemctl restart openstack-nova-compute.service
5.启动服务
[root@compute ~]# systemctl enable neutron-linuxbridge-agent.service && systemctl start neutron-linuxbridge-agent.service
1.2 检验 neutron服务
[root@controller ~]# openstack network agent list