steve caldwell
2008-Aug-04 23:38 UTC
[Puppet Users] "Found multiple default providers" error
Just upgraded to latest puppet version, am now getting these errors: warning: Found multiple default providers for service: freebsd, debian; using freebsd I''m using Ubuntu - about half the time it says "using debian", the other half it choose freebsd. When it chooses freebsd all hell breaks loose (it can''t handle any services correctly, tries to restart services that are already running, fails to restart services, etc.). I can go through all my code and add provider => ''debian'' to all my service definitions, but I''m wondering if anyone has any better ideas. Any help is much appreciated, thanks. -Steve --~--~---------~--~----~------------~-------~--~----~ 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
2008-Aug-05 00:19 UTC
[Puppet Users] Re: "Found multiple default providers" error
On Aug 4, 2008, at 4:38 PM, steve caldwell wrote:> > Just upgraded to latest puppet version, am now getting these errors: > > warning: Found multiple default providers for service: freebsd, > debian; using freebsd > > I''m using Ubuntu - about half the time it says "using debian", the > other half it choose freebsd. When it chooses freebsd all hell breaks > loose (it can''t handle any services correctly, tries to restart > services that are already running, fails to restart services, etc.). > > I can go through all my code and add provider => ''debian'' to all my > service definitions, but I''m wondering if anyone has any better ideas. > > Any help is much appreciated, thanks.Erm... Each of those providers is only listed as the default for their respective platforms, so something very screwy is going on. What does facter say your operatingsystem is? Is there anything that could indicate to it that you''re running FreeBSD instead of Ubuntu/ Debian? What about if you run puppetdoc -r providers? What does that say about the service providers? Anything useful? -- The Ninety-Ninety Rule of Project Schedules: The first 90% of the task takes 90% of the time, and the last 10% takes the other 90%. --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
steve caldwell
2008-Aug-05 00:56 UTC
[Puppet Users] Re: "Found multiple default providers" error
On Aug 4, 5:19 pm, Luke Kanies <l...@madstop.com> wrote:> > What does facter say your operatingsystem is? Is there anything that > could indicate to it that you''re running FreeBSD instead of Ubuntu/ > Debian? >BTW, I should mention I''m running all of this in a virtual machine - kvm running an Ubuntu 7.10 guest on an Ubuntu 7.10 host I added this: file { "/tmp/os.txt" : mode => 666, content => $operatingsystem, } And ran puppetd --test a bunch of times. There were basically 3 scenarios that happened in this order over my multiple executions of puppetd: - I didn''t get any "Found multiple default providers" errors content of /tmp/os.txt: Debian - I got "warning: Found multiple default providers for service: debian, freebsd; using debian" content of /tmp/os.txt: Ubuntu - I got "warning: Found multiple default providers for service: freebsd, debian; using freebsd" content of /tmp/os.txt: Ubuntu> What about if you run puppetdoc -r providers? What does that say > about the service providers? Anything useful?steve@web:~$ puppetdoc -r providers /usr/local/lib/site_ruby/1.8/puppet/type/pfile.rb:243: warning: already initialized constant CREATORS /usr/local/lib/site_ruby/1.8/puppet/provider/confine/variable.rb:6:in `summarize'' /usr/local/lib/site_ruby/1.8/facter/util/loader.rb:72:in `inject'' /usr/local/lib/site_ruby/1.8/puppet/provider/confine/variable.rb:6:in `each'' /usr/local/lib/site_ruby/1.8/puppet/provider/confine/variable.rb:6:in `inject'' /usr/local/lib/site_ruby/1.8/puppet/provider/confine/variable.rb:6:in `summarize'' /usr/local/lib/site_ruby/1.8/puppet/provider/confine_collection.rb: 36:in `summary'' /usr/local/lib/site_ruby/1.8/puppet/provider/confine_collection.rb: 35:in `each'' /usr/local/lib/site_ruby/1.8/puppet/provider/confine_collection.rb: 35:in `summary'' /usr/local/lib/site_ruby/1.8/puppet/provider/confiner.rb:18:in `suitable?'' /usr/local/lib/site_ruby/1.8/puppet/reference/providers.rb:50:in `generate'' /usr/local/lib/site_ruby/1.8/puppet/reference/providers.rb:44:in `each'' /usr/local/lib/site_ruby/1.8/puppet/reference/providers.rb:44:in `generate'' /usr/local/lib/site_ruby/1.8/puppet/reference/providers.rb:28:in `each'' /usr/local/lib/site_ruby/1.8/puppet/reference/providers.rb:28:in `generate'' /usr/local/lib/site_ruby/1.8/puppet/util/reference.rb:153:in `to_rest'' /usr/bin/puppetdoc:137:in `send'' /usr/bin/puppetdoc:137 /usr/bin/puppetdoc:132:in `each'' /usr/bin/puppetdoc:132 Could not generate reference providers: undefined method `fact'' for #<Puppet::Provider::Confine::Variable:0xb6e0e2a8> steve@web:~$ --~--~---------~--~----~------------~-------~--~----~ 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
2008-Aug-11 18:39 UTC
[Puppet Users] Re: "Found multiple default providers" error
On Aug 4, 2008, at 7:56 PM, steve caldwell wrote:> > On Aug 4, 5:19 pm, Luke Kanies <l...@madstop.com> wrote: >> >> What does facter say your operatingsystem is? Is there anything that >> could indicate to it that you''re running FreeBSD instead of Ubuntu/ >> Debian? >> > > BTW, I should mention I''m running all of this in a virtual machine - > kvm running an Ubuntu 7.10 guest on an Ubuntu 7.10 host > > I added this: > > file { "/tmp/os.txt" : > mode => 666, > content => $operatingsystem, > } > > And ran puppetd --test a bunch of times. There were basically 3 > scenarios that happened in this order over my multiple executions of > puppetd: > > - I didn''t get any "Found multiple default providers" errors > content of /tmp/os.txt: Debian > > - I got "warning: Found multiple default providers for service: > debian, freebsd; using debian" > content of /tmp/os.txt: Ubuntu > > - I got "warning: Found multiple default providers for service: > freebsd, debian; using freebsd" > content of /tmp/os.txt: UbuntuSo basically, if your machine thinks it''s Debian, everything''s fine, right? Sounds like we need to 1) Fix Facter so it''s always correct about your OS and 2) modify the providers so they include ''ubuntu'', rather than just debian.> >> What about if you run puppetdoc -r providers? What does that say >> about the service providers? Anything useful? > > steve@web:~$ puppetdoc -r providers > /usr/local/lib/site_ruby/1.8/puppet/type/pfile.rb:243: warning: > already initialized constant CREATORSThis file hasn''t existed in at least two releases, I think; it is likely the source of this problem, although unrelated to the provider issues. -- It is said that power corrupts, but actually it''s more true that power attracts the corruptible. The sane are usually attracted by other things than power. -- David Brin --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---