From 2d4e2178fe356824200a6108360f4abe10fdcc68 Mon Sep 17 00:00:00 2001 From: Colleen Murphy Date: Tue, 10 Jul 2018 13:47:42 +0200 Subject: [PATCH] Pin statsd to version 2.1.2 The os-performance-tools library currently caps its statsd dependency at <3.0[1]. If we try to install latest, puppet will succeed at installing it in the first place, but upon the next run it will see that it is not using the latest and try to upgrade and fail due to the cap. Add the pin so that it doesn't try and fail to install something it can't. [1] http://git.openstack.org/cgit/openstack/os-performance-tools/tree/requirements.txt?id=d96d5145fa5facdfd7a4e5ea2811948f0efd465e#n7 Change-Id: I37303d3b23cf5c387511292a8e128faa1f9df9ae --- manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 785288f..8bc2042 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -95,7 +95,11 @@ class subunit2sql ( if ! defined(Package['statsd']) { package { 'statsd': - ensure => latest, + # NOTE(cmurphy) If this is not pinned, the openstack_pip provider will + # attempt to install latest and conflict with the <3 cap from + # os-performance-tools. Unpin this when os-performance-tools raises its + # cap. + ensure => '2.1.2', provider => openstack_pip, require => Class['pip'] }