Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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 ***