openstack安装(十)网络服务的安装--计算节点

安装和配置计算节点

最终检测:"neutron 四个选项"

(1)安装组件

yum install openstack-neutron-linuxbridge ebtables ipset -y

(2)修改配置文件

vim  /etc/neutron/neutron.conf

###############

'1:消息队列'

[DEFAULT]
...
rpc_backend = rabbit

[oslo_messaging_rabbit]
...
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = xxxxxxxx

'2:认证'

[DEFAULT]
...
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_PASS

'3:锁文件'

[oslo_concurrency]
...
lock_path = /var/lib/neutron/tmp

(3)计算节点配置二层网络

####################(1)配置Linuxbridge代理-->在计算节点创建网桥

[linux_bridge]
physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME(自己是eth0)

[vxlan]
enable_vxlan = False

[securitygroup]
...
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

(4)为计算节点配置网络服务

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_PASS

(5)服务自启动

    '重启计算服务'

    systemctl restart openstack-nova-compute.service

    '启动Linuxbridge代理并配置它开机自启动'

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

(6)验证

[root@controller ~]# neutron agent-list
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host       | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+
| 19fbb42a-3fca-4124-9f01-391ff0aa8645 | DHCP agent         | controller | nova              | :-)   | True           | neutron-dhcp-agent        |
| 35965192-d5b6-4c8c-a56a-c1d5d45fcf52 | Metadata agent     | controller |                   | :-)   | True           | neutron-metadata-agent    |
| b45a1bda-a086-482b-9769-5ef2e0d2a788 | Linux bridge agent | compute1   |                   | :-)   | True           | neutron-linuxbridge-agent |
| e9d7d6a9-a89b-4939-854e-2901808714ea | Linux bridge agent | controller |                   | :-)   | True           | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+------------+-------------------+-------+----------------+---------------------------+

'compute1 节点多了一个Linux bridge agent'

 

你可能感兴趣的:(openstack)