Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluation Error on require of puppet/util/rundeck_acl #125

Closed
johnzimm opened this issue Aug 25, 2015 · 29 comments
Closed

Evaluation Error on require of puppet/util/rundeck_acl #125

johnzimm opened this issue Aug 25, 2015 · 29 comments

Comments

@johnzimm
Copy link

Referencing: eaf068a

https://github.com/puppet-community/puppet-rundeck/blob/eaf068ac8a0d0502ea9a075821583800d30439df/lib/puppet/parser/functions/validate_rd_policy.rb#L1

Running Puppet OSS 4.2 with module cloned from the commit referenced above.

Full error message from the puppet agent run is...

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, Could not autoload puppet/parser/functions/validate_rd_policy: no such file to load -- puppet/util/rundeck_acl at /etc/puppetlabs/code/environments/rundeck/modules/rundeck/manifests/init.pp:169:3 on node mynodename.local
@dandunckelman
Copy link
Contributor

I get a similar error on Puppet v3.8.2.

Error:  Could not retrieve catalog from remote server: Error 400 on SERVER; Could not autoload puppet/parser/functions/validate_rd_policy: cannot load such file -- puppet/util/rundeck_acl on node rundeck-dev.local

I'm unsure if this is something that can be resolved by this module. In my research, I saw mention of ensuring your puppet.conf has pluginsync set to true on the master/client, which I validated to be properly setup in my case.

For now, I'm pinned to ref: 587c919

@liamjbennett
Copy link
Member

I think there are a couple of issues that might be causing this and I do belive it is a problem with the module.

I think it missing a module_functions declaration.

Also clearly it is missing tests to catch this problem in the first place.

@dandunckelman
Copy link
Contributor

@liamjbennett oh, that makes sense. Thanks!

@johnzimm
Copy link
Author

Anyone else experiencing this issue? Just saw a new version was tagged (v2.0.0).

@liamjbennett
Copy link
Member

I have been trying to replicate this in the beaker tests but have not been able to yet.

v2.0.0 was indeed released recently as there were many other changes people were asking for.

@liamjbennett
Copy link
Member

The two things I think the related to:

  1. the util file needs to be moved to the puppetx namespace
  2. we need to do a relative require on the file for the poor people still on ruby 1.8.7

@igalic
Copy link
Contributor

igalic commented Sep 21, 2015

ad 1) puppetx -> puppetcommunityx

@Tombar
Copy link

Tombar commented Oct 2, 2015

same for me on puppet 3.8.3 with plugingsync=true on both puppetmaster and node

any pointer on how to fix it? tried messing with the module structure without luck

thanks

M

@ak0ska
Copy link
Contributor

ak0ska commented Oct 7, 2015

We have the issue as well, Puppet 3.7.5, Ruby 2.0.0, CentOS7 on masters and agents.

@Tombar
I shamefully admit I did the following less-than-pretty change locally to get it working.

--- a/code/lib/puppet/parser/functions/validate_rd_policy.rb
+++ b/code/lib/puppet/parser/functions/validate_rd_policy.rb
@@ -1,4 +1,5 @@
-require 'puppet/util/rundeck_acl'
+#require 'puppet/util/rundeck_acl'
+File.expand_path('../../util/rundeck_acl', __FILE__)

In my defence official modules also do things like that. ;)

@JesperTerkelsen
Copy link

I also have this problem on my puppet server.

JesperTerkelsen pushed a commit to Tradeshift/puppet-rundeck that referenced this issue Oct 7, 2015
@Tombar
Copy link

Tombar commented Oct 9, 2015

I've tested @ak0ska suggestion from @JesperTerkelsen fork and it work as expected.

Please merge this change :)

Regards

M

@johnzimm
Copy link
Author

@JesperTerkelsen can you submit a pull request for your changes?

@Tombar
Copy link

Tombar commented Oct 14, 2015

Just submit PR #140 with @ak0ska and @JesperTerkelsen suggestions to speed up things.

Regards

M

@rooty0
Copy link
Contributor

rooty0 commented Oct 14, 2015

hey @liamjbennett,
so I was able to reproduce this issue with ruby

ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
Puppet 3.8.3

I was unable to reproduce the issue on my virtual machine with the same version of ruby (Puppet 3.7.4).

Wondering if it's really related to ruby's version

johnzimm pushed a commit to johnzimm/xx-puppet-module-rundeck that referenced this issue Oct 19, 2015
JesperTerkelsen pushed a commit to Tradeshift/puppet-rundeck that referenced this issue Oct 22, 2015
JesperTerkelsen pushed a commit to Tradeshift/puppet-rundeck that referenced this issue Oct 22, 2015
@JesperTerkelsen
Copy link

@johnzimm I made the pr.

JesperTerkelsen pushed a commit to Tradeshift/puppet-rundeck that referenced this issue Oct 29, 2015
JesperTerkelsen pushed a commit to Tradeshift/puppet-rundeck that referenced this issue Oct 29, 2015
@liamjbennett
Copy link
Member

Fixed with #146

@jyaworski
Copy link
Member

@liamjbennett I don't believe this is fixed. I pulled down the newest git, cleared all of my caches, and tried running it. Same error.

@liamjbennett
Copy link
Member

What version of puppet are you running? I tested it myself with 3.8.3 and ruby 1.9.3p484

@jyaworski
Copy link
Member

@liamjbennett failed with both 4.2 and 4.3.

@f3rr
Copy link

f3rr commented Dec 15, 2015

Same problem here

  • puppet 3.8.2
  • ruby 2.0.0

@icalvete
Copy link

Still broken

  • puppet 3.8.1
  • commit 9690333
  • ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]

DevOpsFu added a commit to DevOpsFu/puppet-rundeck that referenced this issue Feb 17, 2016
@ozbillwang
Copy link
Contributor

@liamjbennett

Can we re-open this ticket, it is still broken.

@ozbillwang
Copy link
Contributor

And the way @ak0ska commented on Oct 7, 2015 works. But please fix it in master branch directly.

@liamjbennett liamjbennett reopened this Feb 18, 2016
@KrisBuytaert
Copy link

+1 same issue here ;(

KrisBuytaert added a commit to KrisBuytaert/puppet-rundeck that referenced this issue Mar 2, 2016
@mkrakowitzer
Copy link

+1 same issue
puppet 4.3.2

@igalic
Copy link
Contributor

igalic commented May 7, 2016

is this issue resolved now after merging #201?

@KrisBuytaert
Copy link

@igalic looks like it solved it in my vagrant box ..

@igalic igalic closed this as completed May 23, 2016
@igalic
Copy link
Contributor

igalic commented May 23, 2016

thanks for the feedback @KrisBuytaert!

@kilianw
Copy link

kilianw commented Sep 30, 2016

FYI, Not as successful on:
CentOS 6.8
ruby 1.8.7
puppet v3.7.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests