| If puppet's indirected routes handler attempts to render a model, e.g. catalog, but it fails, log a warning that fallback is occurring. Currently we log a message at debug which doesn't help anyone: https://github.com/puppetlabs/puppet/blob/10f53856a0e905c8d9deb4bf9abbc99b129a3d66/lib/puppet/network/http/api/indirected_routes.rb#L195 It should be replaced with something like this. It's important to capture the name/key so we know which hosts' catalog is causing the issue:
rescue Puppet::Network::FormatHandler::FormatError => err |
Puppet.warning("Failed to serialize #{model} for #{key} to #{format}") |
false |
end
|
Later, we'll introduce a setting to disable fallback PUP-10928. |