Issue #4489 has been updated by Sebastian Boehm.

The bug Joerg is referring to was introduced in 
[2cf7222df889981313c6955cc9220ce160dd90f6](http://github.com/reductivelabs/puppet/commit/2cf7222df889981313c6955cc9220ce160dd90f6)
 with client-side file streaming.

Markus changed the terminus selection code with the fix above but it seems to 
me that `each_chunk_from` (and hence `write`) in 
`lib/puppet/type/file/content.rb` does not actually use the terminus. (Although 
I'm not exactly sure I've managed to wrap my head around the way indirectors 
and termini work in this case.)

The `local?` method in `lib/puppet/type/file/source.rb` uses a hardcoded check 
for "file" in the URI to determine whether a file source is local, which is why 
it never returns true for puppet URIs -- even with "puppet apply".

So when `each_chunk_from` finally calls `chunk_file_from_source` in 
`lib/puppet/type/file/content.rb` an HTTP request is issued which subsequently 
fails with the getaddrinfo error.

It would be great if you could get this fixed for 2.6.1 since it effectively 
renders file sources in standalone puppet useless.

### References ###
[each_chunk_from](http://github.com/reductivelabs/puppet/blob/21afb51a1b84116b2a906a6959ae588f45135104/lib/puppet/type/file/content.rb#L164-174)
 seems to be a good starting point to investigate this bug further.
----------------------------------------
Bug #4489:   standalone puppet file source error "Could not evaluate: 
getaddrinfo: ..."  
http://projects.puppetlabs.com/issues/4489

Author: Mathias Gug
Status: Closed
Priority: Immediate
Assignee: Markus Roberts
Category: fileserving
Target version: 2.6.1
Affected version: 2.6.0
Keywords: 
Branch: http://github.com/MarkusQ/puppet/tree/ticket/2.6.x/4489


When running the puppet command with the following code:

<pre>
file { "/tmp/bobics_fileserver": source => 
"puppet:///modules/bobics/bobics_fileserver"}
</pre>

I get the error:
<pre>
err: /Stage[main]/Bobics/File[/tmp/bobics_fileserver]: Could not evaluate: 
getaddrinfo: Name or service not known Could not retrieve file metadata for 
puppet:///modules/bobics/bobics_fileserver: getaddrinfo: Name or service not 
known at /home/debian/puppet_sample/ modules/bobics/manifests/init.pp:8 
</pre>

See 
http://groups.google.com/group/puppet-users/browse_thread/thread/626e7334b437f4fc/ac3434e23105b2a4.

This seems to be a regression in 2.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