From 183d1d5ff162a353a7d90c10c57ddf9ca0359fa1 Mon Sep 17 00:00:00 2001
From: Jim Rollenhagen <jim@jimrollenhagen.com>
Date: Tue, 4 Oct 2016 11:39:45 -0400
Subject: [PATCH] Set SUBNETPOOL_PREFIX_V4 to FIXED_RANGE

The default for SUBNETPOOL_PREFIX_V4 in devstack causes external
connectivity to be mostly broken in osic-cloud1 nodes. IPA relies on
external activity to build images, and osic-cloud1 is pretty prevalent
for running CI jobs, therefore this breaks IPA CI.

Setting this to the same range as FIXED_RANGE should eliminate this, or
at least reduce the probability of it happening from 1:(size of /8) to
1:(size of /24).

This should be reverted when the actual problem is fixed in devstack.

Related-Bug: #1629133
Change-Id: I8f0e5405f3e2d6e35418c73f610ac6b779dd75e5
---
 devstack/settings | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devstack/settings b/devstack/settings
index 1de172dec6..11be91e05d 100644
--- a/devstack/settings
+++ b/devstack/settings
@@ -4,3 +4,7 @@ enable_service ironic ir-api ir-cond
 # TODO(vsaienko) remove once ironic-multitenant job variable and ironic
 # developer documentation are updated.
 Q_USE_PROVIDERNET_FOR_PUBLIC=False
+
+# TODO(jroll) this hacks around a bug, remove when fixed in devstack
+# https://bugs.launchpad.net/devstack/+bug/1629133
+SUBNETPOOL_PREFIX_V4=$FIXED_RANGE