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?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e135cb09-a92e-4992-bead-dbf0d54ea269%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to