Issue #18238 has been updated by eric sorenson.
Status changed from Unreviewed to Duplicate
Description editing is under the "More" link on "Change properties" when you
update the bug. (I believe this is accessible to the bug originator but I could
be wrong)
I'm not sure how to make this work in puppet as it is today. Putting the two
package names in an array does not do the same thing as your commandline (run
them both in one yum/rpm transaction); it generates two different transactions,
hence the error. This is in essence bug #2198. You could work around the
problem by using an exec resource:
<pre>
exec { 'install_libtiff':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
command => 'yum -y install libtiff.i686 libtiff.x86_64',
unless => 'rpm -qa | grep -q libtiff'
}
</pre>
This is a duplicate of #2198, so I am closing this ticket in favor of the older
one. Please add yourself as a watcher on that ticket to track the progress of
the fix.
----------------------------------------
Bug #18238: Upgrading multilib versions (i686 + x86_64) not working
https://projects.puppetlabs.com/issues/18238#change-79721
Author: Jon Skarpeteig
Status: Duplicate
Priority: High
Assignee:
Category:
Target version:
Affected Puppet version: 2.6.17
Keywords: CentOS, multilib
Branch:
CentOS 6.3 using Puppet client from epel repo:
$pkg_name = ["libtiff.i686", "libtiff.x86_64"]
package {
$pkg_name :
ensure => "latest"
}
Result:
err: /Stage[main]/Buildserverclass/Package[libtiff.x86_64]/ensure: change from
3.9.4-6.el6_3 to 3.9.4-9.el6_3 failed: Could not update: Execution of
'/usr/bin/yum -d 0 -e 0 -y install libtiff.x86_64' returned 1: Error: Protected
multilib versions: libtiff-3.9.4-9.el6_3.x86_64 != libtiff-3.9.4-6.el6_3.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
at /etc/puppet/manifests/profiles.pp:187
err: /Stage[main]/Buildserverclass/Package[libtiff.i686]/ensure: change from
3.9.4-6.el6_3 to 3.9.4-9.el6_3 failed: Could not update: Execution of
'/usr/bin/yum -d 0 -e 0 -y install libtiff.i686' returned 1: Error: Protected
multilib versions: libtiff-3.9.4-9.el6_3.i686 != libtiff-3.9.4-6.el6_3.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
at /etc/puppet/manifests/profiles.pp:187
Using
$pkg_name = ["libtiff"]
Gives same result (but only for x86_64)
Expected behavior:
yum install libtiff.i686 libtiff.x86_64 -y
Which successfully upgrades the library when run at the OS level.
--
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.