Kyle Mallory
2009-May-22 21:11 UTC
[Puppet Users] "Could not prefetch package provider ''yum'': Command rpm is missing"
I have just installed Puppet on CentOS. One of about 15 machines in our organization. Currently 5 have puppet installled, all CentOS. On this particular machine, Puppet fails to run most of our recipes, stating: ''Could not prefetch package provider ''yum'': Command rpm is missing'' I''ve not had any issues with our other machines, and I can manually run yum and rpm on the command line, without issue. I''ve tried to look through the code for the providers/packages/*.rb, but I''m not a Ruby super-star, and it doesn''t make sense. Could someone shed some light on why Puppet might have trouble finding ''rpm'', and how I could further troubleshoot, and ultimately fix this problem? Thanks, Kyle Mallory --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jim Pirzyk
2009-May-24 17:42 UTC
[Puppet Users] Re: "Could not prefetch package provider ''yum'': Command rpm is missing"
What version of puppet? also what is your path set to. I had a problem on an older version of puppet (can''t remember which one) where i had ''/etc'' on my path and puppet was trying to use /etc/rpm as the rpm command, but /etc/rpm is a directory and then failed. It has been fixed in the more current versions (I''m currently running 0.24.8 on my centos systems). - JimP On May 22, 2009, at 5:11 PM, Kyle Mallory wrote:> > I have just installed Puppet on CentOS. One of about 15 machines in > our organization. Currently 5 have puppet installled, all CentOS. > > On this particular machine, Puppet fails to run most of our recipes, > stating: > > ''Could not prefetch package provider ''yum'': Command rpm is missing'' > > I''ve not had any issues with our other machines, and I can manually > run yum and rpm on the command line, without issue. > > I''ve tried to look through the code for the providers/packages/*.rb, > but I''m not a Ruby super-star, and it doesn''t make sense. > > Could someone shed some light on why Puppet might have trouble finding > ''rpm'', and how I could further troubleshoot, and ultimately fix this > problem? > > > Thanks, > > Kyle Mallory > > --~--~---------~--~----~------------~-------~--~----~ > 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 > -~----------~----~----~----~------~----~------~--~------ @(#) $Id: dot.signature,v 1.15 2007/12/27 15:06:13 pirzyk Exp $ __o jim@pirzyk.org ------------------------------------------- _''\<,_ (*)/ (*) I''d rather be out biking. --- @(#) $Id: dot.signature,v 1.15 2007/12/27 15:06:13 pirzyk Exp $ __o jim@pirzyk.org ------------------------------------------- _''\<,_ (*)/ (*) I''d rather be out biking.
Kyle Mallory
2009-May-26 18:08 UTC
[Puppet Users] Re: "Could not prefetch package provider ''yum'': Command rpm is missing"
Thanks Jim, Digging in, trying to get versions and paths, and all that stuff to answer your questions, I found that my problem machine didn''t have ''which'' installed. Apparently puppet relies on it to resolve the path. Once I installed it, puppet ran fine. Thanks again. Kyle --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Todd Zullinger
2009-May-26 18:34 UTC
[Puppet Users] Re: "Could not prefetch package provider ''yum'': Command rpm is missing"
Kyle Mallory wrote:> Digging in, trying to get versions and paths, and all that stuff to > answer your questions, I found that my problem machine didn''t have > ''which'' installed. Apparently puppet relies on it to resolve the > path. Once I installed it, puppet ran fine.FWIW, installing the puppet packages from EPEL¹ would (or certainly should) have avoided this issue, as puppet requires facter and facter requires which. How did you install puppet? (It is arguable that puppet should require which directly as well, just to future proof against a time when facter no longer requires which. But that seems far fetched. If facter is taught to do without which, puppet probably would be by then as well.) ¹ http://fedoraproject.org/wiki/EPEL -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If age imparted wisdom, there wouldn''t be any old fools. -- Claudia Young
Kyle Mallory
2009-May-26 18:52 UTC
[Puppet Users] Re: "Could not prefetch package provider ''yum'': Command rpm is missing"
Puppet (and Facter) was installed by hand (I have a script to install the latest from reductivelabs.com). I wasn''t aware of EPEL, or that it maintained a puppet package. I''ve forwarded this on to our internal repo manager to see if this is something that we can include in our local mirrors. This is certainly welcome news. I thought it was strange the puppet required ''which'', and didn''t have a fall-back mechanism to just try executing the command directly, or manually parsing the environment path to see if it existed there. Kyle On May 26, 12:34 pm, Todd Zullinger <t...@pobox.com> wrote:> > FWIW, installing the puppet packages from EPEL¹ would (or certainly > should) have avoided this issue, as puppet requires facter and facter > requires which. How did you install puppet? > > (It is arguable that puppet should require which directly as well, > just to future proof against a time when facter no longer requires > which. But that seems far fetched. If facter is taught to do without > which, puppet probably would be by then as well.) > > ¹http://fedoraproject.org/wiki/EPEL > > -- > Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL:www.pobox.com/~tmz/pgp > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > If age imparted wisdom, there wouldn''t be any old fools. > -- Claudia Young > > application_pgp-signature_part > < 1KViewDownload--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---