Issue #11968 has been updated by Kelsey Hightower.

Steve,

Thanks for reporting this issue. I do have one quick question that will help us 
improve the error message. 

What would be a helpful error message in this case? Would something suggesting 
that you should use the `links => follow` and the fact that we do not follow 
soft links by default help?

Thanks.
----------------------------------------
Bug #11968: Errors from Exec resources when source param of a File resource is 
a softlink
https://projects.puppetlabs.com/issues/11968

Author: Steve Shipway
Status: Unreviewed
Priority: Normal
Assignee: 
Category: file
Target version: 
Affected Puppet version: 2.7.6
Keywords: 
Branch: 


If the location pointed to by source=> in a file{} resource is a softlink, and 
you do not have links=>follow, then you get some wierd errors relating to 
getcwd appearing.  This is understandable but it should probably give a more 
helpful error message.

I have reliably duplicated this with 
    
    file { "/usr/local/nrpe":
    ensure=>present, replace=>yes, recurse=>true, recurselimit=>2,
    backup=>false, force=>true,
    ignore=>'.svn', 
    owner=>root, group=>root, mode=>0755,
    sourceselect=>all,
    source=>[
    "puppet:///modules/nrpe/plugins/$operatingsystem.$architecture",
    ],
    }

If the puppet: link points to a softlink you get all the Exec errors about 
getcwd.  Replacing with a real directory, or using links=>follow, and all is OK.

    err: /Stage[main]/Nrpe/File[/usr/local/nrpe]/ensure: change from directory 
to link failed: Could not set 'link on ensure:
    No such file or directory - getcwd at 
/etc/puppet/dev/modules/nrpe/manifests/init.pp:92
    err: /Stage[main]/Nrpe/Exec[etc-services-nrpe]: Could not evaluate: No such 
file or directory - getcwd
    
All the additional errors are with Exec resources.




-- 
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