===============HA Neutron設定=======================
/etc/neutron/neutron.conf
[Default]
l3_ha = True 開啟ha功能
dhcp_agents_per_network = 2 定義網路中dhcp agent數量
===============以下在Controller執行=======================
neutron router-create –tenant-id $(keystone tenant-list | awk ‘/admin/ {print $2}’) –ha True ha-router 建立ha router
neutron router-interface-add ha-router demo-subnet
neutron router-gateway-set ha-router ext-net
接上內部NAT 以及 Gateway
neutron l3-agent-list-hosting-router ha-router 確認備援列表
net與subnet 會自動建立 HA network tenant 用於router間溝通
for port_id in $(neutron port-list | awk ‘/HA port/ {print $2}’); do neutron port-show ${port_id}; done 用於查看router間詳細溝通狀況
============Network Node============
/var/lib/neutron/ha_confs/ROUTER_ID
keepalived.conf 有詳細router IP與interface資訊
(可以與ip netns exec ROUTER_ID ip addr 做比對)
state 當前router狀態 backup or master
參考資料
搶先發佈留言