Page MenuHomePhabricator

deployment-cp* puppet broken by recent puppet change
Closed, ResolvedPublic

Description

When https://gerrit.wikimedia.org/r/c/operations/puppet/+/1319486 got merged, puppet runs on beta broke:

urbanecm@deployment-cp-text09:~$ sudo run-puppet-agent && sudo systemctl reload haproxy
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Function lookup() did not find a value for the name 'profile::lvs::realserver::ipip::ipip_src4' (file: /srv/puppet_code/environments/production/modules/profile/manifests/lvs/realserver/ipip.pp, line: 22) on node deployment-cp-text09.deployment-prep.eqiad1.wikimedia.cloud
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Event Timeline

FWIW I have no idea whether adding those values where I added them is a good long term fix. https://gerrit.wikimedia.org/r/c/operations/puppet/+/1040158 shows they possibly should be in puppet somewhere.

FWIW I have no idea whether adding those values where I added them is a good long term fix. https://gerrit.wikimedia.org/r/c/operations/puppet/+/1040158 shows they possibly should be in puppet somewhere.

Yeah I'm not too familiar with the beta cluster setup. But looking at the puppetization it doesn't inherit values from hieradata/common (where I had put these assuming that was a catch-all). Likely they can go into hieradata/cloud/eqiad1.yaml and hieradata/cloud/codfw1dev.yaml, but potentially the easier option is to set a default for them in ipip.pp itself. Let me check and see if I can work out what is the best fix.

Change #1352489 had a related patch set uploaded (by Cathal Mooney; author: Cathal Mooney):

[operations/puppet@production] LVS Realserver IPIP: add default values for source IPIP ranges

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

Change #1352489 merged by Cathal Mooney:

[operations/puppet@production] hieradata/cloud/eqiad1.yaml: add default IPIP source IP ranges

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

@Urbanecm_WMF I've added those vars to hieradata/cloud/eqiad1.yaml now which I think is the best place for them to be (along with the definitions which are causing the class to be loaded). So I think you can probably remove them from the cloud/instance-puppet repo where you added them, although likely they'll not cause any problems if they stay there too.

Urbanecm_WMF assigned this task to cmooney.

Thanks for the ping! I removed them from project puppet, puppet still runs fine:

urbanecm@deployment-cp-text09:~$ sudo run-puppet-agent
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for deployment-cp-text09.deployment-prep.eqiad1.wikimedia.cloud
Info: Applying configuration version '(1b8a938d4d) gitpuppet - rsyslog: send php8.5-fpm logs to Logstash'
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/File[/etc/varnish/uniques.d]: Not removing directory; use 'force' to override
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/File[/etc/varnish/uniques.d]/ensure: removed (corrective)
Notice: Applied catalog in 7.30 seconds
urbanecm@deployment-cp-text09:~$

Resolving!