网络服务计算节点的安装及配置
1.安装服务
# yum install openstack-neutron-linuxbridge ebtables ipset -y
2.修改/etc/neutron/neutron.conf
[DEFAULT] ... transport_url = rabbit://openstack:RABBIT_PASS@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 = 123456
[oslo_concurrency] ... lock_path = /var/lib/neutron/tmp
3.修改/etc/neutron/plugins/ml2/linuxbridge_agent.ini
[linux_bridge] physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME
[vxlan] enable_vxlan = False
[securitygroup] ... enable_security_group = True firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
4.修改/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 = 123456
5.重启nova-compute服务
# systemctl restart openstack-nova-compute.service
6.启动服务
# systemctl enable neutron-linuxbridge-agent.service # systemctl start neutron-linuxbridge-agent.service
7.验证
# openstack network agent list
[root@controller ~]# openstack network agent list +--------------------------------------+--------------------+----------------------+-------------------+-------+-------+---------------------------+ | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | +--------------------------------------+--------------------+----------------------+-------------------+-------+-------+---------------------------+ | 698c8ca2-3090-4c0c-99c6-c057372b964f | Linux bridge agent | controller.novalocal | None | True | UP | neutron-linuxbridge-agent | | 75342101-7cc6-449f-93aa-915b145d071e | Metadata agent | controller.novalocal | None | True | UP | neutron-metadata-agent | | 7c8ea576-695a-4d58-bb7f-b04ac4ada40a | Linux bridge agent | compute1.novalocal | None | True | UP | neutron-linuxbridge-agent | | d8c7e1b1-52a1-4a4f-9b9b-ab5fa56e94e9 | DHCP agent | controller.novalocal | nova | True | UP | neutron-dhcp-agent | +--------------------------------------+--------------------+----------------------+-------------------+-------+-------+---------------------------+
本文出自 “linux运维” 博客,请务必保留此出处http://lijiawang.blog.51cto.com/10156897/1891716
原文:http://lijiawang.blog.51cto.com/10156897/1891716