Errored hostserror for corruption.ocf.berkeley.edu
```text
W, [2023-11-22T23:44:32.065735 #3203092] WARN -- : Puppet command failed: STDOUT:
STDERR:
Warning: The function 'hiera_include' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/7.26/deprecated_language.html
(file & line not available)
Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Could not call 'find' on 'catalog': Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Could not call 'find' on 'catalog': Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Try 'puppet help catalog compile' for usage
W, [2023-11-22T23:44:32.066589 #3203092] WARN -- : Failed build_catalog for origin/master validation: OctocatalogDiff::Errors::CatalogError Catalog failed: Warning: The function 'hiera_include' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/7.26/deprecated_language.html
(file & line not available)
Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Could not call 'find' on 'catalog': Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Could not call 'find' on 'catalog': Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Try 'puppet help catalog compile' for usage
# terminated with exception (report_on_exception is true):
/usr/lib/ruby/2.7.0/open3.rb:287:in `read': stream closed in another thread (IOError)
from /usr/lib/ruby/2.7.0/open3.rb:287:in `block (2 levels) in capture3'
# terminated with exception (report_on_exception is true):
/usr/lib/ruby/2.7.0/open3.rb:288:in `read': stream closed in another thread (IOError)
from /usr/lib/ruby/2.7.0/open3.rb:288:in `block (2 levels) in capture3'
/usr/lib/ruby/vendor_ruby/octocatalog-diff/util/catalogs.rb:259:in `catalog_validator': Catalog failed: Warning: The function 'hiera_include' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/7.26/deprecated_language.html (OctocatalogDiff::Errors::CatalogError)
(file & line not available)
Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Could not call 'find' on 'catalog': Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Could not call 'find' on 'catalog': Evaluation Error: Operator '[]' is not applicable to an Undef Value. (file: /tmp/ocd-ipc-20231122-3203012-p6adp5/ocd-builddir-20231122-3203092-cilrsi/environments/production/modules/ocf_hpc/manifests/init.pp, line: 19, column: 16) on node corruption.ocf.berkeley.edu
Error: Try 'puppet help catalog compile' for usage
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:39:in `call'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:39:in `validate'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:202:in `execute_task'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:119:in `block (2 levels) in run_tasks_parallel'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:117:in `fork'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:117:in `block in run_tasks_parallel'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:114:in `each'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:114:in `each_with_index'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:114:in `run_tasks_parallel'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/parallel.rb:94:in `run_tasks'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/catalogs.rb:92:in `build_catalog_parallelizer'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/util/catalogs.rb:29:in `catalogs'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/api/v1/catalog-diff.rb:34:in `catalog_diff'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/api/v1.rb:19:in `catalog_diff'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/cli.rb:151:in `run_octocatalog_diff'
from /usr/lib/ruby/vendor_ruby/octocatalog-diff/cli.rb:125:in `cli'
from /usr/bin/octocatalog-diff:34:in `'
```
Changed hostsdiff for death.ocf.berkeley.edu
```diff
*******************************************
File[/opt/share/vhost-web.jinja] =>
parameters =>
content =>
@@ -31,4 +31,7 @@
{% else %}
DocumentRoot {{vhost.docroot}}
+ {% for name, value in vhost.response_headers.items() %}
+ Header set {{name}} {{value | tojson}}
+ {% endfor %}
_
*******************************************
File[/usr/local/bin/build-vhosts] =>
parameters =>
content =>
@@ -146,4 +146,11 @@
_
@property
+ def response_headers(self):
+ result = {}
+ if 'noindex' in self.additional_rules:
+ result['X-Robots-Tag'] = 'noindex'
+ return result
+
+ @property
def websocket_locations(self):
if self.bind_type == 'socket' and 'ws' in self.additional_rules:
@@ -186,6 +193,6 @@
if ws_match:
additional_rules.setdefault('ws', []).append(ws_match.group(1))
- elif flag == '301':
- additional_rules['301'] = True
+ else:
+ additional_rules[flag] = True
_
# primary vhost
*******************************************
```
diff for vampires.ocf.berkeley.edu
```diff
*******************************************
File[/usr/local/bin/build-vhosts] =>
parameters =>
content =>
@@ -146,4 +146,11 @@
_
@property
+ def response_headers(self):
+ result = {}
+ if 'noindex' in self.additional_rules:
+ result['X-Robots-Tag'] = 'noindex'
+ return result
+
+ @property
def websocket_locations(self):
if self.bind_type == 'socket' and 'ws' in self.additional_rules:
@@ -186,6 +193,6 @@
if ws_match:
additional_rules.setdefault('ws', []).append(ws_match.group(1))
- elif flag == '301':
- additional_rules['301'] = True
+ else:
+ additional_rules[flag] = True
_
# primary vhost
*******************************************
```
Unaffected hosts
```
acid.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bermudatriangle.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
biohazard.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
chaos.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
fallingrocks.ocf.berkeley.edu
famine.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
fraud.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
implosion.ocf.berkeley.edu
invasion.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
phantom.ocf.berkeley.edu
plague.ocf.berkeley.edu
quarantine.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tornado.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
venom.ocf.berkeley.edu
volcano.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
windshear.ocf.berkeley.edu
```
For https://github.com/ocf/etc/pull/558