Issue #4692 has been updated by micah -.

It seems like I am only getting this error with my older 0.25.5 clients 
connecting to the 2.6 puppetmaster. The 2.6 clients are not fully executing 
their catalog because of a different error, so I cannot say for sure that they 
dont also run into this, but just at a different point after this other issue. 
I need to work out that other issue first to be able to say for sure, but its 
interesting to note that there is a difference here.

On the 0.25.5 clients, this is the stack trace:

<pre>
/usr/lib/ruby/1.8/puppet/indirector/rest.rb:55:in `deserialize'
/usr/lib/ruby/1.8/puppet/indirector/rest.rb:69:in `find'
/usr/lib/ruby/1.8/puppet/indirector/indirection.rb:202:in `find'
/usr/lib/ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/1.8/puppet/configurer.rb:208:in `retrieve_new_catalog'
/usr/lib/ruby/1.8/puppet/util.rb:418:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/lib/ruby/1.8/puppet/configurer.rb:207:in `retrieve_new_catalog'
/usr/lib/ruby/1.8/puppet/configurer.rb:104:in `retrieve_catalog'
/usr/lib/ruby/1.8/puppet/configurer.rb:142:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:134:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:51:in `run'
/usr/lib/ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:160
err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
private method `split' called for :undef:Symbol at 
/etc/puppet/modules/smart/manifests/init.pp:48 on node
</pre>
----------------------------------------
Bug #4692: empty factor variable causes private method `split' called for 
:undef:Symbol
http://projects.puppetlabs.com/issues/4692

Author: micah -
Status: Needs more information
Priority: Normal
Assignee: 
Category: functions
Target version: 
Affected version: 2.6.0rc3
Keywords: 
Branch: 


I have upgraded my puppetmaster to 2.6-rc3, and ran a puppet run on one of my 
clients that is running 0.25.5. i have a manifest that does a:   $attrdrives = 
split($diskdrives_smartattr, ","), but now with the new puppet 2.6, that gives 
me an error when the manifest is run:

<pre>private method `split' called for :undef:Symbol</pre>

This is because the $diskdrives_smartattr variable is empty. Previously this 
wouldn't cause this error. I can fix this in my manifest by doing something 
like putting an if test of the variable:

<pre>
  if $diskdrives_smartattr {
    $attrdrives = split($diskdrives_smartattr, ",")
    smart::smartattr { $attrdrives: }
  }
</pre>



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