Hi,
We've upgraded the module on our Puppetfile from v3.3.9 to v3.4.5, no other changes performed. When testing the new version Puppet fails
Expected Behavior
No changes should be triggered on the system and result should be successful
Actual Behavior
Gave some format to the message for easy reading:
[system]:~ # puppet agent -t --noop --environment xxxxx
Info: Using configured environment 'xxxxx'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Notice: /File[/opt/puppetlabs/puppet/cache/lib/puppet/parser/functions/build_cidr_array.rb]/ensure: defined content as '{md5}245147bc7342daa75660a1e674f16338'
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error:
Error while evaluating a Function Call, undefined method "encoding" for \#<ArgumentError: invalid address>
(file: /etc/puppetlabs/code/environments/xxxxx/modules/network/manifests/route.pp, line: 151, column: 14)
(file: /etc/puppetlabs/code/environments/xxxxx/modules/network/manifests/init.pp, line: 246) on node [system]
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Steps to Reproduce the Problem
- Change module version on Puppetfile from 3.3.9 to 3.4.5
- Run puppet agent
Specifications
Please add this info:
- Output of
facter -p on the failing node (at least the OS related facts)
Tested on SLES11.4 and SLES12.3:
{
architecture => "x86_64",
family => "Suse",
hardware => "x86_64",
name => "SLES",
release => {
full => "11.4",
major => "11",
minor => "4"
},
selinux => {
enabled => false
}
}
{
architecture => "x86_64",
family => "Suse",
hardware => "x86_64",
name => "SLES",
release => {
full => "12.3",
major => "12",
minor => "3"
},
selinux => {
enabled => false
}
}
- Version of Puppet and of the module
Module version already mentioned above. For the agent version:
- The relevant Puppet code and eventually Hiera data
Network data is provided from hiera:
network::interfaces_hash:
eth0:
ipaddress: 10.x.y.10
netmask: 255.255.255.0
eth1:
ipaddress: 172.w.z.20
netmask: 255.255.255.0
network::routes_hash:
default:
ipaddress:
- default
gateway:
- 10.x.y.1
netmask:
- '-'
Thanks and best regards
Hi,
We've upgraded the module on our Puppetfile from v3.3.9 to v3.4.5, no other changes performed. When testing the new version Puppet fails
Expected Behavior
No changes should be triggered on the system and result should be successful
Actual Behavior
Gave some format to the message for easy reading:
Steps to Reproduce the Problem
Specifications
Please add this info:
facter -pon the failing node (at least the OS related facts)Tested on SLES11.4 and SLES12.3:
{ architecture => "x86_64", family => "Suse", hardware => "x86_64", name => "SLES", release => { full => "11.4", major => "11", minor => "4" }, selinux => { enabled => false } } { architecture => "x86_64", family => "Suse", hardware => "x86_64", name => "SLES", release => { full => "12.3", major => "12", minor => "3" }, selinux => { enabled => false } }Module version already mentioned above. For the agent version:
Network data is provided from hiera:
Thanks and best regards