Summary: using the word 'export' as a definition in a parameter seems to have stopped working somewhere between puppet-agent 1.2.2 and puppet-agent 1.3.5. Is this intentional/documented somewhere, or is it a bug? Has anybody else seen this?
More details: I'm evaluating puppet-agent 1.3.5, upgrading from 1.2.2, on RHEL systems. The first machine I tested on failed to run right away, with an error like this: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Invalid export in P_nfs_server::Exports::Line[/foo]: {"foo"=>"ro", "bar"=>"rw", ...} is not a resource on node foobar.fnal.gov The data structure in mind comes from hiera, and calls a definition (with create_resources) that looks like this: define p_nfs_server::exports::line ( Enum['present', 'absent'] $ensure = present, Hash $export = {} ) { [...] } If I rename 'export' to 'exports' across the board, then everything suddenly works. That is, this is fine: define p_nfs_server::exports::line ( Enum['present', 'absent'] $ensure = present, Hash $exports = {} ) { [...] } So is this a bug, or known behaviour? Again, this wasn't an issue back in 1.2.2. It sure seems like the word 'export' is the kind of word that could end up on a 'reserved' list somewhere. Side note: if I upgrade the client first, before the server (so I'm running client 1.3.5 against server 1.2.2), I get this error instead: Error: Failed to apply catalog: Parameter export failed on P_nfs_server::Exports::Line[/foo]: Puppet::Resource.new does not take a hash as the first argument. Did you mean (nil, nil) ? And I haven't tried 1.3.5 vs 1.3.5 yet because, well, this is still curious. - Tim Skirvin (tskir...@fnal.gov) -- HPC Systems Administrator / Developer http://www.linkedin.com/in/tskirvin USCMS-T1 Collaboration Fermilab ECF -- 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/20160225215612.GW34112%40fnal.gov. For more options, visit https://groups.google.com/d/optout.
pgpRVEvJxFSWP.pgp
Description: PGP signature