Page MenuHomePhabricator

Puppet agent failure detected on instance deployment-cache-text08 in project deployment-prep
Closed, ResolvedPublic

Description

Common information

  • summary: Puppet agent failure detected on instance deployment-cache-text08 in project deployment-prep
  • alertname: PuppetAgentFailure
  • instance: deployment-cache-text08
  • job: node
  • project: deployment-prep
  • severity: warning

Firing alerts


  • summary: Puppet agent failure detected on instance deployment-cache-text08 in project deployment-prep
  • alertname: PuppetAgentFailure
  • instance: deployment-cache-text08
  • job: node
  • project: deployment-prep
  • severity: warning
  • Source

Event Timeline

bd808@deployment-cache-text08.deployment-prep.eqiad1:~$ sudo run-puppet-agent
Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for deployment-cache-text08.deployment-prep.eqiad1.wikimedia.cloud
Info: Applying configuration version '(c572aea585) gitpuppet - puppetserver: Generalize git-rebase fix to work for labs/private'
Notice: /Stage[main]/Prometheus::Varnishkafka_exporter/Service[prometheus-varnishkafka-exporter]/ensure: ensure changed 'stopped' to 'running' (corrective)
Info: /Stage[main]/Prometheus::Varnishkafka_exporter/Service[prometheus-varnishkafka-exporter]: Unscheduling refresh on Service[prometheus-varnishkafka-exporter]
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: Message from VCC-compiler:
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: Cannot read file 'browser-detection.inc.vcl' (No such file or directory)
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: ('/etc/varnish/misc-frontend.inc.vcl' Line 2 Pos 9)
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: include "browser-detection.inc.vcl";
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: --------###########################-
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: ('/etc/varnish/wikimedia_misc-frontend.vcl' Line 71 Pos 9)
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: include "misc-frontend.inc.vcl";
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: --------#######################-
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: Running VCC-compiler failed, exited with 2
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: VCL compilation failed
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: Command failed with error code 106
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: Executing: "/usr/bin/varnishadm -n frontend vcl.load vcl-24603810-87e0-4064-99fa-4aac764c4d03 /etc/varnish/wikimedia_misc-frontend.vcl"
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: Traceback (most recent call last):
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:   File "/usr/local/sbin/reload-vcl", line 205, in <module>
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:     main()
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:   File "/usr/local/sbin/reload-vcl", line 164, in main
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:     separate_vcl_ids = [load(vadm_cmd, vcl_file) for vcl_file in args.separate_vcl_files]
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:   File "/usr/local/sbin/reload-vcl", line 164, in <listcomp>
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:     separate_vcl_ids = [load(vadm_cmd, vcl_file) for vcl_file in args.separate_vcl_files]
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:   File "/usr/local/sbin/reload-vcl", line 149, in load
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:     do_cmd(vcl_load_cmd)
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:   File "/usr/local/sbin/reload-vcl", line 64, in do_cmd
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:     subprocess.check_call(cmd)
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:   File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns:     raise CalledProcessError(retcode, cmd)
Notice: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: subprocess.CalledProcessError: Command '['/usr/bin/varnishadm', '-n', 'frontend', 'vcl.load', 'vcl-24603810-87e0-4064-99fa-4aac764c4d03', '/etc/varnish/wikimedia_misc-frontend.vcl']' returned non-zero exit status 1.
Error: '/usr/local/sbin/reload-vcl -n frontend -f /etc/varnish/wikimedia_text-frontend.vcl -d 2 -a -s /etc/varnish/wikimedia_misc-frontend.vcl && (rm /var/tmp/reload-vcl-failed-frontend; true)' returned 1 instead of one of [0]
Error: /Stage[main]/Profile::Cache::Varnish::Frontend/Varnish::Instance[text-frontend]/Exec[retry-load-new-vcl-file-frontend]/returns: change from 'notrun' to ['0'] failed: '/usr/local/sbin/reload-vcl -n frontend -f /etc/varnish/wikimedia_text-frontend.vcl -d 2 -a -s /etc/varnish/wikimedia_misc-frontend.vcl && (rm /var/tmp/reload-vcl-failed-frontend; true)' returned 1 instead of one of [0] (corrective)
Info: Stage[main]: Unscheduling all events on Stage[main]
Notice: Applied catalog in 16.58 seconds

Yeah I missed this in the previous fix. I am going to take this tomorrow since now essentially we have to guard the includes as well.

ssingh claimed this task.

Sorry this took a while but this should now be resolved. Thanks to Giuseppe for taking care of it in https://gerrit.wikimedia.org/r/c/operations/puppet/+/1198424, which we will build on further as required, with Traffic responsible for ensuring parity.