Bug 2179563

Summary: In-place upgrade from RHEL 7 to RHEL 8 with "ansible-collection-microsoft-sql" package installed fails with rpm transaction test error
Product: Red Hat Enterprise Linux 8 Reporter: Michal Reznik <mreznik>
Component: ansible-collection-microsoft-sqlAssignee: Sergei Petrosian <spetrosi>
Status: NEW --- QA Contact: Daniel Yeisley <dyeisley>
Severity: unspecified Docs Contact: Lucie Vařáková <lmanasko>
Priority: unspecified    
Version: 8.6CC: lmanasko
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Reznik 2023-03-18 17:00:17 UTC
Description of problem:

In-place upgrade from RHEL 7 to RHEL 8 with "ansible-collection-microsoft-sql" package installed fails with rpm transaction test error.

Error: Transaction test error:
  file /usr/share/ansible/roles/microsoft.sql-server from install of ansible-collection-microsoft-sql-1.2.4-1.el8.noarch conflicts with file from package ansible-collection-microsoft-sql-1.2.4-2.el7_9.noarch

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

"ansible-collection-microsoft-sql-1.2.4-1.el8.noarch"

Steps to Reproduce:
1. Provision RHEL 7.9 machine
2. Install "ansible-collection-microsoft-sql-1.2.4-2.el7_9.noarch" package
3. Run "leapp upgrade"

Actual results:

Upgrade fails with:

Error: Transaction test error:
  file /usr/share/ansible/roles/microsoft.sql-server from install of ansible-collection-microsoft-sql-1.2.4-1.el8.noarch conflicts with file from package ansible-collection-microsoft-sql-1.2.4-2.el7_9.noarch

Expected results:

The upgrade continues pass the rpm transaction test

Additional info: