Anyone ever seen these errors before? never seen the "wrong # of arguments before" [jleggett@lxp6d3m8 manifests]$ sudo puppet --debug --confdir=/opt/ etrade/p6/puppet/ ct-example.pp debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm -- version'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -- version'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderUrpmi: Executing ''/bin/rpm -ql rpm'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderAptrpm: Executing ''/bin/rpm -ql rpm'' wrong number of arguments (2 for 1) err: Could not create et_p6_openssl: Parameter provider failed: Invalid package provider ''/usr/bin/yum'' Parameter provider failed: Invalid package provider ''/usr/bin/yum'' [jleggett@lxp6d3m8 manifests]$ vi ct- example.pp [jleggett@lxp6d3m8 manifests]$ sudo puppet --debug --confdir=/opt/etrade/p6/puppet/ ct- example.pp debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm -- version'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -- version'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderUrpmi: Executing ''/bin/rpm -ql rpm'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderAptrpm: Executing ''/bin/rpm -ql rpm'' wrong number of arguments (2 for 1) debug: Creating default schedules debug: Prefetching yum resources for package debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -qa -- nosignature --nodigest --qf ''%{NAME} %|EPOCH?{%{EPOCH}}:{0}| % {VERSION} %{RELEASE} %{ARCH} '''' debug: Puppet::Type::Package::ProviderYum: Executing ''/usr/bin/python / usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'' wrong number of arguments (2 for 1) err: Could not prefetch package provider ''yum'': Execution of ''/usr/bin/ python /usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/ yumhelper.py'' returned 256: debug: //Package[et_p6_openssl]/require: requires Yumrepo[P6.RHAS3.X86] debug: Puppet::Type::Package::ProviderYum: Not suitable: false value err: //Package[et_p6_openssl]: Failed to retrieve current state of resource: Provider yum is not functional on this platform debug: Finishing transaction -611130518 with 0 changes [jleggett@lxp6d3m8 manifests]$ [jleggett@lxp6d3m8 manifests]$ cat ct-example.pp yumrepo { "P6.RHAS3.X86": baseurl => "http://yum.etrade.com/p6.rhas3.x86/dev-main- gold/", name => "DEV-MAIN-GOLD", enabled => 1, gpgcheck => 0, } package {"et_p6_openssl": ensure => installed, provider => "yum", require => Yumrepo["P6.RHAS3.X86"], } [jleggett@lxp6d3m8 manifests]$ --~--~---------~--~----~------------~-------~--~----~ 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 Jun 19, 2008, at 7:50 PM, Jeff Leggett wrote:> Anyone ever seen these errors before? never seen the "wrong # of > arguments before" > > [jleggett@lxp6d3m8 manifests]$ sudo puppet --debug --confdir=/opt/ > etrade/p6/puppet/ ct-example.pp > debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm -- > version'' > wrong number of arguments (2 for 1) > debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -- > version''I''d never seen this until recently, but apparently it''s a result of using an older version of ruby. I''d love to know what the actual problem is. Can you get a stack trace with --trace? -- To be positive: To be mistaken at the top of one''s voice. -- Ambrose Bierce --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
[jleggett@lxp6d3m8 manifests]$ sudo puppet --debug --confdir=/opt/ etrade/p6/puppet/ ct-example.pp --trace debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm -- version'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -- version'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderUrpmi: Executing ''/bin/rpm -ql rpm'' wrong number of arguments (2 for 1) debug: Puppet::Type::Package::ProviderAptrpm: Executing ''/bin/rpm -ql rpm'' wrong number of arguments (2 for 1) debug: Creating default schedules debug: Prefetching yum resources for package debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -qa -- nosignature --nodigest --qf ''%{NAME} %|EPOCH?{%{EPOCH}}:{0}| % {VERSION} %{RELEASE} %{ARCH} '''' debug: Puppet::Type::Package::ProviderYum: Executing ''/usr/bin/python / usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'' wrong number of arguments (2 for 1) /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:374:in `execute'' /usr/local/lib/ruby/site_ruby/1.8/puppet/provider.rb:138:in `python'' /usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/yum.rb:32:in `prefetch'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:490:in `prefetch'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:487:in `each'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:487:in `prefetch'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:502:in `prepare'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:299:in `evaluate'' /usr/local/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:118:in `apply'' /usr/local/bin/puppet:217 err: Could not prefetch package provider ''yum'': Execution of ''/usr/bin/ python /usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/ yumhelper.py'' returned 256: debug: Puppet::Type::Package::ProviderYum: Not suitable: false value /usr/local/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:9:in `evaluate'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:58:in `apply'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:238:in `eval_resource'' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'' /usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:237:in `eval_resource'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:309:in `evaluate'' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'' /usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'' /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:308:in `evaluate'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:302:in `collect'' /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:302:in `evaluate'' /usr/local/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:118:in `apply'' /usr/local/bin/puppet:217 err: //Package[tetex]: Failed to retrieve current state of resource: Provider yum is not functional on this platform debug: Finishing transaction -611129128 with 0 changes [jleggett@lxp6d3m8 manifests]$ On Jun 19, 10:24 pm, Luke Kanies <l...@madstop.com> wrote:> On Jun 19, 2008, at 7:50 PM, Jeff Leggett wrote: > > > Anyone ever seen these errors before? never seen the "wrong # of > > arguments before" > > > [jleggett@lxp6d3m8 manifests]$ sudo puppet --debug --confdir=/opt/ > > etrade/p6/puppet/ ct-example.pp > > debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm -- > > version'' > > wrong number of arguments (2 for 1) > > debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -- > > version'' > > I''d never seen this until recently, but apparently it''s a result of > using an older version of ruby. I''d love to know what the actual > problem is. Can you get a stack trace with --trace? > > -- > To be positive: To be mistaken at the top of one''s voice. > -- Ambrose Bierce > --------------------------------------------------------------------- > 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 -~----------~----~----~----~------~----~------~--~---
I''ve seen this problem as well, this is a result of an old version of yum with the yum helper script. an upgrade of your yum version should solve it. maybe it would be possible in the yum helper script to check the yum version and not run it if its too old. Ohad On Fri, Jun 20, 2008 at 11:08 AM, Jeff Leggett <jeffrey.leggett@etrade.com> wrote:> > [jleggett@lxp6d3m8 manifests]$ sudo puppet --debug --confdir=/opt/ > etrade/p6/puppet/ ct-example.pp --trace > debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm -- > version'' > wrong number of arguments (2 for 1) > debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -- > version'' > wrong number of arguments (2 for 1) > debug: Puppet::Type::Package::ProviderUrpmi: Executing ''/bin/rpm -ql > rpm'' > wrong number of arguments (2 for 1) > debug: Puppet::Type::Package::ProviderAptrpm: Executing ''/bin/rpm -ql > rpm'' > wrong number of arguments (2 for 1) > debug: Creating default schedules > debug: Prefetching yum resources for package > debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -qa -- > nosignature --nodigest --qf ''%{NAME} %|EPOCH?{%{EPOCH}}:{0}| % > {VERSION} %{RELEASE} %{ARCH} > '''' > debug: Puppet::Type::Package::ProviderYum: Executing ''/usr/bin/python / > usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'' > wrong number of arguments (2 for 1) > /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:374:in `execute'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/provider.rb:138:in `python'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/yum.rb:32:in > `prefetch'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:490:in > `prefetch'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:487:in `each'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:487:in > `prefetch'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:502:in > `prepare'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:299:in > `evaluate'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:118:in > `apply'' > /usr/local/bin/puppet:217 > err: Could not prefetch package provider ''yum'': Execution of ''/usr/bin/ > python /usr/local/lib/ruby/site_ruby/1.8/puppet/provider/package/ > yumhelper.py'' returned 256: > debug: Puppet::Type::Package::ProviderYum: Not suitable: false value > /usr/local/lib/ruby/site_ruby/1.8/puppet/metatype/evaluation.rb:9:in > `evaluate'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:58:in `apply'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:238:in > `eval_resource'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'' > /usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:237:in > `eval_resource'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:309:in > `evaluate'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:445:in `thinmark'' > /usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/util.rb:444:in `thinmark'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:308:in > `evaluate'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:302:in > `collect'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/transaction.rb:302:in > `evaluate'' > /usr/local/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:118:in > `apply'' > /usr/local/bin/puppet:217 > err: //Package[tetex]: Failed to retrieve current state of resource: > Provider yum is not functional on this platform > debug: Finishing transaction -611129128 with 0 changes > [jleggett@lxp6d3m8 manifests]$ > > > On Jun 19, 10:24 pm, Luke Kanies <l...@madstop.com> wrote: > > On Jun 19, 2008, at 7:50 PM, Jeff Leggett wrote: > > > > > Anyone ever seen these errors before? never seen the "wrong # of > > > arguments before" > > > > > [jleggett@lxp6d3m8 manifests]$ sudo puppet --debug --confdir=/opt/ > > > etrade/p6/puppet/ ct-example.pp > > > debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm -- > > > version'' > > > wrong number of arguments (2 for 1) > > > debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -- > > > version'' > > > > I''d never seen this until recently, but apparently it''s a result of > > using an older version of ruby. I''d love to know what the actual > > problem is. Can you get a stack trace with --trace? > > > > -- > > To be positive: To be mistaken at the top of one''s voice. > > -- Ambrose Bierce > > --------------------------------------------------------------------- > > 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 -~----------~----~----~----~------~----~------~--~---