From 08f363f676a5c978de0c5c671576140413d806f5 Mon Sep 17 00:00:00 2001 From: QiLiang Date: Tue, 10 Jan 2017 09:49:02 +0800 Subject: Fix multi-nics BM deploy network unreachable issue Configure OS_MGMT_NIC when openstack external network and mgmt network use different nics. Otherwise openstack mgmt is unreachabe from jumpserver, then compass cann't pass functest healthcheck. JIRA: - Change-Id: If156806d3b92933ac316f178d3eb2d0aaa9e1b4a Signed-off-by: QiLiang --- deploy/network.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/network.sh b/deploy/network.sh index 97d71880..558d690c 100755 --- a/deploy/network.sh +++ b/deploy/network.sh @@ -59,6 +59,13 @@ function save_network_info() sudo ip addr add $ip_info dev br-external sudo ip route add $route_info dev br-external fi + + # Configure OS_MGMT_NIC when openstack external network and mgmt network use different nics + if [[ x"$OS_MGMT_NIC" != "x" ]]; then + sudo ovs-vsctl --may-exist add-port br-external $OS_MGMT_NIC + sudo ip link set $OS_MGMT_NIC up + sudo ip addr flush $OS_MGMT_NIC + fi } function setup_bridge_external() -- cgit 1.2.3-korg