Closed Kyrremann closed 7 years ago
Can you try it with the newest release, if this is still happening for you?
Just tried with puppetlabs/stdlib-4.14.0
and saz/sudo-4.1.0
, and got a slightly new error.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, undefined method `repeated_param' for #<Puppet::Functions::DispatcherBuilder:0x7ff94317b6e8> at /usr/share/puppet/modules/sudo/manifests/init.pp:106:3 on node agent.site.com
I tried to grep after the usage of repeated_param
and can't find it in your code. So I'm thinking maybe it's just on my side. Or if it's because we're using Puppet 3.7.1
. Maybe we need to switch to Puppet 4
or higher to get it to work.
PS: We're still using the environments-folders, but the modules have been moved outside.
A quick update, as I'm testing some more. It seems like it's stdlib that causes the problem. I'm using latest sudo
now, and testing each stdlib from 4.4.0 and up.
Another update. I've tested some more, and it seems like it may be the order of updating the modules affect them. As I had sudo-4.1.0 running, and then tried stdlib-4.14.0 by an accident (as forge.puppet.com didn't update their download link when I switched versions), and now it seems like it's working.
I need to look more into it, but won't have time before later this week. I'll keep you updated.
Any news on this? Anything I can help with?
Managed to do a test now. It seems like it was the "order" of upgrade the plugins that created the error. This time I first upgraded stdlib-4.14.0 and the compiled the catalog, then I upgraded sudo-4.1.0 and compiled the same catalog again. And it all works good.
So my guess is that somehow when I upgraded them at the same time, the compiling didn't work in the correct order or something.
I think that we can close the issue.
Thanks for the information.
A quick update. I merged my code into our Master, and it broke on our production servers. And the reason wasn't the order of compiling, but the version of Puppet we're running. I had forgotten that we had updated Puppet in test, and not production.
We're running 3.8.7 in test, but only 3.7.1 in production.
And it's failing on 3.8.7 or 3.7.1?
It's failing on 3.7.1. Can understand that it wasn't that clear from my comment.
Updating to 3.8.7
fixed this for us as well
Using latest
stdlib-4.13.1
andsudo-3.1.0
gives me the following error:I've tried other combinations of the libraries, but always seems to end up with a error. I've just switched to the new directory layout with environments, and it was working fine with the old layout.
Similar error with
sudo-3.0.9
.