We used to pin statsd to version 1.0.0. James E. Blair has written a
few tests that now let us allow the current v2.0.1 version. To prevent
unexpected upgrades, we disallow v3.0.0.
Zuul scheduler only do very simple statsd operations. Testing with
statsd 2.0.1:
Reviewed: https:/ /review. openstack. org/27008 github. com/openstack- infra/zuul/ commit/ 5925743f36ee9d1 3b847127e236eb5 ffea1ed89e
Committed: http://
Submitter: Jenkins
Branch: master
commit 5925743f36ee9d1 3b847127e236eb5 ffea1ed89e
Author: Antoine Musso <email address hidden>
Date: Tue Apr 16 17:35:52 2013 +0200
soften statsd version requirement to allow v2
We used to pin statsd to version 1.0.0. James E. Blair has written a
few tests that now let us allow the current v2.0.1 version. To prevent
unexpected upgrades, we disallow v3.0.0.
Zuul scheduler only do very simple statsd operations. Testing with
statsd 2.0.1:
I have set up a basic listener:
listener$ netcat -l 127.0.0.1 -p 666 --udp
Then wrote the python script:
import extras try_import( 'statsd. statsd' )
statsd = extras.
statsd. incr('zuul. counter' ) timing( 'zuul.timer' , 1234) timing( 'zuul.timer' , 1) gaug:(' zuul.gauge' , 1234)
statsd.
statsd.
statsd.
Running it as: HOST='127. 0.0.1' STATSD_PORT=666 python statsd-test.py
STATSD_
The listener gets:
zuul. counter: 1|czuul. timer:1234| mszuul. timer:1| mszuul. gauge:1234| g
Sounds legit enough.
Fix bug #1169599 'Zuul should depends on statsd 2 or later'
Change-Id: I41b797d606d55e eda300e673b05c2 ae4442ce029