Issue #4992 has been reported by Nathan Rich.
----------------------------------------
Bug #4992: package type failing latest attempt.. should use 'update'
https://projects.puppetlabs.com/issues/4992
Author: Nathan Rich
Status: Unreviewed
Priority: Normal
Assignee:
Category: package
Target version:
Affected version: 2.6.2
Keywords: yum update package
Branch:
This is how to update a package with yum. It works on this system. 'yum update'
will look for existing packages by that name and update them:
# yum update nss
Loaded plugins: protectbase, refresh-packagekit
0 packages excluded due to repository protections
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: nss = 3.12.2.0-5.fc10 for package: nss-tools
---> Package nss.x86_64 0:3.12.3.99.3-2.10.6.fc10 set to be updated
---> Package nss.i386 0:3.12.3.99.3-2.10.6.fc10 set to be updated
--> Running transaction check
---> Package nss-tools.x86_64 0:3.12.3.99.3-2.10.6.fc10 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version
Repository Size
=============================================================================================================================
Updating:
nss x86_64 3.12.3.99.3-2.10.6.fc10
updates 1.2 M
nss i386 3.12.3.99.3-2.10.6.fc10
updates 1.1 M
Updating for dependencies:
nss-tools x86_64 3.12.3.99.3-2.10.6.fc10
updates 1.2 M
Transaction Summary
=============================================================================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)
Total size: 3.5 M
Total download size: 2.4 M
Is this ok [y/N]:
This doesn't work because it only tries to install the single nss package and
doesn't update all existing (64+32) packages called nss:
# yum install nss
Loaded plugins: protectbase, refresh-packagekit
0 packages excluded due to repository protections
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package nss.x86_64 0:3.12.3.99.3-2.10.6.fc10 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version
Repository Size
=============================================================================================================================
Updating:
nss x86_64 3.12.3.99.3-2.10.6.fc10
updates 1.2 M
Transaction Summary
=============================================================================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total size: 1.2 M
Is this ok [y/N]:
basically doing:
package{"nss":
ensure => "latest",
}
puppet debug:
debug: /Stage[main]/Chrome/Package[nss]/ensure: nss "3.12.2.0-5.fc10" is
installed, latest is "3.12.3.99.3-2.10.6.fc10"
debug: Package[nss](provider=yum): Ensuring => latest
debug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/yum -d 0 -e
0 -y install nss'
err: /Stage[main]/Chrome/Package[nss]/ensure: change from 3.12.2.0-5.fc10
to 3.12.3.99.3-2.10.6.fc10 failed: Could not update: Execution of '/usr/bin/yum
-d 0 -e 0 -y install nss' returned 1:
Transaction Check Error:
file /etc/prelink.conf.d/nss-prelink.conf from install of
nss-3.12.3.99.3-2.10.6.fc10.x86_64 conflicts with file from package
nss-3.12.2.0-5.fc10.i386
Error Summary
-------------
at /etc/puppet/modules/chrome/manifests/init.pp:9
notice: /Stage[main]/Chrome/Package[google-chrome-stable]: Dependency
Package[nss] has failures: true
warning: /Stage[main]/Chrome/Package[google-chrome-stable]: Skipping
because of failed dependencies
So you see it's trying to use 'install' to update packages, which is in my
opinion a bug.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.