Bug 1703117

Summary: RHEL 7 to 8 fails with squid installed because dirs changed to symlinks
Product: Red Hat Enterprise Linux 8 Reporter: Michal Bocek <mbocek>
Component: squidAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED ERRATA QA Contact: Maryna Nalbandian <mnalband>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.1CC: amahdal, bnater, jorton, pstodulk
Target Milestone: rcKeywords: Patch, Triaged, Upgrades
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 21:21:56 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:

Description Michal Bocek 2019-04-25 14:42:39 UTC
Description of problem:
When performing upgrade of RHEL 7.6 to RHEL 8.0 using Leapp utility, upgrade fails when trying to calculate the rpm upgrade transaction:

Error: Transaction check error:
  file /usr/share/squid/errors/zh-cn from install of squid-7:4.4-4.module+el8+2479+dae5d0d3.x86_64 conflicts with file from package squid-7:3.5.20-12.el7.x86_64
  file /usr/share/squid/errors/zh-tw from install of squid-7:4.4-4.module+el8+2479+dae5d0d3.x86_64 conflicts with file from package squid-7:3.5.20-12.el7.x86_64

The issue - RHEL 7 squid directories mentioned in the error above changed to symlinks in the RHEL 8 version. This situation is supposed to be handled by %pretrans scriptlet in the RHEL 8 squid SPEC file. More on that in the Fedora packaging guidelines: https://fedoraproject.org/wiki/Packaging:Directory_Replacement#Replacing_a_symlink_with_a_directory_or_a_directory_with_any_type_of_file.

Version-Release number of selected component (if applicable):
squid-7:3.5.20-12.el7.x86_64
squid-7:4.4-4.module+el8+2479+dae5d0d3.x86_64

How reproducible:
Everytime when doing upgrade of RHEL 7 with squid to RHEL 8 using Leapp.

Steps to Reproduce:
1. Install squid and leapp on RHEL 7.6
2. Run leapp
3. Observe the failure

Actual results:
RPM transaction fails causing the whole system upgrade to fail.


Expected results:
Yum4 does not throw a file conflict error when checking transaction for upgrading RHEL 7.6 squid version to RHEL *8.1* squid version.
It can be achieved by updating the spec file per the packaging guidelines I've linked above.
For upgrades to RHEL *8.0* we will most probably put squid on a "blacklist" in Leapp so it is removed before the upgrade by the Leapp utility. Unless you decide to fix this also for RHEL 8.0.

Additional info:

Comment 17 errata-xmlrpc 2019-11-05 21:21:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2019:3476