Hi, I just got my local yum repo setup so that I can use puppet to install packages... and it looks like something is not working. <snip> Tue Sep 19 02:13:05 PDT 2006 Puppet (notice): Starting configuration run Tue Sep 19 02:13:10 PDT 2006 //default/java/package=jdk/ensure (err): change from absent to latest failed: Could not update: Could not execute ''/usr/bin/yum -y install jdk'' in file /etc/puppet/manifests/ classes/java.pp at line 9 Tue Sep 19 02:13:13 PDT 2006 Puppet (notice): Finished configuration run in 7.94 seconds </snip> It looks like it is complaining about this command: /usr/bin/yum -y install jdk But, I can run that just fine and it does install the jdk package. /etc/puppet/manifests/classes/java.pp (which installs the packages and makes a link): <snip> class java { package { jdk: provider => yum, ensure => latest } file { "/usr/java/jdk1.5": ensure => "/usr/java/jdk1.5.0_08" } package { j2sdk: provider => yum, ensure => latest } file { "/usr/java/jdk1.4": ensure => "/usr/java/j2sdk1.4.2_12" } } </snip> Using Puppet 0.19.0 (from the FC5 dist): <snip> # puppet -V 0.19.0 </snip> Running `puppetd --server myserver --debug` spits out (truncated): <snip> debug: jdk(provider=yum): Executing ''/bin/rpm -q jdk --qf ''%{NAME} % {VERSION}-%{RELEASE} '''' debug: //default/java/package=jdk: Changing ensure debug: //default/java/package=jdk: 1 change(s) debug: //default/java/package=jdk/ensure: setting latest (currently absent) debug: jdk(provider=yum): Executing ''/usr/bin/yum -y install jdk'' /usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:266:in `fail'' /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:58:in `set_latest'' /usr/lib/ruby/site_ruby/1.8/puppet/type/state.rb:256:in `set'' /usr/lib/ruby/site_ruby/1.8/puppet/type/state.rb:363:in `sync'' /usr/lib/ruby/site_ruby/1.8/puppet/statechange.rb:48:in `go'' /usr/lib/ruby/site_ruby/1.8/puppet/statechange.rb:94:in `forward'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:77:in `apply'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:69:in `apply'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:169:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:510:in `thinmark'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:509:in `thinmark'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:168:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:161:in `evaluate'' /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:116:in `apply'' /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:460:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:370:in `benchmark'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:369:in `benchmark'' /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:459:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:373:in `lock'' /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:449:in `run'' /usr/lib/ruby/site_ruby/1.8/puppet/client.rb:121:in `runnow'' /usr/lib/ruby/site_ruby/1.8/puppet/client.rb:178:in `start'' /usr/lib/ruby/site_ruby/1.8/puppet.rb:431:in `start'' /usr/lib/ruby/site_ruby/1.8/puppet.rb:307:in `newthread'' /usr/lib/ruby/site_ruby/1.8/puppet.rb:306:in `newthread'' /usr/lib/ruby/site_ruby/1.8/puppet.rb:429:in `start'' /usr/lib/ruby/site_ruby/1.8/puppet.rb:428:in `start'' /usr/sbin/puppetd:443 err: //default/java/package=jdk/ensure: change from absent to latest failed: Could not update: Could not execute ''/usr/bin/yum -y install jdk'' in file /etc/puppet/manifests/classes/java.pp at line 9 debug: j2sdk(provider=yum): Executing ''/bin/rpm -q j2sdk --qf ''% {NAME} %{VERSION}-%{RELEASE} '''' debug: j2sdk(provider=yum): Executing ''/usr/bin/yum list available j2sdk'' debug: Finishing transaction 23456264308596 with 1 changes </snip> Nothing obvious to me... anyone have any ideas why this is not working? Thanks, --jason
Um... never mind, I had the yum repo configured to expected these to be signed, and this rpm was not... I wish that the output of the command that was executed was captured in the debug stream, or really in the logs when an error occurs. --jason On Sep 19, 2006, at 2:24 AM, Jason Dillon wrote:> Hi, I just got my local yum repo setup so that I can use puppet to > install packages... and it looks like something is not working. > > <snip> > Tue Sep 19 02:13:05 PDT 2006 Puppet (notice): Starting > configuration run > Tue Sep 19 02:13:10 PDT 2006 //default/java/package=jdk/ensure > (err): change from absent to latest failed: Could not update: Could > not execute ''/usr/bin/yum -y install jdk'' in file /etc/puppet/ > manifests/classes/java.pp at line 9 > Tue Sep 19 02:13:13 PDT 2006 Puppet (notice): Finished > configuration run in 7.94 seconds > </snip> > > It looks like it is complaining about this command: > > /usr/bin/yum -y install jdk > > But, I can run that just fine and it does install the jdk package. > > /etc/puppet/manifests/classes/java.pp (which installs the packages > and makes a link): > <snip> > class java { > package { jdk: > provider => yum, > ensure => latest > } > file { "/usr/java/jdk1.5": > ensure => "/usr/java/jdk1.5.0_08" > } > > package { j2sdk: > provider => yum, > ensure => latest > } > file { "/usr/java/jdk1.4": > ensure => "/usr/java/j2sdk1.4.2_12" > } > } > </snip> > > Using Puppet 0.19.0 (from the FC5 dist): > > <snip> > # puppet -V > 0.19.0 > </snip> > > Running `puppetd --server myserver --debug` spits out (truncated): > > <snip> > debug: jdk(provider=yum): Executing ''/bin/rpm -q jdk --qf ''%{NAME} % > {VERSION}-%{RELEASE} > '''' > debug: //default/java/package=jdk: Changing ensure > debug: //default/java/package=jdk: 1 change(s) > debug: //default/java/package=jdk/ensure: setting latest (currently > absent) > debug: jdk(provider=yum): Executing ''/usr/bin/yum -y install jdk'' > /usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:266:in `fail'' > /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:58:in `set_latest'' > /usr/lib/ruby/site_ruby/1.8/puppet/type/state.rb:256:in `set'' > /usr/lib/ruby/site_ruby/1.8/puppet/type/state.rb:363:in `sync'' > /usr/lib/ruby/site_ruby/1.8/puppet/statechange.rb:48:in `go'' > /usr/lib/ruby/site_ruby/1.8/puppet/statechange.rb:94:in `forward'' > /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:77:in `apply'' > /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:69:in `apply'' > /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:169:in `evaluate'' > /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:510:in `thinmark'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' > /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:509:in `thinmark'' > /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:168:in `evaluate'' > /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:161:in `evaluate'' > /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:116:in `apply'' > /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:460:in `run'' > /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:370:in `benchmark'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' > /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:369:in `benchmark'' > /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:459:in `run'' > /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:373:in `lock'' > /usr/lib/ruby/site_ruby/1.8/puppet/client/master.rb:449:in `run'' > /usr/lib/ruby/site_ruby/1.8/puppet/client.rb:121:in `runnow'' > /usr/lib/ruby/site_ruby/1.8/puppet/client.rb:178:in `start'' > /usr/lib/ruby/site_ruby/1.8/puppet.rb:431:in `start'' > /usr/lib/ruby/site_ruby/1.8/puppet.rb:307:in `newthread'' > /usr/lib/ruby/site_ruby/1.8/puppet.rb:306:in `newthread'' > /usr/lib/ruby/site_ruby/1.8/puppet.rb:429:in `start'' > /usr/lib/ruby/site_ruby/1.8/puppet.rb:428:in `start'' > /usr/sbin/puppetd:443 > err: //default/java/package=jdk/ensure: change from absent to > latest failed: Could not update: Could not execute ''/usr/bin/yum -y > install jdk'' in file /etc/puppet/manifests/classes/java.pp at line 9 > debug: j2sdk(provider=yum): Executing ''/bin/rpm -q j2sdk --qf ''% > {NAME} %{VERSION}-%{RELEASE} > '''' > debug: j2sdk(provider=yum): Executing ''/usr/bin/yum list available > j2sdk'' > debug: Finishing transaction 23456264308596 with 1 changes > </snip> > > Nothing obvious to me... anyone have any ideas why this is not > working? > > Thanks, > > --jason
On Tue, 2006-09-19 at 02:24 -0700, Jason Dillon wrote:> Nothing obvious to me... anyone have any ideas why this is not working?Nothing obvious to me either ... one thought is that yum could have either have had trouble finding an appropriate mirror, though it seems you are trying to install Sun''s JDK, which I assume you put into your own local yum repo. What does ''yum list available jdk'' return ? David
Sorry, I spoke to soon... `yum install -y jdk` manually was actually complaining about it not being signed and I did not realize. I added out local rpm signature to the rpm and it installed just fine via puppet. Sorry for the noise. --jason On Sep 19, 2006, at 2:34 AM, David Lutterkort wrote:> On Tue, 2006-09-19 at 02:24 -0700, Jason Dillon wrote: >> Nothing obvious to me... anyone have any ideas why this is not >> working? > > Nothing obvious to me either ... one thought is that yum could have > either have had trouble finding an appropriate mirror, though it seems > you are trying to install Sun''s JDK, which I assume you put into your > own local yum repo. > > What does ''yum list available jdk'' return ? > > David > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users
Jason Dillon wrote:> Um... never mind, I had the yum repo configured to expected these to > be signed, and this rpm was not... > > I wish that the output of the command that was executed was captured > in the debug stream, or really in the logs when an error occurs.I just checked the code and realized why it''s not producing output, and I just committed the fix (and a regression test, yay). -- oH for Pete''s sake, use a real filter. ;-) -- Tom Christiansen Look, I refuse to install any filter which looks like it''s more highly evolved than homo sapiens, it will just get embarassing when it starts critiquing the literrary style of my friends mail to me. -- Richard Caley, in comp.lang.perl.misc --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com