Continuing in my 0.25.0rc1 saga, I''m now running into a problem with module custom types. I use the iptables module, which creates an iptables.rb module. In 0.24.8 this all worked fine. But, since upgrading my puppetmaster, it fails on both 0.24.8 and 0.25.0rc1 clients. puppetmaster complains that it "Could not find resource type iptables" I''m not really sure how to debug this. My clients do have the custom type in their /var/lib/puppet directories, and AFAIK it''s configured correctly. But, it''s just not working. Does anyone module custom types working in 0.25? 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 -~----------~----~----~----~------~----~------~--~---
James Turnbull
2009-Aug-06 21:51 UTC
[Puppet Users] Re: 0.25.0rc1, modules, and custom types
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 seph wrote:> Continuing in my 0.25.0rc1 saga, I''m now running into a problem with > module custom types. > > I use the iptables module, which creates an iptables.rb module. In > 0.24.8 this all worked fine. But, since upgrading my puppetmaster, it > fails on both 0.24.8 and 0.25.0rc1 clients. puppetmaster complains that > it "Could not find resource type iptables" > > I''m not really sure how to debug this. My clients do have the custom > type in their /var/lib/puppet directories, and AFAIK it''s configured > correctly. But, it''s just not working. > > Does anyone module custom types working in 0.25?I do. Can you provide some stack traces and your configuration? Regards James Turnbull - -- Author of: * Pro Linux Systems Administration (http://tinyurl.com/linuxadmin) * Pulling Strings with Puppet (http://tinyurl.com/pupbook) * Pro Nagios 2.0 (http://tinyurl.com/pronagios) * Hardening Linux (http://tinyurl.com/hardeninglinux) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFKe1BL9hTGvAxC30ARAkplAJ9MkfuO2XMU7xFJJfIZEnGYZghWAQCgss0s gdBEPyI0/dDEwgOumfMQCkQ=DfUj -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James Turnbull <james@lovedthanlost.net> writes:>> Does anyone module custom types working in 0.25? > > I do. Can you provide some stack traces and your configuration?I''d rather not tar my entire configuration, so I''ll try describing it. I''m sorry if I miss an important part. I''m basically using the iptables module from http://github.com/camptocamp/puppet-iptables/ As far as I can tell, it seems pretty straightforward. It''s just a type, no manifest. I''ve commented out most of my site.pp, and have a test node, that inherits nothing. And only has an iptables definition: node "puppet-test.colo41.example.com" { iptables { "00 invalid in": state => ''INVALID'', chain => ''INPUT'', jump => ''DROP'', } } Running that produces: root@puppet-test:/tmp# puppetd --no-daemonize --onetime --verbose --trace --color=false info: Retrieving plugin info: Loading facts in acpi_available info: Loading facts in interfaces info: Loading facts in virtual info: Loading facts in acpi_available info: Loading facts in interfaces info: Loading facts in virtual /usr/lib/ruby/1.8/puppet/indirector/rest.rb:53:in `deserialize'' /usr/lib/ruby/1.8/puppet/indirector/rest.rb:67:in `find'' /usr/lib/ruby/1.8/puppet/indirector/indirection.rb:198:in `find'' /usr/lib/ruby/1.8/puppet/indirector.rb:51:in `find'' /usr/lib/ruby/1.8/puppet/configurer.rb:94:in `retrieve_catalog'' /usr/lib/ruby/1.8/puppet/util.rb:425:in `thinmark'' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:10:in `realtime'' /usr/lib/ruby/1.8/puppet/util.rb:424:in `thinmark'' /usr/lib/ruby/1.8/puppet/configurer.rb:93:in `retrieve_catalog'' /usr/lib/ruby/1.8/puppet/configurer.rb:135: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:130: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:159 err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource type iptables at /etc/puppet/manifests/templates.pp:78 on node puppet-test.colo41.example.com notice: Using cached catalog info: Applying configuration version ''1249597941'' notice: Finished catalog run in 0.38 seconds I''m not really sure how to check that libdir and module plugin distribution are all working. on the client, genconfig shows libdir as being set to /var/lib/puppet/lib, and /var/lib/puppet/lib/puppet/type/iptables.rb is created and appears fine. The file does not exist on the puppetmaster. Prompted by this email, I went and created /var/lib/puppet/lib/puppet/type/iptables.rb on my puppetmaster. Doing so, causes things to work. Removing it leaves them working, at least till I restart puppetmaster, then it fails until I manually populate that. I''m not sure what how this should work. I get this error regardless of the filesystem permission on libdir. Here are the plugin related settings on puppetmaster, I don''t think they''re wrong: pluginsource = puppet://puppet/plugins pluginsync = true plugindest = /var/lib/puppet/lib Does that point at anything? 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 -~----------~----~----~----~------~----~------~--~---
seph <seph@directionless.org> writes:> Prompted by this email, I went and created > /var/lib/puppet/lib/puppet/type/iptables.rb on my puppetmaster. Doing > so, causes things to work. Removing it leaves them working, at least > till I restart puppetmaster, then it fails until I manually populate > that. I''m not sure what how this should work. I get this error > regardless of the filesystem permission on libdir.I pulled the debug/trace logs off the puppetmaster, I don''t see anything obviously wrong, but I''ve attached them. I''m not finding much documentation on how this should work. 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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2009-Aug-26 04:47 UTC
[Puppet Users] Re: 0.25.0rc1, modules, and custom types
I am also seeing this same issue with a migration config I am testing so the upgrade to 0.25 is a smooth one. -L -- Larry Ludwig Reductive Labs --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2009-Aug-27 12:56 UTC
[Puppet Users] Re: 0.25.0rc1, modules, and custom types
This appears to be a known bug with 0.25. http://projects.reductivelabs.com/issues/2574 -L -- Larry Ludwig Reductive Labs --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---