Issue #18635 has been updated by Garrett Honeycutt.

Not a dupe. #17191 breaks facter and this ticket shows how puppet breaks 
without #17191 being addressed. My patch in #17191 fundamentally changes what 
is done with ipaddress (returning localhost instead of not returning the fact), 
which as a by product fixes Puppet. Not sure why we need this fact to be set in 
the first place, but fixing #17191 will also fix this bug.
----------------------------------------
Bug #18635: puppet apply does not work without ipaddress fact
https://projects.puppetlabs.com/issues/18635#change-83116

Author: Garrett Honeycutt
Status: Needs More Information
Priority: Normal
Assignee: Garrett Honeycutt
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Puppet version: 3.1.0-rc1
Facter version: 2.0.0

With an ipaddress we get what one would expect
<pre>
$ sudo puppet apply -v path.pp ; echo $?
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/root_home.rb
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/root_home.rb
Info: Applying configuration version '1357943759'
Notice: Finished catalog run in 0.04 seconds
0
</pre>

without an ipaddress, oh noes!
<pre>
$ sudo puppet apply -v path.pp ; echo $?
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in
/usr/share/puppet/modules/stdlib/lib/facter/root_home.rb
Could not retrieve ipaddress: No route to host - sendto(2)
Timed out seeking value for ipaddress
Could not retrieve ipaddress: No route to host - sendto(2)
Timed out seeking value for ipaddress
Could not retrieve ipaddress: No route to host - sendto(2)
Timed out seeking value for ipaddress
Warning: Could not retrieve fact ipaddress
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Error: Could not create resources for managing Puppet's files and
directories in sections [:main, :ssl, :agent]: No child processes
Error: Could not create resources for managing Puppet's files and
directories in sections [:main, :ssl, :agent]: No child processes
No child processes
1
</pre>

The offending module does make use of puppetlabs-stdlib, though does not
use the ipaddress fact.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to