Hi folks, Is anyone noticing an issue with the length of a class name? If I call the class syslogng the class fails. If I call the class slng the class works. Strangely a class named all_hosts works. Thanks, /Chris C -- 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.
I don''t have an issue here: $ cat test8.pp class abcdefghijklmnopqrstuvwxyz { notice("foo") } include abcdefghijklmnopqrstuvwxyz $ puppet test8.pp notice: Scope(Class[Abcdefghijklmnopqrstuvwxyz]): foo $ You should post the error and more environment information to the thread. ken. On Dec 6, 12:12 am, Chris C <mazzy...@gmail.com> wrote:> Hi folks, > Is anyone noticing an issue with the length of a class name? If I call the > class syslogng the class fails. If I call the class slng the class works. > Strangely a class named all_hosts works. > > Thanks, > /Chris C-- 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.
I will in the morning. It''s definitely something that I need to resolve. Thanks, /Chris C On Dec 5, 2010, at 7:43 PM, Ken Barber <ken@bob.sh> wrote:> I don''t have an issue here: > > $ cat test8.pp > class abcdefghijklmnopqrstuvwxyz { > notice("foo") > } > include abcdefghijklmnopqrstuvwxyz > $ puppet test8.pp > notice: Scope(Class[Abcdefghijklmnopqrstuvwxyz]): foo > $ > > You should post the error and more environment information to the > thread. > > ken. > > On Dec 6, 12:12 am, Chris C <mazzy...@gmail.com> wrote: >> Hi folks, >> Is anyone noticing an issue with the length of a class name? If I call the >> class syslogng the class fails. If I call the class slng the class works. >> Strangely a class named all_hosts works. >> >> Thanks, >> /Chris C > > -- > 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. >-- 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.
On 12/06/2010 01:12 AM, Chris C wrote:> Hi folks, > Is anyone noticing an issue with the length of a class name? If I call > the class syslogng the class fails. If I call the class slng the class > works. Strangely a class named all_hosts works.I remember a weird occurence when a class was outright ignored. When I had lost sanity after some hours of debugging, I renamed it and it worked. Puppet is picky where names are concerned ;-( -- 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.
Thanks for reminding me about this [root@puppetmaster manifests]# cat classes/redhat/prod/inf/syslogng/class.pp class syslogng inherits all_hosts_redhat { $dir = "redhat/prod/inf/syslogng" file { "check_logserver": name => "/usr/lib64/nagios/plugins/check_logserver.py", ensure => present, mode => 750, owner => root, group => root, checksum => md5, source => "/net/puppetmaster/etc/puppet/manifests/files/$dir/check_logserver.py" } } [root@puppetmaster manifests]# cat site.pp import "classes/redhat/prod/inf/syslogng/class.pp" node syslogng { include syslogng } [root@puppetmaster manifests]# puppet classes/redhat/prod/inf/syslogng/class.pp [root@puppetmaster manifests]# [root@syslogng ~]# puppetd --test --verbose notice: Ignoring --listen on onetime run err: Could not retrieve catalog from remote server: warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run err: Could not send report: [root@syslogng ~]# As soon as I change the syslogng class to slng the class works and syslogng can pull the catalog and apply. Wierd... /Chris C On Wed, Dec 8, 2010 at 9:06 AM, Felix Frank <felix.frank@alumni.tu-berlin.de> wrote:> On 12/06/2010 01:12 AM, Chris C wrote: > > Hi folks, > > Is anyone noticing an issue with the length of a class name? If I call > > the class syslogng the class fails. If I call the class slng the class > > works. Strangely a class named all_hosts works. > > I remember a weird occurence when a class was outright ignored. When I > had lost sanity after some hours of debugging, I renamed it and it worked. > > Puppet is picky where names are concerned ;-( > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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.
> [root@puppetmaster manifests]# cat site.pp > import "classes/redhat/prod/inf/syslogng/class.pp" > > node syslogng { > include syslogng > }Maybe an issue with classname == nodename? -- 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.
Good thinking Felix. I changed the class name to syslogngcrctesting and wahlah! the client pulls and applies the catalog. [root@syslogng ~]# puppetd --test --verbose notice: Ignoring --listen on onetime run info: Caching catalog for syslogng.akc.org info: Applying configuration version ''1291906551'' notice: /Stage[main]/All_hosts_redhat/Service[nfslock]/ensure: ensure changed ''stopped'' to ''running'' notice: /Stage[main]/All_hosts_redhat/Service[nfs]/ensure: ensure changed ''running'' to ''stopped'' notice: /Stage[main]/All_hosts_redhat/Service[atd]/ensure: ensure changed ''running'' to ''stopped'' notice: /Stage[main]/All_hosts_redhat/Service[autofs]/ensure: ensure changed ''stopped'' to ''running'' notice: /Stage[main]/All_hosts_redhat/Service[syslog]/ensure: ensure changed ''running'' to ''stopped'' info: /Stage[main]/All_hosts_redhat/Service[syslog]: Scheduling refresh of Service[syslog-ng] notice: /Stage[main]/Syslogngcrctesting/Service[syslog-ng]/ensure: ensure changed ''stopped'' to ''running'' notice: /Stage[main]/Syslogngcrctesting/Service[syslog-ng]: Triggered ''refresh'' from 1 events notice: Finished catalog run in 76.44 seconds [root@syslogng ~]# /Chris C On Thu, Dec 9, 2010 at 9:27 AM, Felix Frank <felix.frank@alumni.tu-berlin.de> wrote:> > [root@puppetmaster manifests]# cat site.pp > > import "classes/redhat/prod/inf/syslogng/class.pp" > > > > node syslogng { > > include syslogng > > } > > Maybe an issue with classname == nodename? > > -- > 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<puppet-users%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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.
BTW....my normal check in time is 12 secs.....not 76 secs. ;) I was running a mysql query on that box in another terminal. /C On Thu, Dec 9, 2010 at 9:58 AM, Chris C <mazzystr@gmail.com> wrote:> Good thinking Felix. > > I changed the class name to syslogngcrctesting and wahlah! the client pulls > and applies the catalog. > > > [root@syslogng ~]# puppetd --test --verbose > notice: Ignoring --listen on onetime run > info: Caching catalog for syslogng.akc.org > info: Applying configuration version ''1291906551'' > notice: /Stage[main]/All_hosts_redhat/Service[nfslock]/ensure: ensure > changed ''stopped'' to ''running'' > notice: /Stage[main]/All_hosts_redhat/Service[nfs]/ensure: ensure changed > ''running'' to ''stopped'' > notice: /Stage[main]/All_hosts_redhat/Service[atd]/ensure: ensure changed > ''running'' to ''stopped'' > notice: /Stage[main]/All_hosts_redhat/Service[autofs]/ensure: ensure > changed ''stopped'' to ''running'' > notice: /Stage[main]/All_hosts_redhat/Service[syslog]/ensure: ensure > changed ''running'' to ''stopped'' > info: /Stage[main]/All_hosts_redhat/Service[syslog]: Scheduling refresh of > Service[syslog-ng] > notice: /Stage[main]/Syslogngcrctesting/Service[syslog-ng]/ensure: ensure > changed ''stopped'' to ''running'' > notice: /Stage[main]/Syslogngcrctesting/Service[syslog-ng]: Triggered > ''refresh'' from 1 events > notice: Finished catalog run in 76.44 seconds > [root@syslogng ~]# > > > /Chris C > > > > On Thu, Dec 9, 2010 at 9:27 AM, Felix Frank < > felix.frank@alumni.tu-berlin.de> wrote: > >> > [root@puppetmaster manifests]# cat site.pp >> > import "classes/redhat/prod/inf/syslogng/class.pp" >> > >> > node syslogng { >> > include syslogng >> > } >> >> Maybe an issue with classname == nodename? >> >> -- >> 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<puppet-users%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> >> >-- 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.