Openstack組件部署 — Networking service_Compute Node

來源:互聯網
上載者:User

標籤:

目錄

  • 目錄
  • 前文列表
  • 安裝組件
    • 配置萬用群組件
  • 配置自服務網路選項
    • 配置Linux 橋接代理
  • 配置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

  • [database] 部分,注釋所有connection 項,因為計算節點不直接存取資料庫。

  • [DEFAULT][oslo_messaging_rabbit]部分,配置RabbitMQ訊息佇列訪問:

[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]部分啟用詳細日誌
[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]部分,啟用ARP欺騙防護:
[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] 部分,配置訪問參數:
[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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.