diff options
author | QiLiang <liangqi1@huawei.com> | 2017-01-10 09:49:02 +0800 |
---|---|---|
committer | QiLiang <liangqi1@huawei.com> | 2017-01-10 10:05:27 +0800 |
commit | 08f363f676a5c978de0c5c671576140413d806f5 (patch) | |
tree | 914ad2fc0563b82d7bcbca44c924e6a39ec0dbaa | |
parent | cec54463608e42cf2cbd746a4078ecc8af2c22da (diff) |
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 <liangqi1@huawei.com>
-rwxr-xr-x | deploy/network.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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() |