----- Original Message ----- > From: "Jakov Sosic" <jso...@gmail.com> > To: "puppet-users" <puppet-users@googlegroups.com> > Sent: Tuesday, October 13, 2015 3:48:24 PM > Subject: [Puppet Users] Re: Puppet 3.8 to 4.2 migration issue...
> On 10/13/2015 04:45 PM, Jakov Sosic wrote: >> Hi guys, >> >> I'm having problems migrating from 3.8 to 4.2... >> >> >> # puppet agent -tv --tags snmp --noop >> Info: Retrieving pluginfacts >> Info: Retrieving plugin >> Info: Loading facts >> Error: Could not retrieve catalog from remote server: Error 400 on >> SERVER: Evaluation Error: Error while evaluating a Function Call, Error >> from DataBinding 'hiera' while looking up 'yum::conf::stage': >> (<unknown>): sequence entries are not allowed here at line 13 column 25 >> at >> /etc/puppetlabs/code/environments/production/modules/yum/manifests/init.pp:11:3 >> on node kickstart.neogov.net >> Warning: Not using cache on failed catalog >> Error: Could not retrieve catalog; skipping run The YAML parser in the newer ruby has changed and implements the spec a bit differently so this error is about malformed YAML - which could indeed have worked before. You can test all your yamls like: for i in $(find /etc/puppetlabs/code/hieradb -name \*.yaml) do /opt/puppetlabs/puppet/bin/ruby -r yaml -e "YAML.load(File.read('$i')) && puts('$i: OK') rescue puts('$i: NOT OK')" done change /etc/puppetlabs/code/hieradb to your hiera dir -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/342334533.230935.1444748825523.JavaMail.zimbra%40devco.net. For more options, visit https://groups.google.com/d/optout.