Openstack+Ceph 安装及配置-06.2.2-Openstack-Yoga Neutron安装-计算节点Self-service Network

Openstack Yoga版本Neutron安装-计算节点-Self-service Networks

安装服务

[root@node-3 ~]# yum install openstack-neutron-linuxbridge ebtables ipset -y

配置服务

编辑配置文件/etc/neutron/neutron.conf

[root@node-3 ~]# cp /etc/neutron/neutron.conf /etc/neutron/neutron.conf.bak
[root@node-3 ~]# grep -Ev "^$|^#" /etc/neutron/neutron.conf.bak >/etc/neutron/neutron.conf
[root@node-3 ~]# vim /etc/neutron/neutron.conf
[DEFAULT]
transport_url = rabbit://openstack:RabbitMQ123@node-1
auth_strategy = keystone
[cors]
[database]
connection = mysql+pymysql://neutron:Neutron123@node-1/neutron
[keystone_authtoken]
www_authenticate_uri = http://node-1:5000
auth_url = http://node-1:5000
memcached_servers = node-1:11211,node-2:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password =Neutron123
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_middleware]
[oslo_policy]
[privsep]
[ssl]

编辑配置文件-provider网络

[root@node-3 ~]# cat /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[DEFAULT]
[linux_bridge]
physical_interface_mappings = provider:eno1
[vxlan]
enable_vxlan = true
local_ip = 172.16.1.83
l2_population = true
[agent]
prevent_arp_spoofing = true
[securitygroup]
enable_security_group = true
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

加载内核参数

echo net.bridge.bridge-nf-call-iptables = 1 >> /etc/sysctl.conf
echo net.bridge.bridge-nf-call-ip6tables = 1 >> /etc/sysctl.conf
modprobe br_netfilter
sysctl -p

配置nova.conf

[root@node-3 ~]# vim /etc/nova/nova.conf #neutron添加以下内容
[neutron]
auth_url = http://node-1:5000
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = Neutron123

启动服务

重启nova服务

[root@node-3 ~]# systemctl restart openstack-nova-compute.service

重启网桥代理

[root@node-3 ~]# systemctl restart neutron-linuxbridge-agent.service
[root@node-3 ~]# systemctl enable neutron-linuxbridge-agent.service
Created symlink /etc/systemd/system/multi-user.target.wants/neutron-linuxbridge-agent.service → /usr/lib/systemd/system/neutron-linuxbridge-agent.service.

 

posted @ 2023-02-21 16:55  苦逼挨踢男  阅读(34)  评论(0编辑  收藏  举报