Hi,
I have found a problem trying to upgrade a rhel6 package (libcgroup), the current version installed is:
libcgroup-0.37-7.el6.x86_64
And I want to install this version:
libcgroup-0.37-7.2.el6_4.x86_64
So I created a class that states:
package { 'libcgroup':
ensure => '0.37-7.2.el6_4',
}
But when I run puppet agent -t :
Error: Could not update: Failed to update to version 0.37-7.2.el6_4, got version 0.37-7.el6 instead
Error: /Stage[main]/Checks::Linux::Libcgroup/Package[libcgroup]/ensure: change from 0.37-7.el6 to 0.37-7.2.el6_4 failed: Could not update: Failed to update to version 0.37-7.2.el6_4, got version 0.37-7.el6 instead
When I run the debug yum tries to downgrade the package:
Debug: Package[libcgroup](provider=yum): Downgrading package libcgroup from version 0.37-7.el6 to 0.37-7.2.el6_4
Debug: Executing '/usr/bin/yum -d 0 -e 0 -y downgrade libcgroup-0.37-7.2.el6_4'
And obviously this package exists on the repo:
# yum install libcgroup-0.37-7.2.el6_4
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libcgroup.x86_64 0:0.37-7.el6 will be updated
--> Processing Dependency: libcgroup = 0.37-7.el6 for package: libcgroup-devel-0.37-7.el6.x86_64
---> Package libcgroup.x86_64 0:0.37-7.2.el6_4 will be an update
--> Running transaction check
---> Package libcgroup-devel.x86_64 0:0.37-7.el6 will be updated
---> Package libcgroup-devel.x86_64 0:0.37-7.2.el6_4 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================
Updating:
libcgroup x86_64 0.37-7.2.el6_4 rhel 111 k
Updating for dependencies:
libcgroup-devel x86_64 0.37-7.2.el6_4 rhel 35 k
Transaction Summary
=============================================================================================================================================
Upgrade 2 Package(s)
If I set "ensure => latest" in the package definition it works.
any hint?