標籤:
目錄
- 目錄
- 前文列表
- 安裝組件
- 配置自服務網路選項
- 配置Nova使用網路
- 完成安裝
- 驗證操作Execute following commands on Controller Node
前文列表
Openstack組件部署 — Overview和前期環境準備
Openstack組建部署 — Environment of Controller Node
Openstack組件部署 — Keystone功能介紹與認證實現流程
Openstack組件部署 — Keystone Install & Create service entity and API endpoints
Openstack組件部署 — keystone(domain, projects, users, and roles)
Openstack組件實現原理 — Keystone認證功能
Openstack組建部署 — Glance Install
Openstack組件實現原理 — Glance架構(V1/V2)
Openstack組件部署 — Nova overview
Openstack組件部署 — Nova_安裝和配置Controller Node
Openstack組件部署 — Nova_Install and configure a compute node
Openstack組件實現原理 — Nova 體繫結構
Openstack組件部署 — Netwotking service組件介紹與網路基本概念
Openstack組件部署 — Networking service_安裝並配置Controller Node
安裝組件
yum install openstack-neutron openstack-neutron-linuxbridge ebtables ipset -y
配置萬用群組件
Networking 萬用群組件的配置包括認證機制、訊息佇列、外掛程式。
編輯/etc/neutron/neutron.conf 檔案
vim /etc/neutron/neutron.conf
[DEFAULT]rpc_backend = rabbit[oslo_messaging_rabbit]rabbit_host = controller.jmilk.comrabbit_userid = openstackrabbit_password = fanguiju
- 在
[DEFAULT] 和[keystone_authtoken]部分,配置Keystone認證服務訪問:
[DEFAULT]auth_strategy = keystone[keystone_authtoken]auth_uri = http://controller.jmilk.com:5000auth_url = http://controller.jmilk.com:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = defaultproject_name = serviceusername = neutronpassword = fanguiju
注:在 [keystone_authtoken] 中注釋或者刪除其他選項。
- 在
[oslo_concurrency] 部分,配置鎖路徑
[oslo_concurrency]lock_path = /var/lib/neutron/tmp
[DEFAULT]verbose = True
配置自服務網路選項配置Linux 橋接代理
Linux橋接代理為執行個體建立包括私人網路的VXLAN隧道和處理安全性群組的layer-2(橋接/交換)虛擬網路設施。
編輯/etc/neutron/plugins/ml2/linuxbridge_agent.ini檔案
vim /etc/neutron/plugins/ml2/linuxbridge_agent.ini
- 在
[linux_bridge] 部分,映射公用虛擬網路到公用物理網路介面:
[linux_bridge]physical_interface_mappings = public:PUBLIC_INTERFACE_NAME
將PUBLIC_INTERFACE_NAME 替換為物理公用網路介面(網卡)。
Example:
[linux_bridge]physical_interface_mappings = public:eth1
- 在
[vxlan]部分,啟用VXLAN覆蓋網路,配置處理覆蓋網路和啟用layer-2 的物理網路介面的IP地址:
[vxlan]enable_vxlan = Truelocal_ip = OVERLAY_INTERFACE_IP_ADDRESSl2_population = True
Replace OVERLAY_INTERFACE_IP_ADDRESS with the IP address of the underlying physical network interface that handles overlay networks. The example architecture uses the management interface to tunnel traffic to the other nodes. Therefore, replace OVERLAY_INTERFACE_IP_ADDRESS with each node’s own management IP address.
Example:
[vxlan]enable_vxlan = Truelocal_ip = 192.168.1.108l2_population = True
[agent]prevent_arp_spoofing = True
- 在
[securitygroup]部分,啟用安全性群組並配置 Linux 橋接 iptables 防火牆驅動:
[securitygroup]enable_security_group = Truefirewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
配置Nova使用網路
編輯/etc/nova/nova.conf檔案
vim /etc/nova/nova.conf
[neutron]url = http://controller.jmilk.com:9696auth_url = http://controller.jmilk.com:35357auth_plugin = passwordproject_domain_id = defaultuser_domain_id = defaultregion_name = RegionOneproject_name = serviceusername = neutronpassword = fanguiju
完成安裝
Step1. 重啟nova-compute service
systemctl restart openstack-nova-compute.service
Step2. 啟動Linux橋接代理並配置它開機自啟動
systemctl enable neutron-linuxbridge-agent.servicesystemctl start neutron-linuxbridge-agent.service
驗證操作(Execute following commands on Controller Node)
Step1. 載入admin憑證擷取許可權來執行只有管理員能執行命令:
source admin-openrc
Step2. 列出載入的擴充,對neutron-server進程是否啟動正常進行驗證:
neutron ext-list
Step3. 列出代理以驗證啟動 neutron 代理是否成功:
neutron agent-list
該輸出應該顯示在控制節點上有四個代理,在每個計算節點上有一個代理。
Openstack組件部署 — Networking service_Compute Node