Page MenuHomePhabricator

prometheus-pdns-exporter for Jessie?
Closed, ResolvedPublic

Description

On my newly built (Jessie) designate/pdns server, I'm getting these puppet errors:

Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install prometheus-pdns-exporter' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package prometheus-pdns-exporter
Error: /Stage[main]/Packages::Prometheus_pdns_exporter/Package[prometheus-pdns-exporter]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install prometheus-pdns-exporter' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package prometheus-pdns-exporter

I'm guessing that's a package that exists on stretch and Trusty but not on Jessie. Is it something we need, and is it easy to backport?

Event Timeline

For both questions the answer is "yes", it is something we wrote and should be trivial to backport to jessie/stretch. I believe a simple rebuild for stretch/jessie will do that.

Mentioned in SAL (#wikimedia-operations) [2018-08-16T11:37:41Z] <arturo> T201473 copy prometheus-pdns-exporter from trusty-wikimedia to jessie-wikimedia in reprepro

Change 453112 had a related patch set uploaded (by Arturo Borrero Gonzalez; owner: Arturo Borrero Gonzalez):
[operations/debs/prometheus-pdns-exporter@master] d/rules: prevent dh_installinit from installing sysvinit files

https://gerrit.wikimedia.org/r/453112

Mentioned in SAL (#wikimedia-operations) [2018-08-16T12:08:06Z] <arturo> T201473 install a new version of prometheus-pdns-exporter (0.3) into jessie-wikimedia, due to errors in the postinst script

Change 453115 had a related patch set uploaded (by Arturo Borrero Gonzalez; owner: Arturo Borrero Gonzalez):
[operations/debs/prometheus-pdns-exporter@master] d/changelog: generate new entry for v0.3

https://gerrit.wikimedia.org/r/453115

Change 453112 merged by Arturo Borrero Gonzalez:
[operations/debs/prometheus-pdns-exporter@master] d/rules: prevent dh_installinit from installing sysvinit files

https://gerrit.wikimedia.org/r/453112

Change 453115 merged by Arturo Borrero Gonzalez:
[operations/debs/prometheus-pdns-exporter@master] d/changelog: generate new entry for v0.3

https://gerrit.wikimedia.org/r/453115

Done:

aborrero@cloudservices1003:~ $ sudo puppet agent -tv
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for cloudservices1003.wikimedia.org
Notice: /Stage[main]/Base::Environment/Tidy[/var/tmp/core]: Tidying 0 files
Info: Applying configuration version '1534421364'
Notice: /Stage[main]/Packages::Prometheus_pdns_exporter/Package[prometheus-pdns-exporter]/ensure: created
Notice: /Stage[main]/Profile::Prometheus::Pdns_exporter/Ferm::Service[prometheus-pdns-exporter]/File[/etc/ferm/conf.d/10_prometheus-pdns-exporter]/ensure: defined content as '{md5}7e29ead5c24ccd84f95977e9d3c2e386'
Info: /Stage[main]/Profile::Prometheus::Pdns_exporter/Ferm::Service[prometheus-pdns-exporter]/File[/etc/ferm/conf.d/10_prometheus-pdns-exporter]: Scheduling refresh of Service[ferm]
Notice: /Stage[main]/Ferm/Service[ferm]: Triggered 'refresh' from 1 events
Notice: Applied catalog in 17.12 seconds