Openstack 網絡服務 Neutron計算節點部署(十)


Neutron計算節點部署

安裝組件,安裝的服務器是192.168.137.12

1、安裝軟件包

yum install -y openstack-neutron-linuxbridge ebtables ipset

2、配置文件neutron.conf

  • 因為neutron控制節點跟計算節點配置幾乎一樣,直接復制控制節點的文件到計算節點,將不同的部分進行修改。
scp /etc/neutron/neutron.conf root@192.168.137.12:/etc/neutron
  • 在neutron計算節點進行修改配置文件權限
chown -R root:neutron /etc/neutron/neutron.conf

  • neutron計算節點配置
[root@linux-node2 ~]# vim /etc/neutron/neutron.conf
#connection =           # 刪除mysql連接路徑
[nova]                  # 刪除nova標簽下keystone配置
#notify_nova_on_port_status_changes = true      # 注釋
#notify_nova_on_port_data_changes = true        # 注釋
#core_plugin = ml2                              # 注釋
#service_plugins =                              # 注釋
  • 為nova計算節點配置網絡服務
[root@linux-node2 ~]# vim /etc/nova/nova.conf
[neutron]
url = http://192.168.137.11:9696
auth_url = http://192.168.137.11:35357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron

提示:在nova控制節點配置文件中配置了neutron的節點選項,在nova計算節點的上也要配置neutron的節點選項。

3、配置Linuxbridge代理

編輯/etc/neutron/plugins/ml2/linuxbridge_agent.ini文件並且完成以下操作:

  • 在[linux_bridge]部分,將公共虛擬網絡和公共物理網絡接口對應起來
[linux_bridge]
physical_interface_mappings = public:eth0
  • 在[vxlan]部分,禁止VXLAN覆蓋網絡
[vxlan]
enable_vxlan = false
  • 在[securitygroup]部分,啟用安全組並配置防火牆驅動
[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

4、重啟計算節點nova-compute

systemctl restart openstack-nova-compute.service

5、啟動Linuxbridge代理並配置它開機自啟動

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

6、進入控制節點(192.168.137.11),進行檢查

source /root/admin-openstack.sh
neutron agent-list

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM