The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Bug #11534

Puppet should report filesystem permission errors instead of class not found errors

Added by Florian Koch over 2 years ago. Updated over 2 years ago.

Status:AcceptedStart date:12/21/2011
Priority:LowDue date:
Assignee:-% Done:

0%

Category:error reporting
Target version:-
Affected Puppet version:2.7.6 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

Hi,

if puppet can not access a folder/subfolder in a module, i get the error

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class yum::repos::oracle for test.example.org at /var/lib/puppet/environments/produktion/yum/manifests/init.pp:11 on node test.example.org

the structure is (removed the unneeded parts)

tree -p /var/lib/puppet/environments/produktion/yum/manifests
/var/lib/puppet/environments/produktion/yum/manifests
├── [-rw-r--r--]  init.pp
├── [drwxr--r-x]  repos
│   ├── [-rw-r--r--]  epel.pp
│   ├── [-rw-r--r--]  oracle.pp

The folder repos is missing the x bit for other, so puppet can not change into ,and should report a Permission Denied error

If i import the classes from repos in the init.pp with import “repos/*” i get

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Permission denied – /var/lib/puppet/environments/produktion/yum/manifests/repos/epel.pp at /var/lib/puppet/environments/produktion/yum/manifests/init.pp:3 on node test.example.org

rgds flo

History

#1 Updated by Florian Koch over 2 years ago

Hi,

any news here or more infos needed?

rgds Flo

#2 Updated by Anonymous over 2 years ago

  • Status changed from Unreviewed to Accepted
  • Priority changed from Normal to Low

Thanks for the report, Florian. I am sorry to took so long to get a first look – I agree that this is a good change, and we will slot it into the overall process.

While the error is kind of misleading, Ruby actually makes it harder to get useful information than we would like, and the overall priority of improving this is not that high. I can’t give any sort of commitment about when it will be fixed, but it absolutely is a problem and we will get to it.

Also available in: Atom PDF