Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-101703

Error when DNF plugins were disabled (non-RHSM)

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-8.10, rhel-9.6
    • leapp-repository
    • No
    • Low
    • rhel-upgrades
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      When dnf plugins are disabled in a non-RHSM scenario (leapp was run with custom repositories), leapp preupgrade ended with an error.

      Steps to reproduce

      1. Disable plugins in /etc/dnf/dnf.conf

      [main]
      plugins=0   # add this line to the config file
      

      2. Run leapp:

      # leapp preupgrade --target $TARGET --no-rhsm
      

      Actual results:

      Leapp output:

      ============================================================
                                 ERRORS                           
      ============================================================
      
      2025-06-30 19:41:41.490749 [ERROR] Actor: dnf_transaction_check
      Message: Cannot obtain data about the DNF configuration
      Summary:
          Stdout: 
          Stderr: No such command: config-manager. Please use /usr/bin/dnf --help
                  It could be a DNF plugin command, but loading of plugins is currently disabled.
      

      /var/log/leapp/leapp-report.txt:

      Risk Factor: high (error)
      Title: Cannot obtain data about the DNF configuration
      Summary: {"stdout": "", "stderr": "No such command: config-manager. Please use /usr/bin/dnf --help\nIt could be a DNF plugin command, but loading of plugins is currently disabled.\n"}
      Key: b41a40f4129e340f05c6b14d1a850b626c4185d1
      

      Expected results

      Probably, leapp should not be blocked.

      I kindly request an investigation of this issue.

      Packages

      leapp-0.19.0-1.el9.noarch
      leapp-upgrade-el9toel10-0.22.0-1.el9.noarch

              leapp-notifications leapp-notifications
              tcerna Tereza Zelinková
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: