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'

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章