I''m running into some problems with the iptables module. Or with puppet itself, I''m not really sure. I''m running puppet version 0.24.8-1 on ubuntu using the debian packages. Both on the master and the clients. I''m using the iptables module from http://github.com/camptocamp/puppet-iptables/tree/master I''ve got about 40 rules. When I run puppet manually, using --onetime, it works wonderful. When I launch the puppet daemon, the first run goes wonderfully. But, all subsequent automatic runs, it fails. My logs don''t say much, just: puppetd 1b [daemon.err] puppetd[4388]: Could not create 50 email-outbound: undefined method `+\'' for false:FalseClass puppetd 1b [daemon.err] puppetd[4388]: Could not create 50 email-outbound: undefined method `+\'' for false:FalseClass Anyone seen this or have any suggestions for how to fix it? seph --~--~---------~--~----~------------~-------~--~----~ 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-May-20 16:15 UTC
[Puppet Users] Re: undefined method `+\'' for false:FalseClass
On May 19, 2009, at 9:47 AM, seph wrote:> > I''m running into some problems with the iptables module. Or with > puppet > itself, I''m not really sure. > > I''m running puppet version 0.24.8-1 on ubuntu using the debian > packages. Both on the master and the clients. > > I''m using the iptables module from > http://github.com/camptocamp/puppet-iptables/tree/master I''ve got > about > 40 rules. > > When I run puppet manually, using --onetime, it works wonderful. > When I > launch the puppet daemon, the first run goes wonderfully. But, all > subsequent automatic runs, it fails. > > My logs don''t say much, just: > > puppetd 1b [daemon.err] puppetd[4388]: Could not create 50 email- > outbound: undefined method `+\'' for false:FalseClass > puppetd 1b [daemon.err] puppetd[4388]: Could not create 50 email- > outbound: undefined method `+\'' for false:FalseClass > > Anyone seen this or have any suggestions for how to fix it?Run puppetd with --trace --no-daemonize --debug and leave it running like that. The stack trace should point you to where the problem is in your iptables module. -- Every great advance in natural knowledge has involved the absolute rejection of authority. --Thomas H. Huxley --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies <luke@madstop.com> writes:> Run puppetd with --trace --no-daemonize --debug and leave it running > like that. The stack trace should point you to where the problem is > in your iptables module.Ah, this certainly looks like more of a stack trace, though I''m not really sure how to interpret it. The first couple lines look like: err: Could not create 01 localhost spoofing in: undefined method `+'' for false:FalseClass /var/lib/puppet/lib/puppet/type/iptables.rb:451:in `initialize'' /usr/lib/ruby/1.8/puppet/type.rb:1129:in `new'' /usr/lib/ruby/1.8/puppet/type.rb:1129:in `create'' /usr/lib/ruby/1.8/puppet/transportable.rb:91:in `to_type'' /usr/lib/ruby/1.8/puppet/transportable.rb:198:in `to_catalog'' /usr/lib/ruby/1.8/puppet/transportable.rb:126:in `each'' And line 451 (and surrounding) of iptables.rb is: 447 def initialize(args) 448 super(args) 449 450 invalidrule = false 451 @@total_rule_count += 1 452 453 table = value(:table).to_s 454 @@rules[table] = [] unless @@rules[table] I''m not really sure how to interpret this. I suspect it''s beyond my ability as a programmer, so I''m hoping someone has seen it before. Or that someone has a pointer to an iptables module. seph --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Marc Fournier
2009-May-26 08:50 UTC
[Puppet Users] Re: undefined method `+\'' for false:FalseClass
Hello,> The first couple lines look like: > > err: Could not create 01 localhost spoofing in: undefined method > `+'' for > false:FalseClass /var/lib/puppet/lib/puppet/type/iptables.rb:451:in > `initialize'' /usr/lib/ruby/1.8/puppet/type.rb:1129:in > `new'' /usr/lib/ruby/1.8/puppet/type.rb:1129:in > `create'' /usr/lib/ruby/1.8/puppet/transportable.rb:91:in > `to_type'' /usr/lib/ruby/1.8/puppet/transportable.rb:198:in > `to_catalog'' /usr/lib/ruby/1.8/puppet/transportable.rb:126:in `each''Thanks for reporting this. I believe I never ran into this issue because I don''t usually run puppet as a daemon. Could you please let me know if the following commit fixes the problem for you ? http://github.com/camptocamp/puppet-iptables/commit/53064851309ffaab0c6ec1cc7d0367e7aa103545 Thanks ! Marc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Wonderful, that patch seems to have solved this error. Thank you so much for fixing it. seph Marc Fournier <marc.fournier@camptocamp.com> writes:> Hello, > > >> The first couple lines look like: >> >> err: Could not create 01 localhost spoofing in: undefined method >> `+'' for >> false:FalseClass /var/lib/puppet/lib/puppet/type/iptables.rb:451:in >> `initialize'' /usr/lib/ruby/1.8/puppet/type.rb:1129:in >> `new'' /usr/lib/ruby/1.8/puppet/type.rb:1129:in >> `create'' /usr/lib/ruby/1.8/puppet/transportable.rb:91:in >> `to_type'' /usr/lib/ruby/1.8/puppet/transportable.rb:198:in >> `to_catalog'' /usr/lib/ruby/1.8/puppet/transportable.rb:126:in `each'' > > Thanks for reporting this. I believe I never ran into this issue > because I don''t usually run puppet as a daemon. > > Could you please let me know if the following commit fixes the problem > for you ? > > http://github.com/camptocamp/puppet-iptables/commit/53064851309ffaab0c6ec1cc7d0367e7aa103545 > > Thanks ! > > Marc > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---