Issue #2635 has been updated by James Turnbull.

Status changed from Needs more information to Rejected

Closed as end user issue.
----------------------------------------
Bug #2635: "Could not find value for 'hostname'" after puppetd has been running 
>24 hours.
http://projects.reductivelabs.com/issues/2635

Author: Josh Anderson
Status: Rejected
Priority: Normal
Assigned to: Josh Anderson
Category: serialization
Target version: 0.25.2
Affected version: 0.25.0
Keywords: 
Branch: 


Something's going wrong with fact generation after puppetd has been running for 
about 24 hours. I'm seeing the following error in puppetd's log:

*Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to 
parse template templatetest/test.erb: Could not find value for 'hostname' at 
/etc/puppet/modules/templatetest/manifests/init.pp:3 on node puppetm.foo.com*

Here's what I've see for this node in the master's /var/puppet/yaml/facts 
directory:

<pre>
--- !ruby/object:Puppet::Node::Facts 
expiration: 2009-09-14 11:48:30.435619 -07:00
name: puppetm.foo.com
values: 
  clientversion: 0.25.0
  rubysitedir: /opt/ruby/lib/ruby/site_ruby/1.8
  ps: ps -ef
  domain: foo.com
  timezone: PDT
  ? !ruby/sym _timestamp
  : Mon Sep 14 11:43:30 -0700 2009

  puppetversion: 0.25.0
  environment: production
  sshrsakey: AAAAB3NzaC1yc2EAAAABIwAAAIEAqJ4c0t/M2wgrbjo...
  facterversion: 1.5.6
  sshdsakey: AAAAB3NzaC1kc3MAAACBAMAIzIP2T9LiVqKV/iyk+...
  rubyversion: 1.8.7
</pre>

There's a lot missing there, and it seems like the YAML is malformed.

This has been 100% reproducible for me. This is with Puppet 0.25 and Facter 
0.5.6 on Ruby 1.8.7p160 (Solaris SPARC).

A final note: This started happening after I added "path = 
/usr/bin:/usr/sbin:/bin:/sbin" to the puppetd section of puppet.conf. That was 
an attempt to resolve some mysterious provider failures (also 100% reproducible 
for me.) The error messages for those were:

*Failed to retrieve current state of  resource: Provider groupadd is not 
functional on this platform*

and:

*Failed to retrieve current state of resource: Provider crontab is not 
functional on this platform*

So now I'm seeing the hostname error instead of the provider failures, but 
these two problems may be related.


-- 
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://reductivelabs.com/redmine/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