Bug 2165923

Summary: leapp 8>9 fails when dovecot is installed
Product: Red Hat Enterprise Linux 8 Reporter: jcastran
Component: leapp-repositoryAssignee: Petr Stodulka <pstodulk>
Status: CLOSED DUPLICATE QA Contact: Martin KlusoĊˆ <mkluson>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.7Flags: pm-rhel: mirror+
Target Milestone: rc   
Target Release: ---   
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: 2023-01-31 14:56:40 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 jcastran 2023-01-31 13:41:09 UTC
Description of problem:
leapp upgrade with dovecot installed results in emergency mode when leapp fails on dovecot

Version-Release number of selected component (if applicable):
leapp-upgrade-el8toel9-deps-0.17.0-3.el8.noarch
leapp-0.15.0-2.el8.noarch
leapp-upgrade-el8toel9-0.17.0-3.el8.noarch
leapp-deps-0.15.0-2.el8.noarch
python3-leapp-0.15.0-2.el8.noarch

How reproducible:
Everytime

Steps to Reproduce:
1. install dovecot
2. leapp upgrade
3. reboot

Actual results:
system fails into emergency mode on reboot

[ 4223.460993] localhost upgrade[686]: ============================================================
[ 4223.460993] localhost upgrade[686]:                            ERRORS
[ 4223.460993] localhost upgrade[686]: ============================================================
[ 4223.460993] localhost upgrade[686]: 2023-01-30 14:54:30.480535 [ERROR] Actor: dnf_upgrade_transaction
[ 4223.460993] localhost upgrade[686]: Message: DNF execution failed with non zero exit code.
[ 4223.460993] localhost upgrade[686]: STDOUT:
<snip>
[  264.561448] localhost upgrade[1570]:  dovecot                                      x86_64  1:2.3.16-3.el9             
[ 2201.894350] localhost upgrade[1570]:   Running scriptlet: dovecot-1:2.3.16-3.el9.x86_64                    1194/2672
[ 2202.146309] localhost upgrade[1570]: error: %prein(dovecot-1:2.3.16-3.el9.x86_64) scriptlet failed, exit status 1
[ 2203.731119] localhost upgrade[1570]: error: dovecot-1:2.3.16-3.el9.x86_64: install failed
[ 2595.464357] localhost upgrade[1570]: error: dovecot-1:2.3.16-3.el8.x86_64: erase skipped
[ 3757.515417] localhost upgrade[1570]:   Verifying        : dovecot-1:2.3.16-3.el9.x86_64                    1856/2672
[ 3758.499058] localhost upgrade[1570]:   Verifying        : dovecot-1:2.3.16-3.el8.x86_64                    1857/2672
[ 4192.494644] localhost upgrade[1570]:   dovecot-1:2.3.16-3.el8.x86_64          dovecot-1:2.3.16-3.el9.x86_64
[ 4224.235862] localhost upgrade[686]:  dovecot                                      x86_64  1:2.3.16-3.el9              
[ 4227.573046] localhost upgrade[686]:   Running scriptlet: dovecot-1:2.3.16-3.el9.x86_64                    1194/2672
[ 4227.573046] localhost upgrade[686]: error: %prein(dovecot-1:2.3.16-3.el9.x86_64) scriptlet failed, exit status 1
[ 4227.573046] localhost upgrade[686]: error: dovecot-1:2.3.16-3.el9.x86_64: install failed
[ 4227.730017] localhost upgrade[686]: error: dovecot-1:2.3.16-3.el8.x86_64: erase skipped
[ 4230.453382] localhost upgrade[686]:   Verifying        : dovecot-1:2.3.16-3.el9.x86_64                    1856/2672
[ 4230.453382] localhost upgrade[686]:   Verifying        : dovecot-1:2.3.16-3.el8.x86_64                    1857/2672
<snip>
[ 4231.617762] localhost upgrade[686]: Failed:
[ 4231.617762] localhost upgrade[686]:   dovecot-1:2.3.16-3.el8.x86_64          dovecot-1:2.3.16-3.el9.x86_64
[ 4231.617762] localhost upgrade[686]: Error in PREIN scriptlet in rpm package dovecot 


Expected results:
dovecot should be upgraded

Additional info:
Removing dovecot allows the upgrade to complete. It can be installed after the upgrade if required.

Comment 1 Petr Stodulka 2023-01-31 14:56:40 UTC
This is bug of dovecot on RHEL 9 that is going to be fixed in RHEL 9.2 (see bug 2119385), so the upgrade path 8.8 -> 9.2 should fix this issue. Closing as duplicate.

*** This bug has been marked as a duplicate of bug 2119385 ***