From 9325e4fc78d20d48dad87e03afed566c688aec8a Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 23 Sep 2015 16:53:59 +1000 Subject: [PATCH] Enable a fake statsd server for devstack testing Enable a fake statsd listener and export the variables to make nodepool report stats. This ensures we're covering the path of having this enabled during testing. Change-Id: I43d6b5d6fa26df489a025f580c7edaeac2bbad4a --- devstack/plugin.sh | 5 +++++ devstack/settings | 1 + 2 files changed, 6 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 3601607fc..c6796e6e5 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -264,6 +264,11 @@ function start_nodepool { # start gearman server run_process geard "geard -p 8991 -d" + # run a fake statsd so we test stats sending paths + export STATSD_HOST=localhost + export STATSD_PORT=8125 + run_process statsd "socat -u udp-recv:$STATSD_PORT -" + run_process nodepool "nodepoold --no-builder -c $NODEPOOL_CONFIG -s $NODEPOOL_SECURE -l $NODEPOOL_LOGGING -d" run_process nodepool-builder "nodepool-builder -c $NODEPOOL_CONFIG -d" : diff --git a/devstack/settings b/devstack/settings index 21f3dc995..1f457eb4a 100644 --- a/devstack/settings +++ b/devstack/settings @@ -11,5 +11,6 @@ SHADE_REPO_URL=${SHADE_REPO_URL:-https://git.openstack.org/openstack-infra/shade SHADE_REPO_REF=${SHADE_REPO_REF:-master} enable_service geard +enable_service statsd enable_service nodepool enable_service nodepool-builder