配置Networking服务计算节点
1. 安装组件
yum install openstack-neutron-linuxbridge ebtables ipset
配置公共组件
2. 编辑/etc/neutron/neutron.conf文件
sed -i.bak -e '/^#/d' -e '/^$/d' /etc/neutron/neutron.conf
[DEFAULT]transport_url = rabbit://openstack:123@openvip.comauth_strategy = keystone
[keystone_authtoken]www_authenticate_uri = http://controller:5000auth_url = http://controller:5000memcached_servers = openvip.com:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = neutronpassword = 123
[oslo_concurrency]lock_path = /var/lib/neutron/tmp
配置Linux桥代理
3. 编辑/etc/neutron/plugins/ml2/linuxbridge_agent.ini文件
sed -i.bak -e '/^#/d' -e '/^$/d' /etc/neutron/plugins/ml2/linuxbridge_agent.ini
[DEFAULT]
[linux_bridge]physical_interface_mappings = provider:eth0[vxlan]enable_vxlan = false
[securitygroup]enable_security_group = truefirewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
确保您的Linux操作系统内核支持网桥过滤器
4. 配置/etc/sysctl.conf文件
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
生效
sysctl -p
配置Compute服务以使用Networking服务
5. 编辑/etc/nova/nova.conf文件
[neutron]url = http://controller:9696auth_url = http://controller:5000auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultregion_name = RegionOneproject_name = serviceusername = neutronpassword = 123
6. 重新启动Compute服务:
systemctl restart openstack-nova-compute.service
7. 启动Linux网桥代理并将其配置为在系统引导时启动:
systemctl enable neutron-linuxbridge-agent.service
systemctl start neutron-linuxbridge-agent.service
控制节点
验证
openstack extension list --network
openstack network agent list
资料来自:https://thson.blog.csdn.net/article/details/100055042