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 2110627

Summary: leapp is stuck in Required DNF plugins are not being loaded when LANGUAGE envars is set to non-us lang
Product: Red Hat Enterprise Linux 8 Reporter: Christoph Karl <pampelmuse>
Component: leapp-repositoryAssignee: Petr Stodulka <pstodulk>
Status: CLOSED ERRATA QA Contact: Michal Macura <mmacura>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.6CC: mmacura, vfeenstr
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: leapp-repository-0.17.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-08 09:46:52 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 Christoph Karl 2022-07-25 17:43:24 UTC
Description of problem:
Cannot upgrade to RHEL 9

Version-Release number of selected component (if applicable):
>rpm -qa| grep leapp
leapp-0.14.0-1.el8_6.noarch
leapp-upgrade-el8toel9-deps-0.16.0-6.el8_6.noarch
python3-leapp-0.14.0-1.el8_6.noarch
leapp-deps-0.14.0-1.el8_6.noarch
leapp-upgrade-el8toel9-0.16.0-6.el8_6.noarch


How reproducible:
Always


Steps to Reproduce:
1. Setup RHEL 7
2. in-place upgrade to RHEL 8 (with leapp)
   (This has worked.)
3. leapp preupgrade --target 9.0

Actual results:
============================================================
                     UPGRADE INHIBITED                      
============================================================

Upgrade has been inhibited due to the following problems:
    1. Inhibitor: Required DNF plugins are not being loaded.
Consult the pre-upgrade report for details and possible remediation.

Despite I already have (report consuled):
>cat /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=False
plugins=1
>cat /etc/dnf/plugins/subscription-manager.conf
[main]
enabled=1

# When following option is set to 1, then all repositories defined outside redhat.repo will be disabled
# every time subscription-manager plugin is triggered by dnf or yum
disable_system_repos=0
>cat /etc/dnf/plugins/product-id.conf
[main]
enabled=1


Expected results:
In-place upgrade should work.


Additional info:

Comment 2 Petr Stodulka 2022-07-26 09:04:10 UTC
Hi Christoph, thank you for the report. We've tested this scenario and I've retested it manually right now based on the report but in all our tests everything works. Can you confirm you addressed all post-upgrade steps mentioned in the upgrade documentation?
    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/upgrading_from_rhel_7_to_rhel_8/index#performing-post-upgrade-tasks-rhel-7-to-rhel-8_upgrading-from-rhel-7-to-rhel-8

If so, can you share the output of the following command?
  # dnf -v

Comment 3 Christoph Karl 2022-07-26 14:05:07 UTC
Hi Petr!

I have now done the post-upgrade steps, but I sill get the same result:
>cat /var/log/leapp/leapp-report.txt
Risk Factor: high (inhibitor)
Title: Required DNF plugins are not being loaded.
Summary: The following DNF plugins are not being loaded: 
    - subscription-manager
    - product-id
Remediation: [hint] If you have yum plugins globally disabled, please enable them by editing the /etc/dnf/dnf.conf. Individually, the DNF plugins can be enabled in their corresponding configurations found at: /etc/dnf/plugins
[command] bash -c "sed -i 's/^plugins=0/plugins=1/' '/etc/dnf/dnf.conf'; sed -i 's/^enabled=0/enabled=1/' '/etc/dnf/plugins/subscription-manager.conf'; sed -i 's/^enabled=0/enabled=1/' '/etc/dnf/plugins/product-id.conf'"
Key: 2a0ff91bea885cfe9d763cf3a379789848a501b9

Comment 4 Christoph Karl 2022-07-26 14:05:56 UTC
>dnf -v
Geladene Plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, kpatch, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile
Subscription Management Repositorys werden aktualisiert.
usage: dnf [options] COMMAND

Hauptbefehle

alias                     Befehlsaliase auflisten oder anlegen
autoremove                Alle nicht genutzten Pakete entfernen, die ursprünglich als Abhängigkeiten installiert wurden
[and so on]

Comment 5 Christoph Karl 2022-07-26 14:06:21 UTC
Maybe because of my langugae setting?

Comment 6 Petr Stodulka 2022-07-26 14:12:51 UTC
Hmm.... the language should not be problem as we are setting the language related envars to english always, which should be present on any system. Could you please attach the /var/lib/leapp/leapp.db file?

Comment 7 Christoph Karl 2022-07-26 14:15:24 UTC
That`s it!
I now unset LANG, LANGUAGE and LC_CTYPE and now it is working
(at least preupgrade is now OK (green))

Comment 8 Christoph Karl 2022-07-26 14:18:07 UTC
leapp.db file is larger than allowed limit (156MB)

Comment 9 Christoph Karl 2022-07-26 14:52:42 UTC
My env was:
LANG=de_AT.UTF-8
LANGUAGE=de
LC_CTYPE=de_AT.utf8

Comment 10 Petr Stodulka 2022-07-26 15:20:08 UTC
That's it! The we covered the LANGUAGE envar after we finished the work on the release so it's not part of the current build, but the next one is going to handle this case as well.

The upstream PR:
  https://github.com/oamg/leapp-repository/pull/887

Comment 17 errata-xmlrpc 2022-11-08 09:46:52 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 (leapp-repository bug fix and enhancement update), 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/RHBA-2022:7590