Bug 630983
| Summary: | yum not working properly with yum-plugin-versionlock | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Karel Srot <ksrot> |
| Component: | yum | Assignee: | James Antill <james.antill> |
| Status: | CLOSED ERRATA | QA Contact: | Karel Srot <ksrot> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0 | CC: | borgan |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | yum-3.2.29-1.el6 | Doc Type: | Bug Fix |
| Doc Text: |
Cause: excludes of obsoleting packages didn't work properly
Consequence: versionlock plugin couldn't lock over obsoletes properly
Fix: add extra checks to make sure obsoleters exist
Result: versionlock of obsoletes works again (and similar code)
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-19 13:33:41 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 629274 | ||
| Bug Blocks: | 592206 | ||
'yum check-update' is working
'yum update blah' and 'yum update' is not working
[root@rhel6-64 yum]# yum --disablerepo='*' --enablerepo=test update
Loaded plugins: refresh-packagekit, rhnplugin, versionlock
This system is not registered with RHN.
RHN support will be disabled.
Setting up Update Process
Error: Package tuple ('test-bbb', 'x86_64', '0', '0.1', '1') could not be found in packagesack
[root@rhel6-64 yum]# yum --disablerepo='*' --enablerepo=test update test-aaa
Loaded plugins: refresh-packagekit, rhnplugin, versionlock
This system is not registered with RHN.
RHN support will be disabled.
Setting up Update Process
Error: Package tuple ('test-bbb', 'x86_64', '0', '0.1', '1') could not be found in packagesack
[root@rhel6-64 yum]# yum --disablerepo='*' --enablerepo=test check-update
Loaded plugins: refresh-packagekit, rhnplugin, versionlock
This system is not registered with RHN.
RHN support will be disabled.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Cause: excludes of obsoleting packages didn't work properly
Consequence: versionlock plugin couldn't lock over obsoletes properly
Fix: add extra checks to make sure obsoleters exist
Result: versionlock of obsoletes works again (and similar code)
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0602.html |
Description of problem: I have created packages as described below. The point is to have test-aaa-0.1-1 package installed and in the repo test-bbb-0.2-2 package that obsoletes test-aaa. test-aaa-0.1-1 is also listed in /etc/yum/pluginconf.d/versionlock.conf so it should not be updated. After running "yum update" the package is not updated (that's fine) but I get following output and yum exits with exit code 1: ... Setting up Update Process Error: Package tuple ('test-bbb', 'i386', '0', '0.2', '2') could not be found in packagesack [root@rhel6 rpm]# If I disable versionlock in conf file the update is performed. For more details see https://bugzilla.redhat.com/show_bug.cgi?id=592206 Version-Release number of selected component (if applicable): yum-3.2.27-13.el6.noarch yum-utils-1.1.26-9.el6.noarch yum-plugin-versionlock-1.1.26-11.el6.noarch How reproducible: always Steps to Reproduce: 1. have 4 packages like this: p = rpmfluff.SimpleRpmBuild('test-aaa', '0.1', '1') p = rpmfluff.SimpleRpmBuild('test-aaa', '0.2', '2') p = rpmfluff.SimpleRpmBuild('test-bbb', '0.1', '1') p = rpmfluff.SimpleRpmBuild('test-bbb', '0.2', '2') p.add_obsoletes('test-aaa') 2. # rpm -q test-aaa test-bbb test-aaa-0.1-1 test-bbb-0.1-1 3. # cat /etc/yum/pluginconf.d/versionlock.conf' [main] enabled=1 locklist=/etc/yum/pluginconf.d/versionlock-bz449989.list follow_obsoletes=1 # cat /etc/yum/pluginconf.d/versionlock-bz449989.list 0:test-aaa-0.1-1.i386 4. # yum -y update Actual results: Expected results: no error message Additional info: