From 9fa445ab442d0f7d5636098c0426319eb9d7143d Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Mon, 7 Aug 2017 16:53:32 -0500 Subject: [PATCH] Fix -- Ceph in multinode gate This fix aims to address the multinode gate issues for IPs on the same subnet. Change-Id: If158f78acf4d5e32eb495354307a0e3e5343ef6e --- tools/gate/funcs/network.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gate/funcs/network.sh b/tools/gate/funcs/network.sh index 85dbecfcd3..edece01e29 100755 --- a/tools/gate/funcs/network.sh +++ b/tools/gate/funcs/network.sh @@ -76,6 +76,8 @@ function find_multi_subnet_range { if ! [ "$(ip_diff $X)" -eq "0" ]; then SUBMASK=$(((($X - 1 )) * 8)) break + elif [ $X -eq "4" ]; then + SUBMASK=24 fi done echo ${FIRST_IP_SUBNET%/*}/${SUBMASK}