Bug 984305

Summary: fedup doesn't remove obsoleted packages
Product: [Fedora] Fedora Reporter: Martin B. <martin.bukatovic>
Component: fedupAssignee: Will Woods <wwoods>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: martin.bukatovic, tflink, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-06 21:02:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fedup logs none

Description Martin B. 2013-07-14 16:55:32 UTC
Description of problem
======================

Fedup doesn't remove packages which were declared as obsolete (and so are not   
included in the new fedora release). This leads to dependency conflicts in rpm  
database.

Version-Release number of selected component (if applicable)
============================================================

fedup-0.7.3-4.fc18.noarch

How reproducible
================

Tried once, given the nature of the issue guessing "always".

Steps to Reproduce
==================

1. on Fedora 18, install glusterfs-swift
2. update to Fedora 19 via fedup
3. run 'yum check'

Actual results
==============

yum check (which is btw run in every yum update) fails:

~~~
# yum check                                                                     
Loaded plugins: etckeeper, langpacks, ps, refresh-packagekit, verify, versionlock
glusterfs-swift-3.3.1-15.fc18.noarch has installed conflicts openstack-swift: openstack-swift-1.8.0-2.fc19.noarch
glusterfs-swift-3.3.1-15.fc18.noarch has missing requires of glusterfs = ('0', '3.3.1', '15.fc18')
Error: check all 
~~~

Expected results
================

Package glusterfs-swift is not installed. Since it was removed in fedora 19[1], 
fedup make sure this package is removed.

Additional info
===============

[1] from glusterfs changelog:                                                   
                                                                                
> * Mon Jul 8 2013 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.4.0-0.9.beta4   
> - add Obsolete: glusterfs-swift where we use openstack-swift                    
> - prerelease 3.4.0beta4 for oVirt/vdsm dependencies in Fedora19                 

For the fedup upgrade, I used fedup from fedora 18 but I filled this BZ for f19
to last longer since both fedora versions should contain the same fedup version
(checked via fedpkg).

~~~
# grep fedup yum.log
Feb 17 03:16:23 Installed: fedup-0.7.3-0.git20130128.fc17.noarch
May 15 23:58:19 Updated: fedup-0.7.3-4.fc18.noarch
# rpm -q fedup
fedup-0.7.3-4.fc19.noarch
~~~

Comment 1 Will Woods 2013-08-05 15:14:19 UTC
Could you attach your fedup.log and upgrade.log?

Comment 2 Martin B. 2013-08-05 21:36:17 UTC
Created attachment 783036 [details]
fedup logs

(In reply to Will Woods from comment #1)
> Could you attach your fedup.log and upgrade.log?

both files attached

note that fedup.log also contains entries from previous upgrade, I didn't edit it in any way

Comment 3 Will Woods 2013-12-06 21:02:11 UTC
In my testing, fedup definitely removes obsoleted packages when the Obsoletes: entries are correct. 

The problem was that your upgrade was installing glusterfs-3.4.0-0.8.beta4.fc19, which didn't have "Obsoletes: glusterfs-swift". So this was a packaging problem with glusterfs, not a fedup bug.

glusterfs has already fixed the packaging problem, so there's nothing else to do there.

Comment 4 Will Woods 2013-12-06 21:02:58 UTC
(whoops, wrong resolution - sorry about that)