When running wmf-auto-reimage for both cache and lvs hosts, the first puppet run seems to consistently fail at a certain point with Could not evaluate: Could not retrieve file metadata for [...]: execution expired.
Puppet needs to be re-run manually on the host being reinstalled in order for wmf-auto-reimage to be made to continue. The execution expires while retrieving the metadata for wmf_ca_2017_2020.crt on cache hosts and /etc/rsyslog.d/10-puppet-agent.conf on lvs hosts.
See for example the following occurrences of 'execution expired' on neodymium:/var/log/wmf-auto-reimage:
201804180747_vgutierrez_29945_lvs3003_esams_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201808021947_bblack_13294_cp1079_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201805021045_vgutierrez_23768_lvs2002_codfw_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201808022051_bblack_30024_cp1089_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201804180936_vgutierrez_28436_lvs2005_codfw_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201804300923_vgutierrez_12807_lvs3001_esams_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201808021947_bblack_13297_cp1082_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808021722_bblack_13689_cp1076_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808022051_bblack_30021_cp1086_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201804171415_vgutierrez_28018_lvs3004_esams_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201808060952_ema_27699_cp5003_eqsin_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808022051_bblack_30022_cp1087_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201805021250_vgutierrez_20476_lvs2001_codfw_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201808022051_bblack_30018_cp1083_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201804190753_vgutierrez_21775_lvs4006_ulsfo_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201807311510_ema_11657_cp3044_esams_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808022051_bblack_30019_cp1084_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201804181047_vgutierrez_12072_lvs2004_codfw_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201808011535_ema_20473_cp5007_eqsin_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808021947_bblack_13293_cp1078_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808022051_bblack_30023_cp1088_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808021947_bblack_13292_cp1077_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808021947_bblack_13296_cp1081_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201804300706_vgutierrez_14698_lvs3002_esams_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Base::Puppet/Rsyslog::Conf[puppet-agent]/File[/etc/rsyslog.d/10-puppet-agent.conf]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/rsyslog.d/puppet-agent.conf: execution expiredESC[0m 201808031349_bblack_13823_cp1085_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808022051_bblack_30025_cp1090_eqiad_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m 201808011535_ema_20472_cp5006_eqsin_wmnet_cumin.out:^M ^MESC[AESC[1;31mError: /Stage[main]/Profile::Base::Certificates/Sslcert::Ca[wmf_ca_2017_2020]/File[/usr/local/share/ca-certificates/wmf_ca_2017_2020.crt]: Could not evaluate: Could not retrieve file metadata for puppet:///modules/base/ca/wmf_ca_2017_2020.crt: execution expiredESC[0m
I could not find anything interesting while inspecting the apache logs on the relevant puppetmasters.