Fix -- Ceph in multinode gate

This fix aims to address the multinode gate issues for IPs on the
same subnet.

Change-Id: If158f78acf4d5e32eb495354307a0e3e5343ef6e
This commit is contained in:
Steve Wilkerson 2017-08-07 16:53:32 -05:00
parent dbfbbda826
commit 9fa445ab44

View File

@ -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}