Bug 1174335

Summary: preupg does not warn about packages that will not be upgraded
Product: Red Hat Enterprise Linux 6 Reporter: Orion Poplawski <orion>
Component: preupgrade-assistant-contentsAssignee: Frantisek Kluknavsky <fkluknav>
Status: CLOSED NOTABUG QA Contact: Juraj Marko <jmarko>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6CC: nlevinki, ovasik, phracek, ttomecek
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-07 10:52:51 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
result.html none

Description Orion Poplawski 2014-12-15 16:26:18 UTC
Created attachment 969153 [details]
result.html

Description of problem:

See also bug #1173713.  Upgrading breaks systems when for example openldap in not upgraded between releases.  There is now warning about this in the result.html report.

Version-Release number of selected component (if applicable):
preupgrade-assistant-2.0.1-1.el6.x86_64
preupgrade-assistant-contents-0.6.7-5.el6.noarch

Comment 2 Frantisek Kluknavsky 2014-12-19 22:30:26 UTC
Hi Orion,

It works for me without any problems and I am clueless. Let's try to find the cause. Currently it should work in this way:
1. /usr/share/preupgrade/RHEL6_7/common/x86_64/Server_downgraded must mention openldap. I checked that preupgrade-assistant-contents-0.6.7-5.el6.noarch does, but we have to be sure. If it is not there, your rpm package is wrong.
2. After running preupg, /root/preupgrade/preupgrade-scripts/fixpkgdowngrades.sh must exist. It is generated during preupg by /usr/share/preupgrade/RHEL6_7/packages/pkgdowngrades.sh. If you have for example openldap built by yoursef and not signed by redhat, it will be ignored.
3. After running redhat-upgrade-tool, but before rebooting: /var/lib/system-upgrade must contain openldap.el7.rpm

Comment 3 Orion Poplawski 2014-12-23 22:02:04 UTC
Please accept my sincerest apologies - I ran the test using the CentOS upgrade tool and made the incorrect assumption that the redhat tool was the same.  Testing with the redhat tool worked fine exactly as you described.