openstack pike linuxbridge換成openvswitch
現有網路節點的網路方案為:
neutron ml2 type driver: vxlan
neutron ml2 mechanism driver : linuxbridge
neutron l2 agent: linuxbridge
改後的方案:
neutron ml2 type driver: vxlan
neutron ml2 mechanism driver : openvswitch
neutron l2 agent: openvswitch
在網路節點和計算節點停止並刪除neutron-linuxbridge-agent
systemcat stop neutron-linuxbridge-agent
systemcat disable neutron-linuxbridge-agent
yum remove neutron-linuxbridge-agent
刪除linuxbridge agent
openstack work agent list 檢視linuxbridgent agent對應的id
openstack work agent delete $id 刪除對應的id
在網路節點和計算節點安裝neutron-openvswitch-agent
yum install -y openstack-neutron-openvswitch
在網路節點新增br-ex網橋
ovs-vsctl add-br br-ex
br-ex 網橋繫結網路卡
ifconfig eth0 0 && ovs-vsctl add-port br-ex eth0
為了開啟生效在/etc/rc.local加上如下配置
ovs-vsctl add-port br-ex eth0
ifconfig br-ex 192.168.100.114/24 (ip根據時間情況改)
網上有說改/etc/sysconfig/network-scripts下的檔案,親測了下在centos7.4環境下,network重啟失敗
所以建議在/etc/rc.local裡新增配置。並改/etc/rc.local為可執行許可權
chmod +x /etc/rc.d/rc.local
修改配置
Neutron
/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
type_drivers = flat,vlan,vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
tenant_network_types = vxlan
[ml2_type_flat]
flat_networks = provider
[ml2_type_vxlan]
vni_ranges = 1:1000
[securitygroup]
enable_ipset = True
/etc/neutron/l3_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
debug = false
/etc/neutron/dhcp_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
/etc/neutron/plugins/ml2/openvswitch_agent.ini
[ovs]
tunnel_bridge = br-tun
local_ip = 10.2.2.4
integration_bridge = br-int
enable_tunneling = True
[agent]
tunnel_types = vxlan
l2_population = True
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
重啟服務
systemctl restart neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-l3-agent.service
將neutron-openvswitch-agent設定開機自啟動
systemctl enable neutron-openvswitch-agent.service
計算節點配置
/etc/neutron/plugins/ml2/openvswitch_agent.ini
[ovs]
tunnel_bridge = br-tun
local_ip = 10.2.2.2
integration_bridge = br-int
enable_tunneling = True
[agent]
tunnel_types = vxlan
l2_population = True
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
重啟服務並設定開機自啟動
systemctl restart openstack-nova-compute.service neutron-openvswitch-agent.service
systemctl enable neutron-openvswitch-agent.service
neutron ml2 type driver: vxlan
neutron ml2 mechanism driver : linuxbridge
neutron l2 agent: linuxbridge
改後的方案:
neutron ml2 type driver: vxlan
neutron ml2 mechanism driver : openvswitch
neutron l2 agent: openvswitch
在網路節點和計算節點停止並刪除neutron-linuxbridge-agent
systemcat stop neutron-linuxbridge-agent
systemcat disable neutron-linuxbridge-agent
yum remove neutron-linuxbridge-agent
刪除linuxbridge agent
openstack work agent list 檢視linuxbridgent agent對應的id
openstack work agent delete $id 刪除對應的id
在網路節點和計算節點安裝neutron-openvswitch-agent
yum install -y openstack-neutron-openvswitch
在網路節點新增br-ex網橋
ovs-vsctl add-br br-ex
br-ex 網橋繫結網路卡
ifconfig eth0 0 && ovs-vsctl add-port br-ex eth0
為了開啟生效在/etc/rc.local加上如下配置
ovs-vsctl add-port br-ex eth0
ifconfig br-ex 192.168.100.114/24 (ip根據時間情況改)
網上有說改/etc/sysconfig/network-scripts下的檔案,親測了下在centos7.4環境下,network重啟失敗
所以建議在/etc/rc.local裡新增配置。並改/etc/rc.local為可執行許可權
chmod +x /etc/rc.d/rc.local
修改配置
Neutron
/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
type_drivers = flat,vlan,vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
tenant_network_types = vxlan
[ml2_type_flat]
flat_networks = provider
[ml2_type_vxlan]
vni_ranges = 1:1000
[securitygroup]
enable_ipset = True
/etc/neutron/l3_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
debug = false
/etc/neutron/dhcp_agent.ini
[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = True
/etc/neutron/plugins/ml2/openvswitch_agent.ini
[ovs]
tunnel_bridge = br-tun
local_ip = 10.2.2.4
integration_bridge = br-int
enable_tunneling = True
[agent]
tunnel_types = vxlan
l2_population = True
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
重啟服務
systemctl restart neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-l3-agent.service
將neutron-openvswitch-agent設定開機自啟動
systemctl enable neutron-openvswitch-agent.service
計算節點配置
/etc/neutron/plugins/ml2/openvswitch_agent.ini
[ovs]
tunnel_bridge = br-tun
local_ip = 10.2.2.2
integration_bridge = br-int
enable_tunneling = True
[agent]
tunnel_types = vxlan
l2_population = True
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True
重啟服務並設定開機自啟動
systemctl restart openstack-nova-compute.service neutron-openvswitch-agent.service
systemctl enable neutron-openvswitch-agent.service
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27181165/viewspace-2150656/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- openstack pike安裝
- openstack(pike) dvr 中南北資料流向分析VR
- openstack pike版使用ceph作後端儲存後端
- 照著官網來安裝openstack pike之environment設定
- 照著官網來安裝openstack pike之glance安裝
- 照著官網來安裝openstack pike之nova安裝
- 照著官網來安裝openstack pike之neutron安裝
- 照著官網來安裝openstack pike之安裝dashboard
- 照著官網來安裝openstack pike之keystone安裝
- 照著官網來安裝openstack pike之建立並啟動instance
- CentOS7安裝OpenvswitchCentOS
- OpenvSwitch系列之八 vxlan隧道
- 如何幫助OpenStack開發者成為貢獻者
- Openstack的HA解決方案【替換原有的dashboard】
- 利用OpenVSwitch構建多主機Docker網路Docker
- char轉換成int
- pdf轉換成word,免費轉換
- oracle行列轉換-多行轉換成字串Oracle字串
- 將字串轉換成Bitmap型別 或者 將Bitmap轉換成字串字串型別
- 理解 OpenStack
- Smaug成OpenStack社群官方專案,提供資料保護介面標準
- oracle行列轉換-字串轉換成多列Oracle字串
- oracle行列轉換-多列轉換成字串Oracle字串
- Java物件轉換成MapJava物件
- 轉換成浮點數
- 轉換成為整數
- oracle日期轉換成星期Oracle
- GP standby切換成masterAST
- pdf轉換成word文件
- 使用devstack/pike部署多節點實驗dev
- OpenStack 之vmware機器遷移到openstack叢集
- OpenStack核心元件元件
- OpenStack整合DockerDocker
- openstack指定IP
- Oracle資料庫的SCN轉換成時間和時間轉換成SCNOracle資料庫
- OpenStack-雲端計算,虛擬化技術,初步認識OpenStack,瞭解OpenStack的結構部署以及OpenStack核心專案
- 重啟openstack的openstack-service命令不存在
- PHP 物件轉換成陣列PHP物件陣列