Pete Emerson
2009-Mar-06 23:44 UTC
[Puppet Users] undefined method `controllable?'' when manipulating sshd
Apologies if this winds up in the group twice, I''m not positive I submitted this the first time around. I installed puppet on an existing client and am getting this when running puppetd --test: err: Could not create sshd: undefined method `controllable?'' for nil:NilClass warning: Not using cache on failed catalog warning: Configuration could not be instantiated: undefined method `controllable?'' for nil:NilClass Other servers don''t have this message. When I comment out the service section (below), the puppet client runs just fine. Does anyone have any suggestions of how I might track this issue down and fix it? I tried running the puppetmaster in debug mode and didn''t see anything odd. Identical OS and puppet installs on other boxes seem to be working okay. This box used to be my testbed for puppet so I initially thought This is my ssh.pp, which is included in my site.pp: file { "/etc/ssh/sshd_config": ensure => "present", owner => root, group => root, mode => 644, source => "puppet:///files/global/etc-ssh-sshd_config", checksum => "md5", backup => true } package { openssh-server: ensure => installed } service { "sshd": require => Package[openssh-server], subscribe => File["/etc/ssh/sshd_config"], ensure => ''running'' } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2009-Mar-10 08:16 UTC
[Puppet Users] Re: undefined method `controllable?'' when manipulating sshd
On Mar 6, 2009, at 5:44 PM, Pete Emerson wrote:> Apologies if this winds up in the group twice, I''m not positive I > submitted this the first time around. > > I installed puppet on an existing client and am getting this when > running puppetd --test: > > err: Could not create sshd: undefined method `controllable?'' for > nil:NilClass > warning: Not using cache on failed catalog > warning: Configuration could not be instantiated: undefined method > `controllable?'' for nil:NilClass > > Other servers don''t have this message. When I comment out the > service section (below), the puppet client runs just fine. > > Does anyone have any suggestions of how I might track this issue > down and fix it? I tried running the puppetmaster in debug mode and > didn''t see anything odd. Identical OS and puppet installs on other > boxes seem to be working okay. This box used to be my testbed for > puppet so I initially thought > > This is my ssh.pp, which is included in my site.pp: > > file { "/etc/ssh/sshd_config": > ensure => "present", > owner => root, > group => root, > mode => 644, > source => "puppet:///files/global/etc-ssh-sshd_config", > checksum => "md5", > backup => true > } > > package { openssh-server: ensure => installed } > > service { "sshd": > require => Package[openssh-server], > subscribe => File["/etc/ssh/sshd_config"], > ensure => ''running'' > }It looks like something is causing your default service provider not to load on that system, and puppet''s autoloader isn''t doing a good job of telling you what the problem is. Can you look at the client logs in more detail? Maybe an error is being logged that you''re not noticing because it''s not initially fatal. -- Is life worth living? That is a question for an embryo, not a man. --Samuel Butler --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---