Silviu,
My system is aware of both the -1 and -2 releases in the repo.
This is before running puppet...
papp1 ~:# yum list
tf-elements-core-tfel0-14.3-1.tf
[ stuff removed ]
Available Packages
tf-elements-core-tfel0.noarch
14.3-1.tf
papp1 ~:# yum list
tf-elements-core-tfel0-14.3-2.tf
[ stuff removed ]
Available Packages
tf-elements-core-tfel0.noarch
14.3-2.tf
My manifest has:
package {
"
tf-elements-core-14.3-1.tf":
ensure => "${release}";
}
and here's what puppet logs when it barfs:
debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -q
tf-elements-core-tfel0 --nosignature --nodigest --qf %{NAME}
%|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}
'
debug: //Node[
papp1.fr.twofish.com]/Elements::Setup[tfel0]/Package[tf-elements-core-tfel0]:
Changing ensure
debug: //Node[
papp1.fr.twofish.com]/Elements::Setup[tfel0]/Package[tf-elements-core-tfel0]:
1 change(s)
debug: Package[tf-elements-core-tfel0](provider=yum): Ensuring =>
14.3-1.tf
debug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/yum -d
0 -e 0 -y install
tf-elements-core-tfel0-14.3-1.tf'
debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -q
tf-elements-core-tfel0 --nosignature --nodigest --qf %{NAME}
%|EPOCH?{%{EPOCH}}:{0}| %{VERSION} %{RELEASE} %{ARCH}
'
/usr/lib/ruby/site_ruby/1.8/puppet/parameter.rb:279:in `fail'
/usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:88
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:180:in `instance_eval'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:180:in `call_valuemethod'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:349:in `set'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:421:in `sync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/change.rb:54:in `go'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/change.rb:72:in `forward'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:118:in `apply_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:111:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:111:in `apply_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:83:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:239:in `eval_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:426: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:425:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:238:in `eval_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:310:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:426: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:425:in `thinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:309:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:303:in `collect'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:303:in `evaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/node/catalog.rb:124:in `apply'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:256:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:181: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:180:in `benchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:255:in `run'
/usr/lib/ruby/1.8/sync.rb:229:in `synchronize'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:237:in `run'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client.rb:136:in `runnow'
/usr/lib/ruby/site_ruby/1.8/puppet/network/client.rb:187:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:293:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:144:in `newthread'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `initialize'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `new'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:143:in `newthread'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:291:in `start'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:290:in `each'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:290:in `start'
/usr/sbin/puppetd:437
err: //Node[
papp1.fr.twofish.com]/Elements::Setup[tfel0]/Package[tf-elements-core-tfel0]/ensure:
change from
14.3-2.tf to
14.3-1.tf failed: Could not update: Failed to
update to version 14.3
-
1.tf, got version
14.3-2.tf instead at
/etc/puppet/modules/elements/manifests/init.pp:31
To my surprise, it appears that eventhough puppet complains with an
error, that it actually installed the RPM anyway. Excuting this right
after that puppet run:
papp1 ~:# rpm -qa tf-elements-core-tfel0
tf-elements-core-tfel0-14.3-1.tf
shows that release -1 was actually installed. Huh??? I'm suddenly
confused. That debug output there looks confusing. When puppet was
run, this RPM was NOT installed, and the manifest has ensure =>
"
14.3-1.tf", but puppet it saying that it was trying to go from
version
14.3-2.tf to 14.3-1.tf.... What is puppet smoking???
Doug