Page MenuHomePhabricator

puppet compiler fails on releases1001.eqiad.wmnet due to lack of Service[bacula-director]
Closed, InvalidPublic

Description

https://puppet-compiler.wmflabs.org/compiler1001/224/releases1001.eqiad.wmnet/

Warning: Scope(Class[Raid]): no raid controller detected
...
Warning: You cannot collect exported resources without storeconfigs being set; the export is ignored at /srv/jenkins-workspace/puppet-compiler/224/production/src/modules/bacula/manifests/client/job.pp:35:5
Warning: Could not find resource 'Service[bacula-director]' in parameter 'notify'
   (at /srv/jenkins-workspace/puppet-compiler/224/production/src/modules/bacula/manifests/client.pp:74)
Warning: Could not find resource 'File[/etc/bacula/jobs.d]' in parameter 'require'
   (at /srv/jenkins-workspace/puppet-compiler/224/production/src/modules/bacula/manifests/client/job.pp:42)

Running the puppet compiler for https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/523147/ which targets releases1001.eqiad.wmnet.

Event Timeline

Change 523161 had a related patch set uploaded (by Hashar; owner: Hashar):
[operations/puppet@production] Test compiler for releases1001.eqiad.wmnet

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

On releases1001.eqiad.wmnet in /var/lib/puppet/state/state.yaml there is a Service[bacula-fd] but no Service[bacula]. Then puppet seems to work just fine on the host.

hashar renamed this task from puppet compiler fails on releases1001.eqiad.wmnet to puppet compiler fails on releases1001.eqiad.wmnet due to lack of Service[bacula-director].Jul 15 2019, 1:14 PM
hashar added a project: SRE.
akosiaris subscribed.
Warning: Could not find resource 'Service[bacula-director]' in parameter 'notify'
   (at /srv/jenkins-workspace/puppet-compiler/224/production/src/modules/bacula/manifests/client.pp:74)
Warning: Could not find resource 'File[/etc/bacula/jobs.d]' in parameter 'require'
   (at /srv/jenkins-workspace/puppet-compiler/224/production/src/modules/bacula/manifests/client/job.pp:42)

These are warning, not error. I don't think it fails because of those. In fact https://puppet-compiler.wmflabs.org/compiler1001/224/releases1001.eqiad.wmnet/ fails because of

Error: Evaluation Error: Error while evaluating a Function Call, Could not find data item profile::mediawiki::php::enable_fpm in any Hiera data file and no default supplied at /srv/jenkins-workspace/puppet-compiler/224/change/src/modules/profile/manifests/mediawiki/php.pp:19:27 on node releases1001.eqiad.wmnet
Error: Evaluation Error: Error while evaluating a Function Call, Could not find data item profile::mediawiki::php::enable_fpm in any Hiera data file and no default supplied at /srv/jenkins-workspace/puppet-compiler/224/change/src/modules/profile/manifests/mediawiki/php.pp:19:27 on node releases1001.eqiad.wmnet
Error: Failed to compile catalog for node releases1001.eqiad.wmnet: Evaluation Error: Error while evaluating a Function Call, Could not find data item profile::mediawiki::php::enable_fpm in any Hiera data file and no default supplied at /srv/jenkins-workspace/puppet-compiler/224/change/src/modules/profile/manifests/mediawiki/php.pp:19:27 on node releases1001.eqiad.wmnet

And the bacula related warnings are because the exported resources at are being ignored as

Warning: You cannot collect exported resources without storeconfigs being set; the export is ignored at /srv/jenkins-workspace/puppet-compiler/224/production/src/modules/bacula/manifests/client/job.pp:35:5 says and of course the dependencies are tried on the wrong node due to that. It's fine however and fully expected.

I am gonna resolve this as Invalid, but feel free to reopen in case I have misunderstood something

*facepalm* I was debugging using the production branch catalog instead of the change catalog. Thank you !!!!! :-]

Change 523161 abandoned by Hashar:
Test compiler for releases1001.eqiad.wmnet

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