Issue #13616 has been updated by Jeff Weiss.

Status changed from Unreviewed to Needs More Information
Assignee set to Luke Bigum

Testing against CentOS 6.2 x86_64 minimal install.

Rather than flash, trying with something without as many deps: glibc.

After stock install, ran `yum install glibc-2.12-1.47.el6.i686`, which should 
match the x86_64 version, both of which have updates available.

<code>
<pre>
[root@centos-6 ~]# rpm -qa | grep glibc
glibc-2.12-1.47.el6.x86_64
glibc-2.12-1.47.el6.i686
</pre>
</code>

with this manifest:

<code>
<pre>
package {'glibc':
  ensure => latest,
}
</pre>
</code>

After which I now have
<code>
<pre>
[root@centos-6 ~]# rpm -qa | grep glibc
glibc-2.12-1.47.el6_2.9.x86_64
glibc-2.12-1.47.el6_2.9.i686
</pre>
</code>

This seems to work for both archs for glibc.

Can you tell me which yum repo you're using for flash-plugin?
----------------------------------------
Bug #13616: yum provider will not ensure => latest with different architectures 
of the same package
https://projects.puppetlabs.com/issues/13616#change-59960

Author: Luke Bigum
Status: Needs More Information
Priority: Normal
Assignee: Luke Bigum
Category: 
Target version: 
Affected Puppet version: 2.7.12
Keywords: puppet package yum
Branch: 


The yum package provider seems to be getting confused when there are multiple 
architecture RPMs of the same package intalled, say i386 and x86_64. For 
example I am unable to use the package type to update both versions of the 
flash-plugin package. The version and arch checks detects that a package needs 
to be updated, but the yum call does not do an update:

    [root@pig ~]# rpm -qa | grep flash
    flash-plugin-10.2.159.1-release.i386
    flash-plugin-11.2.202.228-release.x86_64
    ...
    debug: /Stage[main]/Pairing_stations::Install/Package[flash-plugin]/ensure: 
flash-plugin "10.2.159.1-release" is installed, latest is 
"0:11.2.202.228-release"
    debug: Package[flash-plugin](provider=yum): Ensuring => latest
    debug: Puppet::Type::Package::ProviderYum: Executing '/usr/bin/yum -d 0 -e 
0 -y install flash-plugin'
    debug: Puppet::Type::Package::ProviderYum: Executing '/bin/rpm -q 
flash-plugin --nosignature --nodigest --qf %{NAME} %|EPOCH?{%{EPOCH}}:{0}| 
%{VERSION} %{RELEASE} %{ARCH}
    '
    notice: 
/Stage[main]/Pairing_stations::Install/Package[flash-plugin]/ensure: ensure 
changed '10.2.159.1-release' to '0:11.2.202.228-release'
    ...
    [root@pig ~]# rpm -qa | grep flash
    flash-plugin-11.2.202.228-release.x86_64
    flash-plugin-10.2.159.1-release.i386

Puppet would continually try and update this package and fail.

If the yum provider calls "yum update <package>" this would succeed.


-- 
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.

Reply via email to