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
This commit is contained in:
Ian Wienand 2015-09-23 16:53:59 +10:00
parent a1a081014d
commit 9325e4fc78
2 changed files with 6 additions and 0 deletions

View File

@ -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"
:

View File

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