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

leapp fails in actor "dnf_transaction_check" with "No such command: config-manager."

    • No
    • Moderate
    • 1
    • rhel-sst-upgrades
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • Leapp: 9.7 & 10.1
    • None
    • None
    • None

      What were you trying to do that didn't work?

      When specifying pluginpath property in /etc/dnf/dnf.conf, leapp preupgrade fails with following error:

      2024-12-02 10:40:09.038674 [ERROR] Actor: dnf_transaction_check
      Message: Cannot obtain data about the DNF configuration
      Summary:
          Stdout: 
          Stderr: warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
                  No such command: config-manager. Please use /usr/bin/dnf --help
                  It could be a DNF plugin command, try: "dnf install 'dnf-command(config-manager)'"
      

      The reason for this is the RHEL9 dnf plugins are in a different path.
      Initially the container can be created because it's RHEL8 dnf that executes, but then it's RHEL9 dnf that executes in second phase, which then breaks.

      What is the impact of this issue to you?

      Preupgrade fails

      Please provide the package NVR for which the bug is seen:

      leapp-upgrade-el8toel9-0.21.0-2.el8_10.noarch

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Add "standard" path to /etc/dnf/dnf.conf
        pluginpath=/usr/lib/python3.6/site-packages/dnf-plugins
      2. Execute leapp preupgrade

      Expected results

      Some inhibitor popping up.

      Actual results

      Failure of dnf_transaction_check:

      Risk Factor: high (error)
      Title: Cannot obtain data about the DNF configuration
      Summary: {"stdout": "", "stderr": "warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.\nNo such command: config-manager. Please use /usr/bin/dnf --help\nIt could be a DNF plugin command, try: \"dnf install 'dnf-command(config-manager)'\"\n"}
      Key: b41a40f4129e340f05c6b14d1a850b626c4185d1
      

              leapp-notifications leapp-notifications
              rhn-support-rmetrich Renaud Métrich
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Miriam Portman Miriam Portman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: