Just started a "pilot" puppet server for real after messing around in VMs for the past week or so... I used the 0.24.0 since it was available, and on the test run, got this: err: Could not prefetch package provider ''yum'': Execution of ''/usr/bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'' returned 512: /usr/bin/python: can''t open file ''/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'': [Errno 2] No such file or directory Here''s the node: node "puppet" inherits default { include unix package { "puppet-server": ensure => "0.24.0-1.el5" } } The only other thing I did was #yum install ruby-rdoc Any clues? Eugene Ventimiglia Director of Systems GridApp Systems e: eventi@gridapp.com o: 646 452 4081 _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Dec 17, 2007, at 11:38 AM, Eugene Ventimiglia wrote:> Just started a "pilot" puppet server for real after messing around > in VMs for the past week or so... I used the 0.24.0 since it was > available, and on the test run, got this: > > err: Could not prefetch package provider ''yum'': Execution of ''/usr/ > bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/ > yumhelper.py'' returned 512: /usr/bin/python: can''t open file ''/usr/ > lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'': > [Errno 2] No such file or directory > > Here''s the node: > > node "puppet" inherits default { > include unix > package { "puppet-server": > ensure => "0.24.0-1.el5" > } > } > > The only other thing I did was #yum install ruby-rdoc > > Any clues?Does that file exist? If not, is it somewhere else in your Ruby path? -- Some people are afraid of heights. I''m afraid of widths. -- Stephen Wright --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
/usr/lib/ruby/site_ruby/1.8/puppet/provider/package/ has a yum.rb, but no yumhelper.rb and I ran find on /usr/lib/ruby... it doesn''t seem to be there... doesn''t it belong to puppet? -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of Luke Kanies Sent: Monday, December 17, 2007 1:49 PM To: Puppet User Discussion Subject: Re: [Puppet-users] New error in Centos 5.1 On Dec 17, 2007, at 11:38 AM, Eugene Ventimiglia wrote:> Just started a "pilot" puppet server for real after messing around in > VMs for the past week or so... I used the 0.24.0 since it was > available, and on the test run, got this: > > err: Could not prefetch package provider ''yum'': Execution of ''/usr/ > bin/python /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/ > yumhelper.py'' returned 512: /usr/bin/python: can''t open file ''/usr/ > lib/ruby/site_ruby/1.8/puppet/provider/package/yumhelper.py'': > [Errno 2] No such file or directory > > Here''s the node: > > node "puppet" inherits default { > include unix > package { "puppet-server": > ensure => "0.24.0-1.el5" > } > } > > The only other thing I did was #yum install ruby-rdoc > > Any clues?Does that file exist? If not, is it somewhere else in your Ruby path? -- Some people are afraid of heights. I''m afraid of widths. -- Stephen Wright --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Dec 17, 2007, at 1:09 PM, Eugene Ventimiglia wrote:> /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/ has a yum.rb, but > no yumhelper.rb > > and I ran find on /usr/lib/ruby... it doesn''t seem to be there... > doesn''t it belong to puppet?Looks like whatever mechanism you used to install Puppet didn''t install that file; what did you use? -- You will notice that BeOS has taken the best parts from all the major operating systems and made them its own. We''ve got the power of the Unix command line, the ease of use of the Macintosh interface, and Minesweeper from Windows. -Tyler Riti --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
well, since dlutter said he''d updated his repo, I did this: # wget http://people.redhat.com/dlutter/yum/dlutter.repo # mv dlutter.repo /etc/yum.repos.d/ # yum --enablerepo=dlutter-rhel5 install puppet-server Maybe it''s his rpm? --e -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of Luke Kanies Sent: Monday, December 17, 2007 2:51 PM To: Puppet User Discussion Subject: Re: [Puppet-users] New error in Centos 5.1 On Dec 17, 2007, at 1:09 PM, Eugene Ventimiglia wrote:> /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/ has a yum.rb, but> no yumhelper.rb > > and I ran find on /usr/lib/ruby... it doesn''t seem to be there... > doesn''t it belong to puppet?Looks like whatever mechanism you used to install Puppet didn''t install that file; what did you use? -- You will notice that BeOS has taken the best parts from all the major operating systems and made them its own. We''ve got the power of the Unix command line, the ease of use of the Macintosh interface, and Minesweeper from Windows. -Tyler Riti --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Do you mean yumhelper.py ? It''s not an .rb puppet-0.24.0/lib/puppet/provider/package/yumhelper.py It does seem to be missing from dlutter''s RPM. The spec file looks sound, no spurious *.rb glob but I haven''t tried rebuilding. There was momentarily a bug in install.rb that omitted yumhelper.py but that was fixed. Regards, Derek -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of Eugene Ventimiglia Sent: 17 December 2007 19:53 To: Puppet User Discussion Subject: Re: [Puppet-users] New error in Centos 5.1 well, since dlutter said he''d updated his repo, I did this: # wget http://people.redhat.com/dlutter/yum/dlutter.repo # mv dlutter.repo /etc/yum.repos.d/ # yum --enablerepo=dlutter-rhel5 install puppet-server Maybe it''s his rpm? --e -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of Luke Kanies Sent: Monday, December 17, 2007 2:51 PM To: Puppet User Discussion Subject: Re: [Puppet-users] New error in Centos 5.1 On Dec 17, 2007, at 1:09 PM, Eugene Ventimiglia wrote:> /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/ has a yum.rb, but> no yumhelper.rb > > and I ran find on /usr/lib/ruby... it doesn''t seem to be there... > doesn''t it belong to puppet?Looks like whatever mechanism you used to install Puppet didn''t install that file; what did you use? -- You will notice that BeOS has taken the best parts from all the major operating systems and made them its own. We''ve got the power of the Unix command line, the ease of use of the Macintosh interface, and Minesweeper from Windows. -Tyler Riti --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users ------------------------------------------------------------------------ For important statutory and regulatory disclosures and more information about Barclays Capital, please visit our web site at http://www.barcap.com. Internet communications are not secure and therefore the Barclays Group does not accept legal responsibility for the contents of this message. Although the Barclays Group operates anti-virus programmes, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Barclays Group. Replies to this email may be monitored by the Barclays Group for operational or business reasons. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. ------------------------------------------------------------------------
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 17 December 2007, Derek.Whayman@barclayscapital.com wrote:> Do you mean yumhelper.py ? It''s not an .rb > > puppet-0.24.0/lib/puppet/provider/package/yumhelper.py > > It does seem to be missing from dlutter''s RPM. The spec file looks > sound, no spurious *.rb glob but I haven''t tried rebuilding. > > There was momentarily a bug in install.rb that omitted yumhelper.py but > that was fixed.There seems to have been another problem with the tarball. From the conversation on the IRC channel the fix seems to be in the queue already. Regards, David - -- The primary freedom of open source is not the freedom from cost, but the free- dom to shape software to do what you want. This freedom is /never/ exercised without cost, but is available /at all/ only by accepting the very different costs associated with open source, costs not in money, but in time and effort. - -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHZuEl/Pp1N6Uzh0URAk+AAJ9SrP8xUavCxNh4XpHc0Pc2iGZhMACcDMN8 1HU/ixl/benus5CHtBAtcmA=K9+A -----END PGP SIGNATURE-----
Hrmmm... so, what should my puppetmaster''s node say? Once dlutter''s rpm is updated, I''m guessing I just ensure => "0.24.0-new.el5" right? --e -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of David Schmitt Sent: Monday, December 17, 2007 3:51 PM To: Puppet User Discussion Subject: Re: [Puppet-users] New error in Centos 5.1 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 17 December 2007, Derek.Whayman@barclayscapital.com wrote:> Do you mean yumhelper.py ? It''s not an .rb > > puppet-0.24.0/lib/puppet/provider/package/yumhelper.py > > It does seem to be missing from dlutter''s RPM. The spec file looks > sound, no spurious *.rb glob but I haven''t tried rebuilding. > > There was momentarily a bug in install.rb that omitted yumhelper.py > but that was fixed.There seems to have been another problem with the tarball. From the conversation on the IRC channel the fix seems to be in the queue already. Regards, David - -- The primary freedom of open source is not the freedom from cost, but the free- dom to shape software to do what you want. This freedom is /never/ exercised without cost, but is available /at all/ only by accepting the very different costs associated with open source, costs not in money, but in time and effort. - -- http://www.schierer.org/~luke/log/20070710-1129/on-forks-and-forking -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHZuEl/Pp1N6Uzh0URAk+AAJ9SrP8xUavCxNh4XpHc0Pc2iGZhMACcDMN8 1HU/ixl/benus5CHtBAtcmA=K9+A -----END PGP SIGNATURE----- _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Dec 17, 2007, at 1:53 PM, Eugene Ventimiglia wrote:> well, since dlutter said he''d updated his repo, I did this: > > # wget http://people.redhat.com/dlutter/yum/dlutter.repo > # mv dlutter.repo /etc/yum.repos.d/ > # yum --enablerepo=dlutter-rhel5 install puppet-server > > Maybe it''s his rpm?Turns out my Rakefile wasn''t including the python file -- I stupidly only checked the install.rb file, not the rakefile. It''s fixed now, and it sounds like lutter is rebuilding the RPMs. I''ve uploaded new gems and tarballs to Rubyforge and reductivelabs.com, too. -- It is a mistake to think you can solve any major problems just with potatoes. --Douglas Adams --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Mon, 2007-12-17 at 12:38 -0500, Eugene Ventimiglia wrote:> Just started a "pilot" puppet server for real after messing around in > VMs for the past week or so... I used the 0.24.0 since it was > available, and on the test run, got this:Sorry about that; I updated the RPM''s in my repo to 0.24.0-2, which now contains yumhelper.py. I am also pushing updates for Fedora and EPEL for that. David
This may be to david (dlutter) again... On a fairly stock Centos4.5 machine, I ran # yum install -y ruby ruby-libs then my super secret magic puppet install formula: # wget http://people.redhat.com/dlutter/yum/dlutter.repo # mv dlutter.repo /etc/yum.repos.d/ # yum --enablerepo=dlutter-rhel4 install puppet which aparently works, but when I run # puppetd --test /usr/sbin/puppetd:160:in `require'': No such file to load -- puppet (LoadError) from /usr/sbin/puppetd:160 Here''s the relevent version info [root@vmsvr1 ~]# rpm -q ruby ruby-libs puppet facter ruby-1.8.1-7.EL4.8.1 ruby-libs-1.8.1-7.EL4.8.1 puppet-0.24.0-2.el4 facter-1.3.8-1.el4
Is RUBYLIBS defined? Eugene Ventimiglia wrote:> This may be to david (dlutter) again... > > On a fairly stock Centos4.5 machine, I ran > > # yum install -y ruby ruby-libs > > then my super secret magic puppet install formula: > > # wget http://people.redhat.com/dlutter/yum/dlutter.repo > # mv dlutter.repo /etc/yum.repos.d/ > # yum --enablerepo=dlutter-rhel4 install puppet > > which aparently works, but when I run > > # puppetd --test > > /usr/sbin/puppetd:160:in `require'': No such file to load -- puppet > (LoadError) > from /usr/sbin/puppetd:160 > > Here''s the relevent version info > [root@vmsvr1 ~]# rpm -q ruby ruby-libs puppet facter > ruby-1.8.1-7.EL4.8.1 > ruby-libs-1.8.1-7.EL4.8.1 > puppet-0.24.0-2.el4 > facter-1.3.8-1.el4 > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >
On Tue, 2007-12-18 at 16:18 -0500, Eugene Ventimiglia wrote:> # puppetd --test > > /usr/sbin/puppetd:160:in `require'': No such file to load -- puppet > (LoadError) > from /usr/sbin/puppetd:160Looks like the ruby lib path is somehow screwy .. what does "ruby -e ''$:''" print ? Make sure that the directory that contains puppet.rb is in there (you can find that with ''rpm -ql puppet | grep puppet.rb'') Is this on x86_64 ? I have faint memories that ruby on RHEL4 for x86_64 had something funky in $: ... but it might be something else. David
That was probably supposed to be: ruby -e ''p $:'' :-) Cheers, Ryan -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of David Lutterkort Sent: Tuesday, December 18, 2007 2:11 PM To: Puppet User Discussion Subject: Re: [Puppet-users] Install on Centos4.5 report On Tue, 2007-12-18 at 16:18 -0500, Eugene Ventimiglia wrote:> # puppetd --test > > /usr/sbin/puppetd:160:in `require'': No such file to load -- puppet > (LoadError) > from /usr/sbin/puppetd:160Looks like the ruby lib path is somehow screwy .. what does "ruby -e ''$:''" print ? Make sure that the directory that contains puppet.rb is in there (you can find that with ''rpm -ql puppet | grep puppet.rb'') Is this on x86_64 ? I have faint memories that ruby on RHEL4 for x86_64 had something funky in $: ... but it might be something else. David _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
It is on x86_64... I forgot to tell you (and the list) that rhel/4/x86_64 does not exist on your repo, so I hacked your repo file to read: [dlutter-rhel4] name=Unsupported RHEL4 packages (lutter) #baseurl=http://people.redhat.com/dlutter/yum/rhel/4/$basearch/ baseurl=http://people.redhat.com/dlutter/yum/rhel4 enabled=1 gpgcheck=0 which installed puppet-0.24.0-2.el4.i386.rpm To answer your q: ruby -e ''$:'' returns nothing. I havn''t looked at ruby since my wife was pregnant with my first daughter who just turned 9, so I wouldn''t know where to begin with that. Thanks for the help --e -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of David Lutterkort Sent: Tuesday, December 18, 2007 5:11 PM To: Puppet User Discussion Subject: Re: [Puppet-users] Install on Centos4.5 report On Tue, 2007-12-18 at 16:18 -0500, Eugene Ventimiglia wrote:> # puppetd --test > > /usr/sbin/puppetd:160:in `require'': No such file to load -- puppet > (LoadError) > from /usr/sbin/puppetd:160Looks like the ruby lib path is somehow screwy .. what does "ruby -e ''$:''" print ? Make sure that the directory that contains puppet.rb is in there (you can find that with ''rpm -ql puppet | grep puppet.rb'') Is this on x86_64 ? I have faint memories that ruby on RHEL4 for x86_64 had something funky in $: ... but it might be something else. David _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Well, that returns: [root@vmsvr1 ~]# ruby -e ''p $:'' ["/usr/lib64/site_ruby/1.8", "/usr/lib64/site_ruby/1.8/x86_64-linux-gnu", "/usr/lib64/site_ruby", "/usr/lib64/ruby/1.8", "/usr/lib64/ruby/1.8/x86_64-linux-gnu", "."] [root@vmsvr1 ~]# it looks like a symlink can fix this right quick: I did: # cd /usr/lib64/site_ruby/1.8 # for n in /usr/lib/site_ruby/1.8/* ; do ln -s $n . ; done and puppet is happy -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of Ryan Dooley Sent: Tuesday, December 18, 2007 5:14 PM To: Puppet User Discussion Subject: Re: [Puppet-users] Install on Centos4.5 report That was probably supposed to be: ruby -e ''p $:'' :-) Cheers, Ryan -----Original Message----- From: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] On Behalf Of David Lutterkort Sent: Tuesday, December 18, 2007 2:11 PM To: Puppet User Discussion Subject: Re: [Puppet-users] Install on Centos4.5 report On Tue, 2007-12-18 at 16:18 -0500, Eugene Ventimiglia wrote:> # puppetd --test > > /usr/sbin/puppetd:160:in `require'': No such file to load -- puppet > (LoadError) > from /usr/sbin/puppetd:160Looks like the ruby lib path is somehow screwy .. what does "ruby -e ''$:''" print ? Make sure that the directory that contains puppet.rb is in there (you can find that with ''rpm -ql puppet | grep puppet.rb'') Is this on x86_64 ? I have faint memories that ruby on RHEL4 for x86_64 had something funky in $: ... but it might be something else. David _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Did you bump the version number? The most recent version I can see on rubyforge is 0.24.0. Luke Kanies wrote:> On Dec 17, 2007, at 1:53 PM, Eugene Ventimiglia wrote: > >> well, since dlutter said he''d updated his repo, I did this: >> >> # wget http://people.redhat.com/dlutter/yum/dlutter.repo >> # mv dlutter.repo /etc/yum.repos.d/ >> # yum --enablerepo=dlutter-rhel5 install puppet-server >> >> Maybe it''s his rpm? > > Turns out my Rakefile wasn''t including the python file -- I stupidly > only checked the install.rb file, not the rakefile. > > It''s fixed now, and it sounds like lutter is rebuilding the RPMs. > I''ve uploaded new gems and tarballs to Rubyforge and > reductivelabs.com, too. > > -- > It is a mistake to think you can solve any major problems just with > potatoes. --Douglas Adams > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users-- Iain Pople Systems Interface Technical Lead University of Melbourne
I now experience the following error using the gem from reductive labs: # puppetd --test notice: Ignoring --listen on onetime run notice: Ignoring cache info: Caching catalog at /var/puppet/state/localconfig.yaml notice: Starting catalog run err: Could not prefetch package provider ''yum'': Execution of ''/usr/bin/python /usr/lib64/ruby/gems/1.8/gems/puppet-0.24.0/lib/puppet/provider/package/yumhelper.py'' returned 256: Loading "rhnplugin" plugin Loading "installonlyn" plugin Traceback (most recent call last): File "/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.0/lib/puppet/provider/package/yumhelper.py", line 31, in ? ypl = pkg_lists() File "/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.0/lib/puppet/provider/package/yumhelper.py", line 28, in pkg_lists return my.doPackageLists(''updates'') File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 988, in doPackageLists self.doRepoSetup() File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 299, in doRepoSetup repo.setup(self.conf.cache) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 503, in setup self._loadRepoXML(text=self) File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 530, in _loadRepoXML cache=self.http_caching == ''all'') File "/usr/lib/yum-plugins/rhnplugin.py", line 209, in _getFile start, end, copy_local, checkfunc, text, reget, cache) File "/usr/lib/yum-plugins/rhnplugin.py", line 298, in _noExceptionWrappingGet return result UnboundLocalError: local variable ''result'' referenced before assignment notice: Finished catalog run in 8.02 seconds Luke Kanies wrote:> On Dec 17, 2007, at 1:53 PM, Eugene Ventimiglia wrote: > >> well, since dlutter said he''d updated his repo, I did this: >> >> # wget http://people.redhat.com/dlutter/yum/dlutter.repo >> # mv dlutter.repo /etc/yum.repos.d/ >> # yum --enablerepo=dlutter-rhel5 install puppet-server >> >> Maybe it''s his rpm? > > Turns out my Rakefile wasn''t including the python file -- I stupidly > only checked the install.rb file, not the rakefile. > > It''s fixed now, and it sounds like lutter is rebuilding the RPMs. > I''ve uploaded new gems and tarballs to Rubyforge and > reductivelabs.com, too. > > -- > It is a mistake to think you can solve any major problems just with > potatoes. --Douglas Adams > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users-- Iain Pople Systems Interface Technical Lead University of Melbourne
On Dec 19, 2007, at 12:05 AM, Iain Pople wrote:> Traceback (most recent call last): > File > "/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.0/lib/puppet/provider/ > package/yumhelper.py", > line 31, in ? > ypl = pkg_lists() > File > "/usr/lib64/ruby/gems/1.8/gems/puppet-0.24.0/lib/puppet/provider/ > package/yumhelper.py", > line 28, in pkg_lists > return my.doPackageLists(''updates'') > File "/usr/lib/python2.4/site-packages/yum/__init__.py", line > 988, in > doPackageLists > self.doRepoSetup() > File "/usr/lib/python2.4/site-packages/yum/__init__.py", line > 299, in > doRepoSetup > repo.setup(self.conf.cache) > File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line > 503, in > setup > self._loadRepoXML(text=self) > File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line > 530, in > _loadRepoXML > cache=self.http_caching == ''all'') > File "/usr/lib/yum-plugins/rhnplugin.py", line 209, in _getFile > start, end, copy_local, checkfunc, text, reget, cache) > File "/usr/lib/yum-plugins/rhnplugin.py", line 298, in > _noExceptionWrappingGet > return result > UnboundLocalError: local variable ''result'' referenced before > assignment > > notice: Finished catalog run in 8.02 secondsUnfortunately, someone who knows more about yum than I do will have to help here. All I can do is include the files.... -- My favorite was a professor at a University I Used To Be Associated With who claimed that our requirement of a non-alphabetic character in our passwords was an abridgement of his freedom of speech. -- Jacob Haller --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Tue, 2007-12-18 at 17:34 -0500, Eugene Ventimiglia wrote:> It is on x86_64... I forgot to tell you (and the list) that > rhel/4/x86_64 does not exist on your repo, so I hacked your repo file to > read: > > [dlutter-rhel4] > name=Unsupported RHEL4 packages (lutter) > #baseurl=http://people.redhat.com/dlutter/yum/rhel/4/$basearch/ > baseurl=http://people.redhat.com/dlutter/yum/rhel4 > enabled=1 > gpgcheck=0 > > which installed puppet-0.24.0-2.el4.i386.rpm > > To answer your q: ruby -e ''$:'' returns nothing. I havn''t looked at ruby > since my wife was pregnant with my first daughter who just turned 9, so > I wouldn''t know where to begin with that.That''s the problem: because of how ruby on RHEL4 sets up its load path, ruby rpm''s on RHEL4 are arch specific. Yes, my repo doesn''t have x86_64 for RHEL4. You can do one of two things: (1) rebuild hte src.rpm yourself on a RHEL4 machine or (2) pull puppet-0.24.0-2 from epel-testing [1] David [1] one repo is at http://download.fedora.redhat.com/pub/epel/testing/4/x86_64/ but I believe epel-release installs the right yum repo configs to use mirros
On Wed, 2007-12-19 at 17:05 +1100, Iain Pople wrote:> I now experience the following error using the gem from reductive labs: > > # puppetd --test > notice: Ignoring --listen on onetime run > notice: Ignoring cache > info: Caching catalog at /var/puppet/state/localconfig.yaml > notice: Starting catalog run > err: Could not prefetch package provider ''yum'': Execution of > ''/usr/bin/python > /usr/lib64/ruby/gems/1.8/gems/puppet-0.24.0/lib/puppet/provider/package/yumhelper.py'' > returned 256: Loading "rhnplugin" pluginDoes yum from the command line work properly on that machine ? Looks there''s somethign afoot with the rhnplugin. Also, try running that python command above from the command line. Are you on RHEL or CentOS ? On CentOS, you should disable the rhnplugin, it won''t do anything useful anyway. David
David Lutterkort wrote:> Does yum from the command line work properly on that machine ? Looks > there''s somethign afoot with the rhnplugin. Also, try running that > python command above from the command line. >You''re right. it was a problem with yum. -- Iain Pople Systems Interface Technical Lead University of Melbourne