Issue #11014 has been updated by Michael Stahnke.

Assignee changed from Michael Stahnke to Josh Cooper



My Puppet Master
    [root@centos5-64 modules]# pwd
    /etc/puppetlabs/puppet/modules
    [root@centos5-64 modules]# ls -al
    total 48
    drwxr-xr-x 5 root root 4096 Nov 29 04:00 .
    drwxr-xr-x 6 root root 4096 Nov 22 12:37 ..
    drwxr-xr-x 3 root root 4096 Nov 22 19:43 apache_yum
    -rw-r--r-- 1 root root  111 Nov 22 12:00 documentation
    drwxr-xr-x 3 root root 4096 Nov 22 12:00 yum
    drwxr-xr-x 4 root root 4096 Nov 28 07:08 yummirror
    [root@centos5-64 modules]# 

Now run puppet on the agent when it is classified in the 'yum' class

    [root@centos6-32 ~]# puppet agent -t
    info: Retrieving plugin
    info: Loading facts in facter_dot_d
    info: Loading facts in facter_dot_d
    info: Caching catalog for centos6-32
    info: Applying configuration version '1322568103'
    notice: Finished catalog run in 1.16 seconds
    [root@centos6-32 ~]# 

now on the puppet master make the yum directory a symlink

    [root@centos5-64 modules]# mv yum my_other_folder
    [root@centos5-64 modules]# ls
    apache_yum  documentation  my_other_folder  yummirror
    [root@centos5-64 modules]# ln -s my_other_folder yum
    [root@centos5-64 modules]# ls
    apache_yum  documentation  my_other_folder  yum  yummirror
    [root@centos5-64 modules]# 


Now run the client 
    [root@centos6-32 ~]# puppet agent -t
    info: Retrieving plugin
    info: Loading facts in facter_dot_d
    info: Loading facts in facter_dot_d
    info: Caching catalog for centos6-32
    info: Applying configuration version '1322568203'
    notice: Finished catalog run in 0.82 seconds
    [root@centos6-32 ~]# 

Now use a symlink that is outside the module path instead

    [root@centos5-64 modules]# mv my_other_folder/ /root
    [root@centos5-64 modules]# ln -sf /root/my_other_folder yum
    [root@centos5-64 modules]# ls
    apache_yum  documentation  yum  yummirror
    [root@centos5-64 modules]# ls -al
    total 44
    drwxr-xr-x 4 root root 4096 Nov 29 04:04 .
    drwxr-xr-x 6 root root 4096 Nov 22 12:37 ..
    drwxr-xr-x 3 root root 4096 Nov 22 19:43 apache_yum
    -rw-r--r-- 1 root root  111 Nov 22 12:00 documentation
    lrwxrwxrwx 1 root root   21 Nov 29 04:04 yum -> /root/my_other_folder
    drwxr-xr-x 4 root root 4096 Nov 28 07:08 yummirror
    [root@centos5-64 modules]# 

Watch it fail
    [root@centos6-32 ~]# puppet agent -t
    info: Retrieving plugin
    info: Loading facts in facter_dot_d
    info: Loading facts in facter_dot_d
    err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Could not find class yum for centos6-32 on node centos6-32
    warning: Not using cache on failed catalog
    err: Could not retrieve catalog; skipping run
    [root@centos6-32 ~]# 
    
----------------------------------------
Bug #11014: Puppet Master uanble to find module if the directory is a symlink
https://projects.puppetlabs.com/issues/11014

Author: Michael Stahnke
Status: Needs More Information
Priority: Normal
Assignee: Josh Cooper
Category: server
Target version: 
Affected Puppet version: 2.7.6
Keywords: 
Branch: 


During development of a module, I had a git checkout in my home directory and 
symlinked it into /etc/puppet/modules.  Then I classified the output via 
dashboard.  I found that Puppet Master would not find the class/module since 
the module was a symlink.

I searched other tickets and didn't see this already filed, but it very well 
could be.  Testing on 2.7.6.




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to