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

commit 5868593634371290ad013e4a3005f25cb8d7e1fe broke the module for me #221

Closed
buzzdeee opened this issue Jan 24, 2020 · 6 comments
Closed

Comments

@buzzdeee
Copy link
Contributor

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: puppet-5.5.16
  • Ruby: ruby-2.6.5
  • Distribution: OpenBSD 6.6-current
  • Module version: git revision 5868593

How to reproduce (e.g Puppet code you use)

What are you seeing

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Resource type not found: Unix::Path (file: /etc/puppetlabs/code/environments/production/modules/unbound/manifests/stub.pp, line: 35, column: 3) on node

What behaviour did you expect instead

should just work

Output log

Any additional information you'd like to impart

seems git commit 5868593 introduced Unix::Path

where is that supposed to come from? looking at metadata.json, I see stdlib and concat, stdlib is at git revision ee1f0551e7564a15d85ef879eb1e83595388abd2 (metadata.json says 6.2.0), should be fine, and I guess Unix::Path doesn't come from concat.

@buzzdeee
Copy link
Contributor Author

removing the Unix::Path from stub.pp, it fails then with:

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, Failed to parse template unbound/stub.erb:
Filepath: /etc/puppetlabs/code/environments/production/modules/unbound/templates/stub.erb
Line: 4
Detail: uninitialized constant Puppet::Parser::TemplateWrapper::PuppetX
Did you mean? Puppet_X
PuppetDB
Puppet::Parser::TemplateWrapper::Puppetdb
(file: /etc/puppetlabs/code/environments/production/modules/unbound/manifests/stub.pp, line: 41, column: 16) (file: /etc/puppetlabs/code/environments/production/modules/profile/manifests/dnsserver.pp, line: 35) on node mynode
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

@zachfi
Copy link
Contributor

zachfi commented Jan 25, 2020

Hmm, it looks like the path reference should be Stdlib::Unixpath I suspect. I'll test the latest in my environment sometime soon.

@zachfi
Copy link
Contributor

zachfi commented Jan 25, 2020

#222 is incomplete. I'll come back.

@zachfi
Copy link
Contributor

zachfi commented Jan 26, 2020

Hi @buzzdeee, I believe #222 will solve the issue, can you confirm? Thanks for putting up the issue.

@buzzdeee
Copy link
Contributor Author

@xaque208
I tested #222 and it generally works for me.
Only note: before that I had the stub IP address as a string, now it requires an Array due to the loop in the template.
The stub.pp still allows Array and String. So either the stub.pp needs to be more strict, or the template should be more relaxed.

@b4ldr
Copy link
Member

b4ldr commented Feb 11, 2020

this was fixed in #222

@b4ldr b4ldr closed this as completed Feb 11, 2020
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

3 participants