Bug 707789

Summary: upgrade removes packages which are required by existing packages
Product: [Fedora] Fedora Reporter: Scott Marshall <cyberrider>
Component: yumAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 15CC: anaconda-maint-list, ffesti, james.antill, jonathan, maxamillion, nathanael, ondrejj, pmatilai, redhat-bugzilla, rh-bugzilla, steve, tla, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 17:57:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
yum.log and anaconda/* in a tar file none

Description Scott Marshall 2011-05-26 00:01:19 UTC
Description of problem:
clamav-scanner-upstart relies upon the presence of /sbin/initctl.
After upgrading from Fedora 14 to Fedora 15, attempts to run 'yum update' or 'yum upgrade' fail due to absence of /sbin/initctl.

yum/rpm reports a critical error and fails to continue.

Version-Release number of selected component (if applicable):
clamav-scanner-upstart-0.97-1501.fc15

How reproducible:
Always when upgrading from F14 to F15 with clamav-scanner-upstart installed in the F14 environment.

Steps to Reproduce:
1.  Install clamav-scanner with clamav-scanner-upstart under F14
2.  Upgrade to F15 using DVD
3.  After upgrade and first boot, attempt to run a further 'yum update' or 'yum upgrade' to apply post-release (zero day) fixes updates.
  
Actual results:
yum identifies and downloads all required fixes/updates, but the update fails because clamav-scanner-upstart requires /sbin/initctl, which is no longer present (because F15 uses systemd and removes upstart as part of the upgrade).

Expected results:

The clamav-scanner-upstart package must REQUIRE "upstart" in its list of dependencies (clean up its spec file) and yum will then include it in its download list.

It would be preferable if the F15 upgrade cleanup automatically removed the upstart version of clamav-scanner and installed the systemd version.
(Probably a bit late now given that the DVD image is already released).

Alternatively (given that systemd is the way of the future), perhaps the clamav-scanner-upstart package for F15 should be marked as deprecated somehow (perhaps "obsoleted by" the systemd version), and thus have yum automatically delete clamav-scanner-upstart and replace with clamav-scanner-systemd.


Additional info:

A viable work-around is to do the following before running the 'yum update' or 'yum upgrade':
# yum erase clamav-scanner clamav-scanner-upstart; yum install clamav-scanner-systemd

Comment 1 Scott Marshall 2011-05-26 00:15:59 UTC
Please note, this problem does NOT occur when installing clamav-scanner-upstart as a new package inside F15.  The dependencies are correctly resolved, and the package will install correctly.


# yum install clamav-scanner-upstart
..........
Setting up Install Process
Resolving Dependencies
Skipping filters plugin, no data
--> Running transaction check
---> Package clamav-scanner-upstart.noarch 0:0.97-1501.fc15 will be installed
--> Processing Dependency: clamav-scanner = 0.97-1501.fc15 for package: clamav-scanner-upstart-0.97-1501.fc15.noarch
--> Processing Dependency: /sbin/initctl for package: clamav-scanner-upstart-0.97-1501.fc15.noarch
--> Running transaction check
---> Package clamav-scanner.noarch 0:0.97-1501.fc15 will be installed
---> Package upstart.x86_64 0:1.2-2.fc15 will be installed
--> Processing Dependency: /etc/rc.d/rc.sysinit for package: upstart-1.2-2.fc15.x86_64
--> Running transaction check
---> Package initscripts-legacy.x86_64 0:9.30-2.fc15 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                     Arch        Version             Repository    Size
================================================================================
Installing:
 clamav-scanner-upstart      noarch      0.97-1501.fc15      fedora        14 k
Installing for dependencies:
 clamav-scanner              noarch      0.97-1501.fc15      fedora        20 k
 initscripts-legacy          x86_64      9.30-2.fc15         fedora       140 k
 upstart                     x86_64      1.2-2.fc15          updates      168 k

Transaction Summary
================================================================================
Install       4 Package(s)

Total download size: 341 k
Installed size: 616 k
.......

Comment 2 Scott Marshall 2011-05-26 08:25:20 UTC
This may need the spec file for the F14 version of clamav-scanner-upstart to be corrected to show a dependency for the "upstart" package, rather than just expecting /sbin/initctl to be present.

From the F14 version:

$ rpm -q --requires clamav-scanner-upstart
/bin/sh  
/bin/sh  
/etc/init  
/sbin/initctl  
/usr/bin/killall  
clamav-scanner = 0.97-1400.fc14
config(clamav-scanner-upstart) = 0.97-1400.fc14
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(VersionedDependencies) <= 3.0.3-1
rpmlib(PayloadIsXz) <= 5.2-1

Comment 3 Enrico Scholz 2011-06-13 11:39:27 UTC
sounds like a bug anaconda (which removes 'upstart' although it is required by an installed package). reassigning to it...

Comment 4 Brian Lane 2011-06-13 17:28:00 UTC
Anaconda doesn't make these decisions, we depend on yum which uses the package deps.

Some info that would help:

1. How did you upgrade? (eg. use preupgrade or upgrade from within anaconda)

2. Please attach /tmp/*log files from the upgrade or from /var/log/anaconda/ on the installed system.

Comment 5 Scott Marshall 2011-06-14 00:19:12 UTC
Created attachment 504568 [details]
yum.log and anaconda/* in a tar file

The upgrade was performed via a DVD installation.  Pre-upgrade was NOT used.
These are the requested log files from /var/log and /var/log/anaconda

Comment 6 Fedora Admin XMLRPC Client 2012-04-27 15:39:06 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora End Of Life 2012-08-07 17:57:41 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping